Rev 14100 | Rev 14746 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9729 | cbradney | 1 | <?xml version="1.0" encoding="utf-8"?> |
14489 | cbradney | 2 | <!DOCTYPE TS> |
3 | <TS version="2.0"> |
||
418 | Franz | 4 | <context> |
12918 | cbradney | 5 | <name></name> |
1135 | cbradney | 6 | <message> |
14489 | cbradney | 7 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="17"/> |
12918 | cbradney | 8 | <source>getColorNames() -> list |
9 | |||
10 | Returns a list containing the names of all defined colors in the document. |
||
11 | If no document is open, returns a list of the default document colors. |
||
12 | </source> |
||
13 | <translation type="unfinished">getColorNames() -> llista |
||
14 | |||
15 | Retorna una llista que conté els noms dels colors definits en el document. |
||
16 | Si no hi ha cap document obert, retorna una llista amb els colors per defecte. |
||
17 | </translation> |
||
18 | </message> |
||
19 | <message> |
||
14489 | cbradney | 20 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="27"/> |
12918 | cbradney | 21 | <source>getColor("name") -> tuple |
22 | |||
23 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
24 | color "name" from the current document. If no document is open, returns |
||
25 | the value of the named color from the default document colors. |
||
26 | |||
27 | May raise NotFoundError if the named color wasn't found. |
||
28 | May raise ValueError if an invalid color name is specified. |
||
29 | </source> |
||
30 | <translation type="unfinished">getColor("nom") -> tupla |
||
31 | |||
32 | Retorna una tupla (C, M, Y, K) que conté els quatre components de color |
||
33 | de "nom" del document actual. Si no hi ha cap document obert, torna |
||
34 | el valor del color anomenat dels colors per defecte. |
||
35 | |||
36 | Pot produir un NotFoundError si no es troba el color. |
||
37 | Pot produir ValueError si s'especifica un color invàl·lid. |
||
38 | </translation> |
||
39 | </message> |
||
40 | <message> |
||
14489 | cbradney | 41 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="41"/> |
12918 | cbradney | 42 | <source>getColorAsRGB("name") -> tuple |
43 | |||
44 | Returns a tuple (R,G,B) containing the three color components of the |
||
45 | color "name" from the current document, converted to the RGB color |
||
46 | space. If no document is open, returns the value of the named color |
||
47 | from the default document colors. |
||
48 | |||
49 | May raise NotFoundError if the named color wasn't found. |
||
50 | May raise ValueError if an invalid color name is specified. |
||
51 | </source> |
||
52 | <translation type="unfinished">getColorAsRGB("nom") -> tupla |
||
53 | |||
54 | Retorna una tupla (R,G,B) que conté els tres components de color del |
||
55 | color "nom" que està en el document actual, convertit en un color RGB. |
||
56 | Si no hi ha cap document obert, retorna el valor del nom del color que |
||
57 | hi hagi en els colors per defecte. |
||
58 | |||
59 | Pot generar NotFoundError si la capa no es pot trobar. |
||
60 | Pot generar ValueError si el nom de la capa no és acceptable.</translation> |
||
61 | </message> |
||
62 | <message> |
||
14489 | cbradney | 63 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="56"/> |
12918 | cbradney | 64 | <source>changeColor("name", c, m, y, k) |
65 | |||
66 | Changes the color "name" to the specified CMYK value. The color value is |
||
67 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
68 | Color components should be in the range from 0 to 255. |
||
69 | |||
70 | May raise NotFoundError if the named color wasn't found. |
||
71 | May raise ValueError if an invalid color name is specified. |
||
72 | </source> |
||
73 | <translation type="unfinished">changeColor("nom", c, m, y, k) |
||
74 | |||
75 | Canvia el color "nom" a els valors CMYK. El valor del color està |
||
76 | definit via els quatre components c=Cian, m=Magenta, y=Groc i k=Negre |
||
77 | Els colors del component han d'estar dins del rang 0 a 255. |
||
78 | |||
79 | Pot produir un NotFoundError si no es troba el color. |
||
80 | Pot produir ValueError si s'especifica un color erròni.</translation> |
||
81 | </message> |
||
82 | <message> |
||
14489 | cbradney | 83 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="70"/> |
12918 | cbradney | 84 | <source>defineColor("name", c, m, y, k) |
85 | |||
86 | Defines a new color "name". The color Value is defined via four components: |
||
87 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
88 | the range from 0 to 255. |
||
89 | |||
90 | May raise ValueError if an invalid color name is specified. |
||
91 | </source> |
||
92 | <translation type="unfinished">defineColor("nom", c, m, y, k) |
||
93 | |||
94 | Defineix un nou color "nom". El valor del color està definit amb els quatre components: |
||
95 | c=cian, m=Magenta, y=Groc i k=Negre. Els components de color han d'estar dins |
||
96 | del rang que va des de 0 a 255. |
||
97 | |||
98 | Pot provocar un ValueError si s'especifica un color invàlid. |
||
99 | </translation> |
||
100 | </message> |
||
101 | <message> |
||
14489 | cbradney | 102 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="83"/> |
12918 | cbradney | 103 | <source>deleteColor("name", "replace") |
104 | |||
105 | Deletes the color "name". Every occurence of that color is replaced by the |
||
106 | color "replace". If not specified, "replace" defaults to the color |
||
107 | "None" - transparent. |
||
108 | |||
109 | deleteColor works on the default document colors if there is no document open. |
||
110 | In that case, "replace", if specified, has no effect. |
||
111 | |||
112 | May raise NotFoundError if a named color wasn't found. |
||
113 | May raise ValueError if an invalid color name is specified. |
||
114 | </source> |
||
115 | <translation type="unfinished">deleteColor("nom", "canvi") |
||
116 | |||
117 | Esborra el color "nom". Cada ocurrència d'aquest color es canvia pel |
||
118 | color "canvi". Si no s'especifica, "canvi" es canvia pel color "cap" |
||
119 | - transparent. |
||
120 | |||
121 | deleteColor treballa en els colors per defecte del document si no n'hi |
||
122 | ha cap d'obert, encara que s'especifiqui, no fa res. |
||
123 | |||
124 | Pot generar NotFoundError si no existeix el color. |
||
125 | Pot generar ValueError si s'especifica un color invàlid. |
||
126 | </translation> |
||
127 | </message> |
||
128 | <message> |
||
14489 | cbradney | 129 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="100"/> |
12918 | cbradney | 130 | <source>replaceColor("name", "replace") |
131 | |||
132 | Every occurence of the color "name" is replaced by the color "replace". |
||
133 | |||
134 | May raise NotFoundError if a named color wasn't found. |
||
135 | May raise ValueError if an invalid color name is specified. |
||
136 | </source> |
||
137 | <translation type="unfinished">replaceColor("nom", "canvi") |
||
138 | |||
139 | Cada ocurrència del color "name" es canvia pel color "canvi". |
||
140 | |||
141 | Pot generar un NotFoundError si no existeix el color. |
||
142 | Pot generar un ValueError si el color especificat és invalid. |
||
143 | </translation> |
||
144 | </message> |
||
145 | <message> |
||
14489 | cbradney | 146 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="113"/> |
147 | <source>isSpotColor("name") -> bool |
||
148 | |||
149 | Returns True if the color "name" is a spot color. |
||
150 | See also setSpotColor() |
||
151 | |||
152 | May raise NotFoundError if a named color wasn't found. |
||
153 | May raise ValueError if an invalid color name is specified. |
||
154 | </source> |
||
155 | <translation type="unfinished"></translation> |
||
156 | </message> |
||
157 | <message> |
||
158 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="128"/> |
||
159 | <source>setSpotColor("name", spot) |
||
160 | |||
161 | Set the color "name" as a spot color if spot parameter is True. |
||
162 | See also isSpotColor() |
||
163 | |||
164 | May raise NotFoundError if a named color wasn't found. |
||
165 | May raise ValueError if an invalid color name is specified. |
||
166 | </source> |
||
167 | <translation type="unfinished"></translation> |
||
168 | </message> |
||
169 | <message> |
||
170 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="17"/> |
||
12918 | cbradney | 171 | <source>newDocDialog() -> bool |
172 | |||
173 | Displays the "New Document" dialog box. Creates a new document if the user |
||
174 | accepts the settings. Does not create a document if the user presses cancel. |
||
175 | Returns true if a new document was created. |
||
176 | </source> |
||
177 | <translation type="unfinished">newDocDialog() -> bool |
||
178 | |||
179 | Mostra el diàleg "Nou Document". Crea un nou document si l'usuari accepta |
||
180 | els paràmetres. No en fa cap en cas de que hagi triat cancel·lar. |
||
181 | Retorna cert si s'ha creat un nou document. |
||
182 | </translation> |
||
183 | </message> |
||
184 | <message> |
||
14489 | cbradney | 185 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="28"/> |
12918 | cbradney | 186 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
187 | |||
188 | Shows a File Open dialog box with the caption "caption". Files are filtered |
||
189 | with the filter string "filter". A default filename or file path can also |
||
190 | supplied, leave this string empty when you don't want to use it. A value of |
||
191 | True for haspreview enables a small preview widget in the FileSelect box. When |
||
192 | the issave parameter is set to True the dialog acts like a "Save As" dialog |
||
193 | otherwise it acts like a "File Open Dialog". When the isdir parameter is True |
||
194 | the dialog shows and returns only directories. The default for all of the |
||
195 | optional parameters is False. |
||
196 | |||
197 | The filter, if specified, takes the form 'comment (*.type *.type2 ...)'. |
||
198 | For example 'Images (*.png *.xpm *.jpg)'. |
||
199 | |||
200 | Refer to the Qt-Documentation for QFileDialog for details on filters. |
||
201 | |||
202 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
||
203 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
||
204 | </source> |
||
205 | <translation type="unfinished"></translation> |
||
206 | </message> |
||
207 | <message> |
||
14489 | cbradney | 208 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="56"/> |
12918 | cbradney | 209 | <source>messageBox("caption", "message", |
210 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
211 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
212 | |||
213 | Displays a message box with the title "caption", the message "message", and |
||
214 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
215 | button, OK, is displayed. Only the caption and message arguments are required, |
||
216 | though setting an icon and appropriate button(s) is strongly |
||
217 | recommended. The message text may contain simple HTML-like markup. |
||
218 | |||
219 | Returns the number of the button the user pressed. Button numbers start |
||
220 | at 1. |
||
221 | |||
222 | For the icon and the button parameters there are predefined constants available |
||
223 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
224 | ICON_* constants defined in the module. There are also two extra constants that |
||
225 | can be binary-ORed with button constants: |
||
226 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
227 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
228 | |||
229 | Usage examples: |
||
230 | result = messageBox('Script failed', |
||
231 | 'This script only works when you have a text frame selected.', |
||
232 | ICON_ERROR) |
||
233 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
234 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
235 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
236 | |||
237 | Defined button and icon constants: |
||
238 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
239 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
240 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
241 | </source> |
||
242 | <translation type="unfinished">messageBox("caption", "missatge", |
||
243 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
244 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
245 | |||
246 | Mostra un diàleg amb el títol de finestra "caption", el missatge "missatge", i |
||
247 | una icona "icon" amb fins a 3 botons. Per defecte no es fa servir cap icona i |
||
248 | només un sol botó, OK. Només calen els textos de "caption" i de "missatge", |
||
249 | per tant afegir una icona i els botons apropiats és molt |
||
250 | recomanat. El missatge de text pot contenir tags HTML. |
||
251 | |||
252 | Retorna el número del botó que l'usuari a premit. El número de botos comença |
||
253 | a 1. |
||
254 | |||
255 | Per la icona i pels paràmetres dels botons hi ha diverses constants predeterminades |
||
256 | amb els mateixos noms que a la documentació de Qt. Són constants BUTTON_* i |
||
257 | ICON_* definides al mòdul. També hi ha constants extres a les que poden fer |
||
258 | un OR binari amb constants de botó: |
||
259 | BUTTONOPT_DEFAULT Prement enter tria aquest botó. |
||
260 | BUTTONOPT_ESCAPE Prement escape tria aquest botó. |
||
261 | |||
262 | Exemples d'ús: |
||
263 | result = messageBox('Script failed', |
||
264 | messageBox("caption", "message",(new line) |
||
265 | (sp)(sp)(sp)(sp)icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT,(new line) |
||
266 | (sp)(sp)(sp)(sp)button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer(new line) |
||
267 | (new line) |
||
268 | Displays a message box with the title "caption", the message "message", and(new line) |
||
269 | an icon "icon" and up to 3 buttons. By default no icon is used and a single(new line) |
||
270 | button, OK, is displayed. Only the caption and message arguments are required,(new line) |
||
271 | though setting an icon and appropriate button(s) is strongly(new line) |
||
272 | recommended. The message text may contain simple HTML-like markup.(new line) |
||
273 | (new line) |
||
274 | Returns the number of the button the user pressed. Button numbers start(new line) |
||
275 | at 1.(new line) |
||
276 | (new line) |
||
277 | For the icon and the button parameters there are predefined constants available(new line) |
||
278 | with the same names as in the Qt Documentation. These are the BUTTON_* and(new line) |
||
279 | ICON_* constants defined in the module. There are also two extra constants that(new line) |
||
280 | can be binary-ORed with button constants:(new line) |
||
281 | (sp)(sp)(sp)(sp)BUTTONOPT_DEFAULT(sp)(sp)(sp)Pressing enter presses this button.(new line) |
||
282 | (sp)(sp)(sp)(sp)BUTTONOPT_ESCAPE(sp)(sp)(sp)(sp)Pressing escape presses this button.(new line) |
||
283 | (new line) |
||
284 | Usage examples:(new line) |
||
285 | result = messageBox('Script failed',(new line) |
||
286 | 'This script only works when you have a text frame selected.', |
||
287 | ICON_ERROR) |
||
288 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
289 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
290 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
291 | |||
292 | Les constants de botó són: |
||
293 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
294 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
295 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
296 | </translation> |
||
297 | </message> |
||
298 | <message> |
||
14489 | cbradney | 299 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="95"/> |
12918 | cbradney | 300 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
301 | |||
302 | Shows the common 'Ask for string' dialog and returns its value as a string |
||
303 | Parameters: window title, text in the window and optional 'default' value. |
||
304 | |||
305 | Example: valueDialog('title', 'text in the window', 'optional') |
||
306 | </source> |
||
307 | <translation type="unfinished">valueDialog(caption, missatge, [,valorperdefecte]) -> string |
||
308 | |||
309 | Mostra el diàleg comú "Demana per cadena" i retorna el seu valor. |
||
310 | Paràmetres: títol de finestra, text en la finestra i un valor per defecte opcional. |
||
311 | |||
312 | Exemple: valueDialog('titol', 'text en la finestra', 'opcional') |
||
313 | </translation> |
||
314 | </message> |
||
315 | <message> |
||
14489 | cbradney | 316 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="107"/> |
12918 | cbradney | 317 | <source>newStyleDialog() -> string |
318 | |||
319 | Shows 'Create new paragraph style' dialog. Function returns real |
||
320 | style name or None when user cancels the dialog. |
||
321 | </source> |
||
322 | <translation type="unfinished">newStyleDialog() -> cadena de text |
||
323 | |||
324 | Mostra el quadre de diàleg "Crear nou estil de paràgraf'. Retorna el nom |
||
325 | real de l'esti o res quan l'usuari cancel·la el quadre de diàleg.</translation> |
||
326 | </message> |
||
327 | <message> |
||
14489 | cbradney | 328 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="16"/> |
12918 | cbradney | 329 | <source>newDocument(size, margins, orientation, firstPageNumber, |
330 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
331 | |||
332 | Creates a new document and returns true if successful. The parameters have the |
||
333 | following meaning: |
||
334 | |||
335 | size = A tuple (width, height) describing the size of the document. You can |
||
336 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
337 | |||
338 | margins = A tuple (left, right, top, bottom) describing the document |
||
339 | margins |
||
340 | |||
341 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
342 | |||
343 | firstPageNumer = is the number of the first page in the document used for |
||
344 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
345 | numbers if you're creating a document in several parts. |
||
346 | |||
347 | unit: this value sets the measurement units used by the document. Use a |
||
348 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
349 | UNIT_PICAS, UNIT_POINTS. |
||
350 | |||
351 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
352 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
353 | PAGE_4 is 4-fold. |
||
354 | |||
355 | firstPageOrder = What is position of first page in the document. |
||
356 | Indexed from 0 (0 = first). |
||
357 | |||
358 | numPage = Number of pages to be created. |
||
359 | |||
360 | The values for width, height and the margins are expressed in the given unit |
||
361 | for the document. PAPER_* constants are expressed in points. If your document |
||
362 | is not in points, make sure to account for this. |
||
363 | |||
364 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
365 | PAGE_4, 3, 1) |
||
366 | |||
367 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
368 | </source> |
||
369 | <translation type="unfinished"></translation> |
||
370 | </message> |
||
371 | <message> |
||
14489 | cbradney | 372 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="62"/> |
12918 | cbradney | 373 | <source>newDoc(size, margins, orientation, firstPageNumber, |
374 | unit, facingPages, firstSideLeft) -> bool |
||
375 | |||
376 | WARNING: Obsolete procedure! Use newDocument instead. |
||
377 | |||
378 | Creates a new document and returns true if successful. The parameters have the |
||
379 | following meaning: |
||
380 | |||
381 | size = A tuple (width, height) describing the size of the document. You can |
||
382 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
383 | |||
384 | margins = A tuple (left, right, top, bottom) describing the document |
||
385 | margins |
||
386 | |||
387 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
388 | |||
389 | firstPageNumer = is the number of the first page in the document used for |
||
390 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
391 | numbers if you're creating a document in several parts. |
||
392 | |||
393 | unit: this value sets the measurement units used by the document. Use a |
||
394 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
395 | UNIT_PICAS, UNIT_POINTS. |
||
396 | |||
397 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
398 | |||
399 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
400 | |||
401 | The values for width, height and the margins are expressed in the given unit |
||
402 | for the document. PAPER_* constants are expressed in points. If your document |
||
403 | is not in points, make sure to account for this. |
||
404 | |||
405 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
406 | FACINGPAGES, FIRSTPAGERIGHT) |
||
407 | </source> |
||
408 | <translation type="unfinished">newDoc(mida, marges, orientació, primerNúmeroPàgina, |
||
409 | unitats, PaginesAcarades, primeraPaginaEsquerra) -> bool |
||
410 | |||
411 | AVIS: Procediment obsolet! Feu servir NewDocument. |
||
412 | |||
413 | Crea un nou document i retorna cert si tot ha anat bé. Els paràmetres tenen el |
||
414 | següent significat: |
||
415 | |||
416 | mida = Una parella (amplada, alçada) que descriu la mida del document. Pots |
||
417 | fer servir constants predefinides com PAPER_<tipus de paper> ex. PAPER_A4 etc. |
||
418 | |||
419 | marges = Una agrupació (esquerra, dreta, dalt, baix) que descriu els marges |
||
420 | del document. |
||
421 | |||
422 | orientació = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
423 | |||
424 | PrimerNúmeroPàgina = és el número de la primera pàgina en el document que farem |
||
425 | servir per numerar les pàgines. Encara que normalment es farà servir 1, a vegades |
||
426 | es útil poder posar números més grans si es creen documents en parts. |
||
427 | |||
428 | unitats : aquest valor estableix les unitats que el document farà servir. Cal usar una |
||
429 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
430 | UNIT_PICAS, UNIT_POINTS. |
||
431 | |||
432 | PàginesAcarades = FACINPAGES, NOFACINPAGES |
||
433 | |||
434 | PrimeraPàginaEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
435 | |||
436 | Els valors per l'amplada, l'alçada i els marges està expressada en les unitats donades |
||
437 | pel document. Les constants PAPER_* estan expressades en punts. Si el nostre document |
||
438 | no està en punts, cal tenir-ho en compte. |
||
439 | |||
440 | exemple: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
441 | FACINGPAGES, FIRSTPAGERIGHT) |
||
442 | </translation> |
||
443 | </message> |
||
444 | <message> |
||
14489 | cbradney | 445 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="103"/> |
12918 | cbradney | 446 | <source>closeDoc() |
447 | |||
448 | Closes the current document without prompting to save. |
||
449 | |||
450 | May throw NoDocOpenError if there is no document to close |
||
451 | </source> |
||
452 | <translation type="unfinished">closeDoc() |
||
453 | |||
454 | Tanca el document actual sense preguntar per desar. |
||
455 | |||
456 | Pot generar un NoDocOpenError si no hi ha cap document per tancar |
||
457 | </translation> |
||
458 | </message> |
||
459 | <message> |
||
14489 | cbradney | 460 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="114"/> |
12918 | cbradney | 461 | <source>haveDoc() -> bool |
462 | |||
463 | Returns true if there is a document open. |
||
464 | </source> |
||
465 | <translation type="unfinished">haveDoc() -> bool |
||
466 | |||
467 | Retorna cert si hi ha un document obert. |
||
468 | </translation> |
||
469 | </message> |
||
470 | <message> |
||
14489 | cbradney | 471 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="123"/> |
12918 | cbradney | 472 | <source>openDoc("name") |
473 | |||
474 | Opens the document "name". |
||
475 | |||
476 | May raise ScribusError if the document could not be opened. |
||
477 | </source> |
||
478 | <translation type="unfinished">openDoc("nom") |
||
479 | |||
480 | Obre el document "nom". |
||
481 | |||
482 | Pot generar ScribusError si el document no es pot obrir.</translation> |
||
483 | </message> |
||
484 | <message> |
||
14489 | cbradney | 485 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="134"/> |
12918 | cbradney | 486 | <source>saveDoc() |
487 | |||
488 | Saves the current document with its current name, returns true if successful. |
||
489 | If the document has not already been saved, this may bring up an interactive |
||
490 | save file dialog. |
||
491 | |||
492 | If the save fails, there is currently no way to tell. |
||
493 | </source> |
||
494 | <translation type="unfinished">saveDoc() |
||
495 | |||
496 | Desa el document actual amb el seu nom actual, retorna cert si ha funcionat. |
||
497 | Si el document no ha estat gravat previament, ens sortirà un diàleg interactiu |
||
498 | per guardar. |
||
499 | |||
500 | Si no es pot desar, no hi ha cap forma de saber-ho. |
||
501 | </translation> |
||
502 | </message> |
||
503 | <message> |
||
14489 | cbradney | 504 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="146"/> |
505 | <source>getDocName() -> string |
||
506 | |||
507 | Returns the name the document was saved under. |
||
508 | If the document was not saved before the name is empty. |
||
509 | </source> |
||
510 | <translation type="unfinished"></translation> |
||
511 | </message> |
||
512 | <message> |
||
513 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="156"/> |
||
12918 | cbradney | 514 | <source>saveDocAs("name") |
515 | |||
516 | Saves the current document under the new name "name" (which may be a full or |
||
517 | relative path). |
||
518 | |||
519 | May raise ScribusError if the save fails. |
||
520 | </source> |
||
521 | <translation type="unfinished">saveDocAs("nom") |
||
522 | |||
523 | Desa el document actual sota el nou nom "nom" (que pot ser amb camí absolut |
||
524 | o camí relatiu). |
||
525 | |||
526 | Pot generar un ScribusError si falla el desat. |
||
527 | </translation> |
||
528 | </message> |
||
529 | <message> |
||
14489 | cbradney | 530 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="168"/> |
12918 | cbradney | 531 | <source>setInfo("author", "info", "description") -> bool |
532 | |||
533 | Sets the document information. "Author", "Info", "Description" are |
||
534 | strings. |
||
535 | </source> |
||
536 | <translation type="unfinished"></translation> |
||
537 | </message> |
||
538 | <message> |
||
14489 | cbradney | 539 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="178"/> |
12918 | cbradney | 540 | <source>setMargins(lr, rr, tr, br) |
541 | |||
542 | Sets the margins of the document, Qt::DockLeft(lr), Qt::DockRight(rr), Qt::DockTop(tr) and Qt::DockBottom(br) |
||
543 | margins are given in the measurement units of the document - see UNIT_<type> |
||
544 | constants. |
||
545 | </source> |
||
546 | <translation type="unfinished"></translation> |
||
547 | </message> |
||
548 | <message> |
||
14489 | cbradney | 549 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="189"/> |
12918 | cbradney | 550 | <source>setUnit(type) |
551 | |||
552 | Changes the measurement unit of the document. Possible values for "unit" are |
||
553 | defined as constants UNIT_<type>. |
||
554 | |||
555 | May raise ValueError if an invalid unit is passed. |
||
556 | </source> |
||
557 | <translation type="unfinished">setUnit(unitats) |
||
558 | |||
559 | Canvia les unitats de mesura del document. Possible valors de les unitats estan |
||
560 | definides com a constants UNIT_<tipus>. |
||
561 | </translation> |
||
562 | </message> |
||
563 | <message> |
||
14489 | cbradney | 564 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="201"/> |
12918 | cbradney | 565 | <source>getUnit() -> integer (Scribus unit constant) |
566 | |||
567 | Returns the measurement units of the document. The returned value will be one |
||
568 | of the UNIT_* constants: |
||
569 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
570 | </source> |
||
571 | <translation type="unfinished">getUnit() -> integer (unitats de constants Scribus) |
||
572 | |||
573 | Retorna les unitats des mesura del document. El valor retornat serà una de |
||
574 | les constants UNIT_*: |
||
575 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
576 | </translation> |
||
577 | </message> |
||
578 | <message> |
||
14489 | cbradney | 579 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="212"/> |
12918 | cbradney | 580 | <source>loadStylesFromFile("filename") |
581 | |||
582 | Loads paragraph styles from the Scribus document at "filename" into the |
||
583 | current document. |
||
584 | </source> |
||
585 | <translation type="unfinished">loadStylesFromFile("nomfitxer") |
||
586 | |||
587 | Carregar els estils de paràgraf des d'un document Scribus especificat a "nomfitxer" |
||
588 | en el document actual. |
||
589 | </translation> |
||
590 | </message> |
||
591 | <message> |
||
14489 | cbradney | 592 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="222"/> |
12918 | cbradney | 593 | <source>setDocType(facingPages, firstPageLeft) |
594 | |||
595 | Sets the document type. To get facing pages set the first parameter to |
||
596 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
597 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
598 | a right page use FIRSTPAGERIGHT. |
||
599 | </source> |
||
600 | <translation type="unfinished">setDocType(facingPages, firstPageLeft) |
||
601 | |||
602 | Estableix el tipus de document. Per tenir pàgines acarades cal establir primer |
||
603 | paràmetre a FACINPAGES, i per no tenir-ne NOFACINPAGES. Si vols que la primera |
||
604 | pàgina sigui a l'esquerra cal posar al segon paràmetre FIRSTPAGELEFT, i perquè |
||
605 | sigui la dreta FIRSTPAGERIGHT. |
||
606 | </translation> |
||
607 | </message> |
||
608 | <message> |
||
14489 | cbradney | 609 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="232"/> |
12918 | cbradney | 610 | <source>closeMasterPage() |
611 | |||
612 | Closes the currently active master page, if any, and returns editing |
||
613 | to normal. Begin editing with editMasterPage(). |
||
614 | </source> |
||
615 | <translation type="unfinished">closeMasterPage() |
||
616 | |||
617 | Tanca la pàgina mestra activa. Si n'hi ha alguna, i retorna la edició |
||
618 | a normal. Sempre comença per editMasterPage(). |
||
619 | </translation> |
||
620 | </message> |
||
621 | <message> |
||
14489 | cbradney | 622 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="240"/> |
12918 | cbradney | 623 | <source>masterPageNames() |
624 | |||
625 | Returns a list of the names of all master pages in the document. |
||
626 | </source> |
||
627 | <translation type="unfinished">masterPageNames() |
||
628 | |||
629 | Retorna una llista de noms de totes les pàgines mestres del document. |
||
630 | </translation> |
||
631 | </message> |
||
632 | <message> |
||
14489 | cbradney | 633 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="247"/> |
12918 | cbradney | 634 | <source>editMasterPage(pageName) |
635 | |||
636 | Enables master page editing and opens the named master page |
||
637 | for editing. Finish editing with closeMasterPage(). |
||
638 | </source> |
||
639 | <translation type="unfinished">editMasterPage(NomPagina) |
||
640 | |||
641 | Activa la edició de la pàgina mestra i la obre per edició. |
||
642 | Acaba sempre amb closeMasterPage(). |
||
643 | </translation> |
||
644 | </message> |
||
645 | <message> |
||
14489 | cbradney | 646 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="255"/> |
12918 | cbradney | 647 | <source>createMasterPage(pageName) |
648 | |||
649 | Creates a new master page named pageName and opens it for |
||
650 | editing. |
||
651 | </source> |
||
652 | <translation type="unfinished">createMasterPage(NomPagina) |
||
653 | |||
654 | Crea una nova pàgina mestra amb el nom especificat i la obre |
||
655 | per edició. |
||
656 | </translation> |
||
657 | </message> |
||
658 | <message> |
||
14489 | cbradney | 659 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="263"/> |
12918 | cbradney | 660 | <source>deleteMasterPage(pageName) |
661 | |||
662 | Delete the named master page. |
||
663 | </source> |
||
664 | <translation type="unfinished">deleteMasterPage(NomPagina) |
||
665 | |||
666 | Esborra la pàgina mestra. |
||
667 | </translation> |
||
668 | </message> |
||
669 | <message> |
||
14489 | cbradney | 670 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="17"/> |
12918 | cbradney | 671 | <source>getFillColor(["name"]) -> string |
672 | |||
673 | Returns the name of the fill color of the object "name". |
||
674 | If "name" is not given the currently selected item is used. |
||
675 | </source> |
||
676 | <translation type="unfinished">getFillColor(["nom"]) -> string |
||
677 | |||
678 | Retorna el nom del color de l'objecte "nom". |
||
679 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
680 | </translation> |
||
681 | </message> |
||
682 | <message> |
||
14489 | cbradney | 683 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="27"/> |
12918 | cbradney | 684 | <source>getFillTransparency(["name"]) -> float |
685 | |||
686 | Returns the fill transparency of the object "name". If "name" |
||
687 | is not given the currently selected Item is used. |
||
688 | </source> |
||
689 | <translation type="unfinished"></translation> |
||
690 | </message> |
||
691 | <message> |
||
14489 | cbradney | 692 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="37"/> |
12918 | cbradney | 693 | <source>getFillBlendmode(["name"]) -> integer |
694 | |||
695 | Returns the fill blendmode of the object "name". If "name" |
||
696 | is not given the currently selected Item is used. |
||
697 | </source> |
||
698 | <translation type="unfinished"></translation> |
||
699 | </message> |
||
700 | <message> |
||
14489 | cbradney | 701 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="47"/> |
12918 | cbradney | 702 | <source>getLineColor(["name"]) -> string |
703 | |||
704 | Returns the name of the line color of the object "name". |
||
705 | If "name" is not given the currently selected item is used. |
||
706 | </source> |
||
707 | <translation type="unfinished">getLineColor(["nom"]) -> string |
||
708 | |||
709 | Retorna el nom del color de línia de l'objecte "nom". |
||
710 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
711 | </translation> |
||
712 | </message> |
||
713 | <message> |
||
14489 | cbradney | 714 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="57"/> |
12918 | cbradney | 715 | <source>getLineTransparency(["name"]) -> float |
716 | |||
717 | Returns the line transparency of the object "name". If "name" |
||
718 | is not given the currently selected Item is used. |
||
719 | </source> |
||
720 | <translation type="unfinished"></translation> |
||
721 | </message> |
||
722 | <message> |
||
14489 | cbradney | 723 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="67"/> |
12918 | cbradney | 724 | <source>getLineBlendmode(["name"]) -> integer |
725 | |||
726 | Returns the line blendmode of the object "name". If "name" |
||
727 | is not given the currently selected Item is used. |
||
728 | </source> |
||
729 | <translation type="unfinished"></translation> |
||
730 | </message> |
||
731 | <message> |
||
14489 | cbradney | 732 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="77"/> |
12918 | cbradney | 733 | <source>getLineWidth(["name"]) -> integer |
734 | |||
735 | Returns the line width of the object "name". If "name" |
||
736 | is not given the currently selected Item is used. |
||
737 | </source> |
||
738 | <translation type="unfinished">getLineWidth(["nom"]) -> integer |
||
739 | |||
740 | Retorna l'amplada de la línia de l'objecte "nom". Si no |
||
741 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
742 | </translation> |
||
743 | </message> |
||
744 | <message> |
||
14489 | cbradney | 745 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="87"/> |
12918 | cbradney | 746 | <source>getLineShade(["name"]) -> integer |
747 | |||
748 | Returns the shading value of the line color of the object "name". |
||
749 | If "name" is not given the currently selected item is used. |
||
750 | </source> |
||
751 | <translation type="unfinished">getLineShade(["nom"]) -> integer |
||
752 | |||
753 | Retorna el valor de la intensitat del color de la línia de l'objecte "nom". |
||
754 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
755 | </translation> |
||
756 | </message> |
||
757 | <message> |
||
14489 | cbradney | 758 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="97"/> |
12918 | cbradney | 759 | <source>getLineJoin(["name"]) -> integer (see constants) |
760 | |||
761 | Returns the line join style of the object "name". If "name" is not given |
||
762 | the currently selected item is used. The join types are: |
||
763 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
764 | </source> |
||
765 | <translation type="unfinished"></translation> |
||
766 | </message> |
||
767 | <message> |
||
14489 | cbradney | 768 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="108"/> |
12918 | cbradney | 769 | <source>getLineEnd(["name"]) -> integer (see constants) |
770 | |||
771 | Returns the line cap style of the object "name". If "name" is not given the |
||
772 | currently selected item is used. The cap types are: |
||
773 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
774 | </source> |
||
775 | <translation type="unfinished">getLineEnd(["nom"]) -> integer (mirar constants) |
||
776 | |||
777 | Retorna el tap de línia de l'objecte "nom". Si no especifiquem "nom" es fa |
||
778 | servir l'ítem seleccionat. Els tipus de tap són: |
||
779 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
780 | </translation> |
||
781 | </message> |
||
782 | <message> |
||
14489 | cbradney | 783 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="119"/> |
12918 | cbradney | 784 | <source>getLineStyle(["name"]) -> integer (see constants) |
785 | |||
786 | Returns the line style of the object "name". If "name" is not given the |
||
787 | currently selected item is used. Line style constants are: |
||
788 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
789 | </source> |
||
790 | <translation type="unfinished">getLineStyle(["nom"]) -> integer (mirar constants) |
||
791 | |||
792 | Retorna l'estil de línia de l'objecte "nom". Si no especifiquem "nom" es |
||
793 | fa servir l'ítem seleccionat.. Les constants de línia són: |
||
794 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
795 | </translation> |
||
796 | </message> |
||
797 | <message> |
||
14489 | cbradney | 798 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="130"/> |
12918 | cbradney | 799 | <source>getFillShade(["name"]) -> integer |
800 | |||
801 | Returns the shading value of the fill color of the object "name". |
||
802 | If "name" is not given the currently selected item is used. |
||
803 | </source> |
||
804 | <translation type="unfinished">getFillShade(["nom"]) -> integer |
||
805 | |||
806 | Retorna el valor de la intensitat del color d'emplenament de l'objecte "nom". |
||
807 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
808 | </translation> |
||
809 | </message> |
||
810 | <message> |
||
14489 | cbradney | 811 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="140"/> |
12918 | cbradney | 812 | <source>getCornerRadius(["name"]) -> integer |
813 | |||
814 | Returns the corner radius of the object "name". The radius is |
||
815 | expressed in points. If "name" is not given the currently |
||
816 | selected item is used. |
||
817 | </source> |
||
818 | <translation type="unfinished">getCornerRadius(["nom"]) -> integer |
||
819 | |||
820 | Retorna el radi d'arrodoniment de l'objecte "nom". El radi està |
||
821 | expressat en punts. Si no especifiquem "nom" es fa servir |
||
822 | l'ítem seleccionat. |
||
823 | </translation> |
||
824 | </message> |
||
825 | <message> |
||
14489 | cbradney | 826 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="151"/> |
12918 | cbradney | 827 | <source>getImageScale(["name"]) -> (x,y) |
828 | |||
829 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
830 | "name". If "name" is not given the currently selected item is used. |
||
831 | </source> |
||
832 | <translation type="unfinished">getImageScale(["name"]) -> (x,y) |
||
833 | |||
834 | Retorna una parella (x,y) contenint els valors d'escalat de la imatge |
||
835 | "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
836 | </translation> |
||
837 | </message> |
||
838 | <message> |
||
14489 | cbradney | 839 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="161"/> |
12918 | cbradney | 840 | <source>getImageName(["name"]) -> string |
841 | |||
842 | Returns the filename for the image in the image frame. If "name" is not |
||
843 | given the currently selected item is used. |
||
844 | </source> |
||
845 | <translation type="unfinished">getImageName(["nom"]) -> string |
||
846 | |||
847 | Retorna el nom del fitxer de la imatge que tenim. Si no especifiquem "nom" |
||
848 | es fa servir l'ítem seleccionat.</translation> |
||
849 | </message> |
||
850 | <message> |
||
14489 | cbradney | 851 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="171"/> |
12918 | cbradney | 852 | <source>getPosition(["name"]) -> (x,y) |
853 | |||
854 | Returns a (x, y) tuple with the position of the object "name". |
||
855 | If "name" is not given the currently selected item is used. |
||
856 | The position is expressed in the actual measurement unit of the document |
||
857 | - see UNIT_<type> for reference. |
||
858 | </source> |
||
859 | <translation type="unfinished">getPosition(["nom"]) -> (x,y) |
||
860 | |||
861 | Retorna una parella (x,y) amb la posició de l'objecte "nom". |
||
862 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
863 | La posició està expressada en les unitats de mesura del document |
||
864 | - mireu UNIT_<tipus> per referència. |
||
865 | </translation> |
||
866 | </message> |
||
867 | <message> |
||
14489 | cbradney | 868 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="183"/> |
12918 | cbradney | 869 | <source>getSize(["name"]) -> (width,height) |
870 | |||
871 | Returns a (width, height) tuple with the size of the object "name". |
||
872 | If "name" is not given the currently selected item is used. The size is |
||
873 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
874 | for reference. |
||
875 | </source> |
||
876 | <translation type="unfinished">getSize(["nom"]) -> (amplada,alçada) |
||
877 | |||
878 | Retorna un parell (amplada, alçada) amb la mida de l'objecte "nom". |
||
879 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. La mida està |
||
880 | expressada en les unitats de mesura del document - mireu UNIT_<tipus> |
||
881 | per referència.</translation> |
||
882 | </message> |
||
883 | <message> |
||
14489 | cbradney | 884 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="195"/> |
12918 | cbradney | 885 | <source>getRotation(["name"]) -> integer |
886 | |||
887 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
888 | and clockwise is positive. If "name" is not given the currently selected item |
||
889 | is used. |
||
890 | </source> |
||
891 | <translation type="unfinished">getRotation(["name"]) -> integer |
||
892 | |||
893 | Retorna la rotació de l'objecte "nom". El valor està expressat en graus, |
||
894 | en sentit horari és positiu. Si no especifiquem "nom" es fa servir l'ítem |
||
895 | seleccionat. |
||
896 | </translation> |
||
897 | </message> |
||
898 | <message> |
||
14489 | cbradney | 899 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="206"/> |
12918 | cbradney | 900 | <source>getAllObjects() -> list |
901 | |||
902 | Returns a list containing the names of all objects on the current page. |
||
903 | </source> |
||
904 | <translation type="unfinished">getAllObjects() -> list |
||
905 | |||
906 | Retorna una llista que conté els noms de tots els objectes de la pàgina actual. |
||
907 | </translation> |
||
908 | </message> |
||
909 | <message> |
||
14489 | cbradney | 910 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="77"/> |
12918 | cbradney | 911 | <source>getPropertyCType(object, property, includesuper=True) |
912 | |||
913 | Returns the name of the C type of `property' of `object'. See getProperty() |
||
914 | for details of arguments. |
||
915 | |||
916 | If `includesuper' is true, search inherited properties too. |
||
917 | </source> |
||
918 | <translation type="unfinished">getPropertyCType(objecte, propietat, includesuper=True) |
||
919 | |||
920 | Retorna el nom del tipus C de la propietat 'propietat' de l'objecte. Mira getProperty() |
||
921 | per més detalls sobre els arguments. |
||
922 | |||
923 | Si `includesuper' és cert, busca també en les propietats heretades.</translation> |
||
924 | </message> |
||
925 | <message> |
||
14489 | cbradney | 926 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="96"/> |
12918 | cbradney | 927 | <source>getPropertyNames(object, includesuper=True) |
928 | |||
929 | Return a list of property names supported by `object'. |
||
930 | If `includesuper' is true, return properties supported |
||
931 | by parent classes as well. |
||
932 | </source> |
||
933 | <translation type="unfinished">getPropertyNames(objecte, includesuper=True) |
||
934 | |||
935 | Retorna la llista de propietats de l'objecte 'objecte'. |
||
936 | Si `includesuper' és cert, també retorna les propietats |
||
937 | heretades de les classes pare.</translation> |
||
938 | </message> |
||
939 | <message> |
||
14489 | cbradney | 940 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="123"/> |
12918 | cbradney | 941 | <source>getProperty(object, property) |
942 | |||
943 | Return the value of the property `property' of the passed `object'. |
||
944 | |||
945 | The `object' argument may be a string, in which case the named PageItem |
||
946 | is searched for. It may also be a PyCObject, which may point to any |
||
947 | C++ QObject instance. |
||
948 | |||
949 | The `property' argument must be a string, and is the name of the property |
||
950 | to look up on `object'. |
||
951 | |||
952 | The return value varies depending on the type of the property. |
||
953 | </source> |
||
954 | <translation type="unfinished">getProperty(objecte, propietat) |
||
955 | |||
956 | Retorna el valor de la propietat especificada de l'objecte 'objecte'. |
||
957 | |||
958 | L'argument 'objecte' pot ser una cadena de caràcters, i en aquest cas es busca |
||
959 | els PageItem. També pot ser un objecte PyCObject, que pot apuntar a qualsevol |
||
960 | instància del QObjecte de C++. |
||
961 | |||
962 | L'argument 'propietat' ha de ser una cadena de caràcters, i és el nom de la propietat |
||
963 | que buscarem en l''objecte'. |
||
964 | |||
965 | Els valors de retorn varien en funció del tipus de la propietat.</translation> |
||
966 | </message> |
||
967 | <message> |
||
14489 | cbradney | 968 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="158"/> |
12918 | cbradney | 969 | <source>setProperty(object, property, value) |
970 | |||
971 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
||
972 | compatible with the type of `property', an exception is raised. An exception may |
||
973 | also be raised if the underlying setter fails. |
||
974 | |||
975 | See getProperty() for more information. |
||
976 | </source> |
||
977 | <translation type="unfinished">setProperty(objecte, propietat, valor) |
||
978 | |||
979 | Posa el valor 'valor' a la 'propietat' de l''objecte'. Si 'valor' no es pot convertir al tipus |
||
980 | compatible amb la 'propietat', es generarà una excepció. També es pot generar una |
||
981 | excepció si falla l'assignació. |
||
982 | |||
983 | Mira getProperty() per obtenir més informació.</translation> |
||
984 | </message> |
||
985 | <message> |
||
14489 | cbradney | 986 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="17"/> |
12918 | cbradney | 987 | <source>moveObject(dx, dy [, "name"]) |
988 | |||
989 | Moves the object "name" by dx and dy relative to its current position. The |
||
990 | distances are expressed in the current measurement unit of the document (see |
||
991 | UNIT constants). If "name" is not given the currently selected item is used. |
||
992 | If the object "name" belongs to a group, the whole group is moved. |
||
993 | </source> |
||
994 | <translation type="unfinished">moveObject(dx, dy [,"nom"]) |
||
995 | |||
996 | Mou l'objecte "nom" una distància dx i dx respecte la posició actual. Les |
||
997 | distàncies estan expressades en les unitats actuals del document (mireu |
||
998 | unitats). Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
999 | Si l'objecte "nom" pertany a un grup, es mou tot el grup. |
||
1000 | </translation> |
||
1001 | </message> |
||
1002 | <message> |
||
14489 | cbradney | 1003 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="29"/> |
12918 | cbradney | 1004 | <source>moveObjectAbs(x, y [, "name"]) |
1005 | |||
1006 | Moves the object "name" to a new location. The coordinates are expressed in |
||
1007 | the current measurement unit of the document (see UNIT constants). If "name" |
||
1008 | is not given the currently selected item is used. If the object "name" |
||
1009 | belongs to a group, the whole group is moved. |
||
1010 | </source> |
||
1011 | <translation type="unfinished">moveObjectAbs(x, y [, "nom"]) |
||
1012 | |||
1013 | Mou l'objecte "nom" a una nova posició. Les coordenades estan expressades en |
||
1014 | les unitats de mesura del document (veure constants UNIT). Si no especifiquem "nom" |
||
1015 | es fa servir l'ítem seleccionat. Si l'objecte "nom" pertany a un grup, |
||
1016 | es mou tot el grup. |
||
1017 | </translation> |
||
1018 | </message> |
||
1019 | <message> |
||
14489 | cbradney | 1020 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="41"/> |
12918 | cbradney | 1021 | <source>rotateObject(rot [, "name"]) |
1022 | |||
1023 | Rotates the object "name" by "rot" degrees relatively. The object is |
||
1024 | rotated by the vertex that is currently selected as the rotation point - by |
||
1025 | default, the top left vertex at zero rotation. Positive values mean counter |
||
1026 | clockwise rotation when the default rotation point is used. If "name" is not |
||
1027 | given the currently selected item is used. |
||
1028 | </source> |
||
1029 | <translation type="unfinished"></translation> |
||
1030 | </message> |
||
1031 | <message> |
||
14489 | cbradney | 1032 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="54"/> |
12918 | cbradney | 1033 | <source>rotateObjectAbs(rot [, "name"]) |
1034 | |||
1035 | Sets the rotation of the object "name" to "rot". Positive values |
||
1036 | mean counter clockwise rotation. If "name" is not given the currently |
||
1037 | selected item is used. |
||
1038 | </source> |
||
1039 | <translation type="unfinished">rotateObjectAbs(rot [,"nom"]) |
||
1040 | |||
1041 | Estableix la rotació de l'objecte "nom" a "rot". Els valors positius |
||
1042 | signifiquen rotació horaria. Si no especifiquem "nom" es fa servir |
||
1043 | l'ítem seleccionat. |
||
1044 | </translation> |
||
1045 | </message> |
||
1046 | <message> |
||
14489 | cbradney | 1047 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="65"/> |
12918 | cbradney | 1048 | <source>sizeObject(width, height [, "name"]) |
1049 | |||
1050 | Resizes the object "name" to the given width and height. If "name" |
||
1051 | is not given the currently selected item is used. |
||
1052 | </source> |
||
1053 | <translation type="unfinished">sizeObject(amplada, alçada [, "nom"]) |
||
1054 | |||
1055 | Canvia la mida de l'objecte "nom" a la mida especificada. Si no |
||
1056 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1057 | </translation> |
||
1058 | </message> |
||
1059 | <message> |
||
14489 | cbradney | 1060 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="75"/> |
12918 | cbradney | 1061 | <source>getSelectedObject([nr]) -> string |
1062 | |||
1063 | Returns the name of the selected object. "nr" if given indicates the number |
||
1064 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
1065 | second selected Object and so on. |
||
1066 | </source> |
||
1067 | <translation type="unfinished">getSelectedObject([nr]) -> string |
||
1068 | |||
1069 | Retorna el nom de l'objecte seleccionat. "nr" si es dóna especifica el número |
||
1070 | de l'objecte seleccionat, ex. 0 significa el primer objecte seleccionat, 1 el |
||
1071 | segon i així. |
||
1072 | </translation> |
||
1073 | </message> |
||
1074 | <message> |
||
14489 | cbradney | 1075 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="86"/> |
12918 | cbradney | 1076 | <source>selectionCount() -> integer |
1077 | |||
1078 | Returns the number of selected objects. |
||
1079 | </source> |
||
1080 | <translation type="unfinished">seleccionCount() -> integer |
||
1081 | |||
1082 | Retorna el número d'objectes seleccionats. |
||
1083 | </translation> |
||
1084 | </message> |
||
1085 | <message> |
||
14489 | cbradney | 1086 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="95"/> |
12918 | cbradney | 1087 | <source>selectObject("name") |
1088 | |||
1089 | Selects the object with the given "name". |
||
1090 | </source> |
||
1091 | <translation type="unfinished">selectObject("nom") |
||
1092 | |||
1093 | Selecciona l'objecte amb el nom "nom". |
||
1094 | </translation> |
||
1095 | </message> |
||
1096 | <message> |
||
14489 | cbradney | 1097 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="104"/> |
12918 | cbradney | 1098 | <source>deselectAll() |
1099 | |||
1100 | Deselects all objects in the whole document. |
||
1101 | </source> |
||
1102 | <translation type="unfinished">deselectAll() |
||
1103 | |||
1104 | Deselecciona tots els objectes de tot el document. |
||
1105 | </translation> |
||
1106 | </message> |
||
1107 | <message> |
||
14489 | cbradney | 1108 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="113"/> |
12918 | cbradney | 1109 | <source>groupObjects(list) |
1110 | |||
1111 | Groups the objects named in "list" together. "list" must contain the names |
||
1112 | of the objects to be grouped. If "list" is not given the currently selected |
||
1113 | items are used. |
||
1114 | </source> |
||
1115 | <translation type="unfinished">groupObjects(llista) |
||
1116 | |||
1117 | Agrupa els objectes que especifiquem a la llista "llista". La llista ha de contenir |
||
1118 | els noms dels objectes a agrupar. Si no s'especifica llista es fan servir els |
||
1119 | objectes que estiguin seleccionats. |
||
1120 | </translation> |
||
1121 | </message> |
||
1122 | <message> |
||
14489 | cbradney | 1123 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="124"/> |
12918 | cbradney | 1124 | <source>unGroupObjects("name") |
1125 | |||
1126 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
1127 | <translation type="unfinished">unGroupObjects("nom") |
||
1128 | |||
1129 | Destrueix el grup al qual pertany l'objecte "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat.</translation> |
||
1130 | </message> |
||
1131 | <message> |
||
14489 | cbradney | 1132 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="132"/> |
12918 | cbradney | 1133 | <source>scaleGroup(factor [,"name"]) |
1134 | |||
1135 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
1136 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
1137 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
1138 | to 150 % of its original size. The value for "factor" must be greater than |
||
1139 | 0. If "name" is not given the currently selected item is used. |
||
1140 | |||
1141 | May raise ValueError if an invalid scale factor is passed. |
||
1142 | </source> |
||
1143 | <translation type="unfinished">scaleGroup(factor [,"nom"]) |
||
1144 | |||
1145 | Escala el grup al qual pertany l'objecte "nom". Valors més grans que 1 incrementen |
||
1146 | el grup, i valors més petits que 1 decrementen el grup. ex. Un valor de 0.5 escala |
||
1147 | el grup al 50% del valor original, un valor de 1.5 escala el grup a un |
||
1148 | 150% del valor original. El valor de "factor" ha de ser més gran que |
||
1149 | 0. Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1150 | |||
1151 | Pot provocar un ValueError si s'especifica un factor invàlid. |
||
1152 | </translation> |
||
1153 | </message> |
||
1154 | <message> |
||
14489 | cbradney | 1155 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="147"/> |
12918 | cbradney | 1156 | <source>loadImage("filename" [, "name"]) |
1157 | |||
1158 | Loads the picture "picture" into the image frame "name". If "name" is |
||
1159 | not given the currently selected item is used. |
||
1160 | |||
1161 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1162 | </source> |
||
1163 | <translation type="unfinished">loadImage("nomFitxer", [,"nom"]) |
||
1164 | |||
1165 | Carrega la imatge "nomFitxer" en el marc d'imatge "nom". Si no especifiquem |
||
1166 | "nom" es fa servir l'ítem seleccionat. |
||
1167 | |||
1168 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
1169 | </translation> |
||
1170 | </message> |
||
1171 | <message> |
||
14489 | cbradney | 1172 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="159"/> |
12918 | cbradney | 1173 | <source>scaleImage(x, y [, "name"]) |
1174 | |||
14489 | cbradney | 1175 | Sets the internal scaling factors of the picture in the image frame "name". |
1176 | If "name" is not given the currently selected item is used. A number of 1 |
||
1177 | means 100 %. Internal scaling factors are different from the values shown on |
||
1178 | properties palette. Note : deprecated, use setImageScale() instead. |
||
1179 | |||
1180 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1181 | </source> |
||
1182 | <translation type="unfinished"></translation> |
||
1183 | </message> |
||
1184 | <message> |
||
1185 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="173"/> |
||
1186 | <source>setImageScale(x, y [, "name"]) |
||
1187 | |||
12918 | cbradney | 1188 | Sets the scaling factors of the picture in the image frame "name". |
1189 | If "name" is not given the currently selected item is used. A number of 1 |
||
14489 | cbradney | 1190 | means 100 %. Scaling factors are equal to the values shown on properties palette. |
1191 | |||
1192 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1193 | </source> |
||
1194 | <translation type="unfinished"></translation> |
||
1195 | </message> |
||
1196 | <message> |
||
1197 | <source>scaleImage(x, y [, "name"]) |
||
1198 | |||
1199 | Sets the scaling factors of the picture in the image frame "name". |
||
1200 | If "name" is not given the currently selected item is used. A number of 1 |
||
12918 | cbradney | 1201 | means 100 %. |
1202 | |||
1203 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1204 | </source> |
||
14489 | cbradney | 1205 | <translation type="obsolete">scaleImage(x, y [, "nom"]) |
12918 | cbradney | 1206 | |
1207 | Estableix els factors d'escalat de la imatge del marc d'imatge "nom". |
||
1208 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Un valor de 1 |
||
1209 | significa 100 %. |
||
1210 | |||
1211 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
1212 | </translation> |
||
1213 | </message> |
||
1214 | <message> |
||
14489 | cbradney | 1215 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="186"/> |
12918 | cbradney | 1216 | <source>lockObject(["name"]) -> bool |
1217 | |||
1218 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
1219 | If "name" is not given the currently selected item is used. Returns true |
||
1220 | if locked. |
||
1221 | </source> |
||
1222 | <translation type="unfinished">lockObject(["nom"]) -> bool |
||
1223 | |||
1224 | Bloqueja l'objecte "nom" si està desbloquejat o el desbloqueja si està bloquejat. |
||
1225 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Retorna cert |
||
1226 | si bloqueja. |
||
1227 | </translation> |
||
1228 | </message> |
||
1229 | <message> |
||
14489 | cbradney | 1230 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="197"/> |
12918 | cbradney | 1231 | <source>isLocked(["name"]) -> bool |
1232 | |||
1233 | Returns true if is the object "name" locked. If "name" is not given the |
||
1234 | currently selected item is used. |
||
1235 | </source> |
||
1236 | <translation type="unfinished">isLocked(["nom"]) -> bool |
||
1237 | |||
1238 | Retorna cert si l'objecte "nom" està bloquejat. Si no especifiquem "nom" es |
||
1239 | fa servir l'ítem seleccionat. |
||
1240 | </translation> |
||
1241 | </message> |
||
1242 | <message> |
||
14489 | cbradney | 1243 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="206"/> |
12918 | cbradney | 1244 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
1245 | |||
1246 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
||
1247 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1248 | Both `scaletoframe' and `proportional' are boolean. |
||
1249 | |||
1250 | May raise WrongFrameTypeError. |
||
1251 | </source> |
||
1252 | <translation type="unfinished">setScaleImageToFrame(escalaamarc, proporcional=None, nom=<selection>) |
||
1253 | |||
1254 | Estableix la escala del marc especificat o seleccionat a 'escalaamarc'. |
||
1255 | Si hi posem valor a 'proporcional', estableix l'aspecte de representació a 'proporcional'. |
||
1256 | Ambdós 'escalaamarc' i 'proporcional' són booleans. |
||
1257 | |||
1258 | Pot provocar WrongFrameTypeError. |
||
1259 | </translation> |
||
1260 | </message> |
||
1261 | <message> |
||
14489 | cbradney | 1262 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="19"/> |
12918 | cbradney | 1263 | <source>setRedraw(bool) |
1264 | |||
1265 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
1266 | This change will persist even after the script exits, so make sure to call |
||
1267 | setRedraw(True) in a finally: clause at the top level of your script. |
||
1268 | </source> |
||
1269 | <translation type="unfinished">setRedraw(bool) |
||
1270 | |||
1271 | Desactiva el repintat de la pàgina quan bool=fals, altrament està activat. |
||
1272 | Aquest canvi continuarà fins i tot quan acabi l'execució de la seqüència, per tant cal estar |
||
1273 | segur d'acabar amb setRedraw(True): clausula a nivell alt de la teva seqüència. |
||
1274 | </translation> |
||
1275 | </message> |
||
1276 | <message> |
||
14489 | cbradney | 1277 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="30"/> |
12918 | cbradney | 1278 | <source>getFontNames() -> list |
1279 | |||
1280 | Returns a list with the names of all available fonts. |
||
1281 | </source> |
||
1282 | <translation type="unfinished">getFontNames() -> llista |
||
1283 | |||
1284 | Retorna una llista amb els noms de totes les fonts. |
||
1285 | </translation> |
||
1286 | </message> |
||
1287 | <message> |
||
14489 | cbradney | 1288 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="39"/> |
12918 | cbradney | 1289 | <source>getXFontNames() -> list of tuples |
1290 | |||
1291 | Returns a larger font info. It's a list of the tuples with: |
||
1292 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
1293 | </source> |
||
1294 | <translation type="unfinished">getXFontNames() -> llista de tuples |
||
1295 | |||
1296 | Retorna molta informació de font. És una llista de tuples amb: |
||
1297 | [ (Nom Scribus, Familia, Nom Real, subconjunt (1|0), embed PS (1|0), fitxer de font), (...), ...] |
||
1298 | </translation> |
||
1299 | </message> |
||
1300 | <message> |
||
14489 | cbradney | 1301 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="52"/> |
12918 | cbradney | 1302 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
1303 | |||
1304 | Creates an image preview of font "name" with given text "sample" and size. |
||
1305 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1306 | image data is returned as a string. The optional "format" argument |
||
1307 | specifies the image format to generate, and supports any format allowed |
||
1308 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1309 | |||
1310 | May raise NotFoundError if the specified font can't be found. |
||
1311 | May raise ValueError if an empty sample or filename is passed. |
||
1312 | </source> |
||
1313 | <translation type="unfinished">renderFont("nom", "fitxer", "mostra", size, format="PPM") -> bool |
||
1314 | |||
1315 | Crea una vista prèvia de la font "nom" amb el text "mostra" a la mida especificada. |
||
1316 | Si el nom no és "", la imatge es guarda a "nom". I si no ho és es retornen les |
||
1317 | dades de la imatge com una cadena. L'argument opcional "format" |
||
1318 | especifica el format de la imatge a generar, i suporta tots els formats permesos |
||
1319 | per QPixmap.save(). Els formats més comuns són PPM, JPEG, PNG and XPM. |
||
1320 | |||
1321 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1322 | Pot generar ValueError si el nom de la capa no és acceptable. |
||
1323 | </translation> |
||
1324 | </message> |
||
1325 | <message> |
||
14489 | cbradney | 1326 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="68"/> |
12918 | cbradney | 1327 | <source>getLayers() -> list |
1328 | |||
1329 | Returns a list with the names of all defined layers. |
||
1330 | </source> |
||
1331 | <translation type="unfinished">getLayers() -> llista |
||
1332 | |||
1333 | Retorna una llista amb els noms de totes les capes. |
||
1334 | </translation> |
||
1335 | </message> |
||
1336 | <message> |
||
14489 | cbradney | 1337 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="77"/> |
12918 | cbradney | 1338 | <source>setActiveLayer("name") |
1339 | |||
1340 | Sets the active layer to the layer named "name". |
||
1341 | |||
1342 | May raise NotFoundError if the layer can't be found. |
||
1343 | May raise ValueError if the layer name isn't acceptable. |
||
1344 | </source> |
||
1345 | <translation type="unfinished">setActiveLayer("nom") |
||
1346 | |||
1347 | Canvia la capa activa a una capa anomenada "nom". |
||
1348 | |||
1349 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1350 | Pot generar ValueError si la capa nom no és acceptable. |
||
1351 | </translation> |
||
1352 | </message> |
||
1353 | <message> |
||
14489 | cbradney | 1354 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="89"/> |
12918 | cbradney | 1355 | <source>getActiveLayer() -> string |
1356 | |||
1357 | Returns the name of the current active layer. |
||
1358 | </source> |
||
1359 | <translation type="unfinished">getActiveLayer() -> string |
||
1360 | |||
1361 | Retorna el nom de la capa activa. |
||
1362 | </translation> |
||
1363 | </message> |
||
1364 | <message> |
||
14489 | cbradney | 1365 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="98"/> |
12918 | cbradney | 1366 | <source>sentToLayer("layer" [, "name"]) |
1367 | |||
1368 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1369 | If "name" is not given the currently selected item is used. |
||
1370 | |||
1371 | May raise NotFoundError if the layer can't be found. |
||
1372 | May raise ValueError if the layer name isn't acceptable. |
||
1373 | </source> |
||
1374 | <translation type="unfinished">sendToLayer("capa" [, "nom"]) |
||
1375 | |||
1376 | Envia l'objecte "nom" a la capa "capa". La capa ha d'existir. |
||
1377 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1378 | |||
1379 | Pot provocar NotFoundError si la capa no es pot trobar. |
||
1380 | Pot provocar ValueError si el nom no és acceptable. |
||
1381 | |||
1382 | |||
1383 | </translation> |
||
1384 | </message> |
||
1385 | <message> |
||
14489 | cbradney | 1386 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="111"/> |
12918 | cbradney | 1387 | <source>setLayerVisible("layer", visible) |
1388 | |||
1389 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1390 | the layer is invisible. |
||
1391 | |||
1392 | May raise NotFoundError if the layer can't be found. |
||
1393 | May raise ValueError if the layer name isn't acceptable. |
||
1394 | </source> |
||
1395 | <translation type="unfinished">setLayerVisible("capa", visible) |
||
1396 | |||
1397 | Estableix la capa especificada a visible o no. Si visible està false |
||
1398 | la capa és invisible. |
||
1399 | |||
1400 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1401 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1402 | </translation> |
||
1403 | </message> |
||
1404 | <message> |
||
14489 | cbradney | 1405 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="124"/> |
12918 | cbradney | 1406 | <source>setLayerPrintable("layer", printable) |
1407 | |||
1408 | Sets the layer "layer" to be printable or not. If is the |
||
1409 | printable set to false the layer won't be printed. |
||
1410 | |||
1411 | May raise NotFoundError if the layer can't be found. |
||
1412 | May raise ValueError if the layer name isn't acceptable. |
||
1413 | </source> |
||
1414 | <translation type="unfinished"></translation> |
||
1415 | </message> |
||
1416 | <message> |
||
14489 | cbradney | 1417 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="137"/> |
12918 | cbradney | 1418 | <source>setLayerLocked("layer", locked) |
1419 | |||
1420 | Sets the layer "layer" to be locked or not. If locked is set to |
||
1421 | true the layer will be locked. |
||
1422 | |||
1423 | May raise NotFoundError if the layer can't be found. |
||
1424 | May raise ValueError if the layer name isn't acceptable. |
||
1425 | </source> |
||
1426 | <translation type="unfinished"></translation> |
||
1427 | </message> |
||
1428 | <message> |
||
14489 | cbradney | 1429 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="150"/> |
12918 | cbradney | 1430 | <source>setLayerOutlined("layer", outline) |
1431 | |||
1432 | Sets the layer "layer" to be locked or not. If outline is set to |
||
1433 | true the layer will be displayed outlined. |
||
1434 | |||
1435 | May raise NotFoundError if the layer can't be found. |
||
1436 | May raise ValueError if the layer name isn't acceptable. |
||
1437 | </source> |
||
1438 | <translation type="unfinished"></translation> |
||
1439 | </message> |
||
1440 | <message> |
||
14489 | cbradney | 1441 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="163"/> |
12918 | cbradney | 1442 | <source>setLayerFlow("layer", flow) |
1443 | |||
1444 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
||
1445 | true text in layers above this one will flow around objects on this layer. |
||
1446 | |||
1447 | May raise NotFoundError if the layer can't be found. |
||
1448 | May raise ValueError if the layer name isn't acceptable. |
||
1449 | </source> |
||
1450 | <translation type="unfinished"></translation> |
||
1451 | </message> |
||
1452 | <message> |
||
14489 | cbradney | 1453 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="176"/> |
12918 | cbradney | 1454 | <source>setLayerBlendmode("layer", blend) |
1455 | |||
1456 | Sets the layers "layer" blendmode to blend. |
||
1457 | |||
1458 | May raise NotFoundError if the layer can't be found. |
||
1459 | May raise ValueError if the layer name isn't acceptable. |
||
1460 | </source> |
||
1461 | <translation type="unfinished"></translation> |
||
1462 | </message> |
||
1463 | <message> |
||
14489 | cbradney | 1464 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="188"/> |
12918 | cbradney | 1465 | <source>setLayerTransparency("layer", trans) |
1466 | |||
1467 | Sets the layers "layer" transparency to trans. |
||
1468 | |||
1469 | May raise NotFoundError if the layer can't be found. |
||
1470 | May raise ValueError if the layer name isn't acceptable. |
||
1471 | </source> |
||
1472 | <translation type="unfinished"></translation> |
||
1473 | </message> |
||
1474 | <message> |
||
14489 | cbradney | 1475 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="200"/> |
12918 | cbradney | 1476 | <source>isLayerVisible("layer") -> bool |
1477 | |||
1478 | Returns whether the layer "layer" is visible or not, a value of True means |
||
1479 | that the layer "layer" is visible, a value of False means that the layer |
||
1480 | "layer" is invisible. |
||
1481 | |||
1482 | May raise NotFoundError if the layer can't be found. |
||
1483 | May raise ValueError if the layer name isn't acceptable. |
||
1484 | </source> |
||
1485 | <translation type="unfinished"></translation> |
||
1486 | </message> |
||
1487 | <message> |
||
14489 | cbradney | 1488 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="214"/> |
12918 | cbradney | 1489 | <source>isLayerPrintable("layer") -> bool |
1490 | |||
1491 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1492 | that the layer "layer" can be printed, a value of False means that printing |
||
1493 | the layer "layer" is disabled. |
||
1494 | |||
1495 | May raise NotFoundError if the layer can't be found. |
||
1496 | May raise ValueError if the layer name isn't acceptable. |
||
1497 | </source> |
||
1498 | <translation type="unfinished">isLayerPrintable("capa") ->bool |
||
1499 | |||
1500 | Retorna si la capa "capa" és visible o no, un valor de cert significa |
||
1501 | que la capa "capa" està activada, un valor de fals significa que la capa |
||
1502 | "capa" està desactivada. |
||
1503 | |||
1504 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1505 | Pot generar ValueError si el nom de la capa no és acceptable. |
||
1506 | </translation> |
||
1507 | </message> |
||
1508 | <message> |
||
14489 | cbradney | 1509 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="228"/> |
12918 | cbradney | 1510 | <source>isLayerLocked("layer") -> bool |
1511 | |||
1512 | Returns whether the layer "layer" is locked or not, a value of True means |
||
1513 | that the layer "layer" is editable, a value of False means that the layer |
||
1514 | "layer" is locked. |
||
1515 | |||
1516 | May raise NotFoundError if the layer can't be found. |
||
1517 | May raise ValueError if the layer name isn't acceptable. |
||
1518 | </source> |
||
1519 | <translation type="unfinished"></translation> |
||
1520 | </message> |
||
1521 | <message> |
||
14489 | cbradney | 1522 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="242"/> |
12918 | cbradney | 1523 | <source>isLayerOutlined("layer") -> bool |
1524 | |||
1525 | Returns whether the layer "layer" is outlined or not, a value of True means |
||
1526 | that the layer "layer" is outlined, a value of False means that the layer |
||
1527 | "layer" is normal. |
||
1528 | |||
1529 | May raise NotFoundError if the layer can't be found. |
||
1530 | May raise ValueError if the layer name isn't acceptable. |
||
1531 | </source> |
||
1532 | <translation type="unfinished"></translation> |
||
1533 | </message> |
||
1534 | <message> |
||
14489 | cbradney | 1535 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="256"/> |
12918 | cbradney | 1536 | <source>isLayerFlow("layer") -> bool |
1537 | |||
1538 | Returns whether text flows around objects on layer "layer", a value of True means |
||
1539 | that text flows around, a value of False means that the text does not flow around. |
||
1540 | |||
1541 | May raise NotFoundError if the layer can't be found. |
||
1542 | May raise ValueError if the layer name isn't acceptable. |
||
1543 | </source> |
||
1544 | <translation type="unfinished"></translation> |
||
1545 | </message> |
||
1546 | <message> |
||
14489 | cbradney | 1547 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="269"/> |
12918 | cbradney | 1548 | <source>getLayerBlendmode("layer") -> int |
1549 | |||
1550 | Returns the "layer" layer blendmode, |
||
1551 | |||
1552 | May raise NotFoundError if the layer can't be found. |
||
1553 | May raise ValueError if the layer name isn't acceptable. |
||
1554 | </source> |
||
1555 | <translation type="unfinished"></translation> |
||
1556 | </message> |
||
1557 | <message> |
||
14489 | cbradney | 1558 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="281"/> |
12918 | cbradney | 1559 | <source>getLayerTransparency("layer") -> float |
1560 | |||
1561 | Returns the "layer" layer transparency, |
||
1562 | |||
1563 | May raise NotFoundError if the layer can't be found. |
||
1564 | May raise ValueError if the layer name isn't acceptable. |
||
1565 | </source> |
||
1566 | <translation type="unfinished"></translation> |
||
1567 | </message> |
||
1568 | <message> |
||
14489 | cbradney | 1569 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="293"/> |
12918 | cbradney | 1570 | <source>deleteLayer("layer") |
1571 | |||
1572 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
1573 | exists or if it's the only layer in the document. |
||
1574 | |||
1575 | May raise NotFoundError if the layer can't be found. |
||
1576 | May raise ValueError if the layer name isn't acceptable. |
||
1577 | </source> |
||
1578 | <translation type="unfinished">deleteLayer("capa") |
||
1579 | |||
1580 | Esborra la capa amb el nom "capa". Si la capa no existeix o és la única del |
||
1581 | document no passa res. |
||
1582 | |||
1583 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1584 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1585 | </translation> |
||
1586 | </message> |
||
1587 | <message> |
||
14489 | cbradney | 1588 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="306"/> |
12918 | cbradney | 1589 | <source>createLayer(layer) |
1590 | |||
1591 | Creates a new layer with the name "name". |
||
1592 | |||
1593 | May raise ValueError if the layer name isn't acceptable. |
||
1594 | </source> |
||
1595 | <translation type="unfinished">createLayer(capa) |
||
1596 | |||
1597 | Crea una nova capa amb el nom "capa". |
||
1598 | |||
1599 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1600 | </translation> |
||
1601 | </message> |
||
1602 | <message> |
||
14489 | cbradney | 1603 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="317"/> |
12918 | cbradney | 1604 | <source>getGuiLanguage() -> string |
1605 | |||
1606 | Returns a string with the -lang value. |
||
1607 | </source> |
||
1608 | <translation type="unfinished">getGuiLanguage() -> string |
||
1609 | |||
1610 | Retorna una cadena amb el valor de -lang. |
||
1611 | </translation> |
||
1612 | </message> |
||
1613 | <message> |
||
14489 | cbradney | 1614 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="326"/> |
12918 | cbradney | 1615 | <source>moveSelectionToFront() |
1616 | |||
1617 | Moves current selection to front. |
||
1618 | </source> |
||
1619 | <translation type="unfinished"></translation> |
||
1620 | </message> |
||
1621 | <message> |
||
14489 | cbradney | 1622 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="335"/> |
12918 | cbradney | 1623 | <source>moveSelectionToFront() |
1624 | |||
1625 | Moves current selection to back. |
||
1626 | </source> |
||
1627 | <translation type="unfinished"></translation> |
||
1628 | </message> |
||
1629 | <message> |
||
14489 | cbradney | 1630 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="17"/> |
12918 | cbradney | 1631 | <source>createRect(x, y, width, height, ["name"]) -> string |
1632 | |||
1633 | Creates a new rectangle on the current page and returns its name. The |
||
1634 | coordinates are given in the current measurement units of the document |
||
1635 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1636 | because you need this name to reference that object in future. If "name" |
||
1637 | is not given Scribus will create one for you. |
||
1638 | |||
1639 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1640 | </source> |
||
1641 | <translation type="unfinished">createRect(x,y,amplada, alçada, ["name"]) -> string |
||
1642 | |||
1643 | Crea un nou rectangle en la pàgina actual i retorna el seu nom. Les |
||
1644 | coordenades donades estaran en les unitats per defecte del document |
||
1645 | (mireu unitats). "nom" ha de ser un identificador únic per l'objecte |
||
1646 | ja que necessites aquest nom per fer referència a l'objecte en el futur. Si no |
||
1647 | es dóna "nom" Scribus en crearà un per nosaltres. |
||
1648 | |||
1649 | Es generar un NameExistsError si passem un nom que ja existeix. |
||
1650 | </translation> |
||
1651 | </message> |
||
1652 | <message> |
||
14489 | cbradney | 1653 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="34"/> |
12918 | cbradney | 1654 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
1655 | |||
1656 | Creates a new ellipse on the current page and returns its name. |
||
1657 | The coordinates are given in the current measurement units of the document |
||
1658 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1659 | because you need this name for further referencing of that object. If "name" |
||
1660 | is not given Scribus will create one for you. |
||
1661 | |||
1662 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1663 | </source> |
||
1664 | <translation type="unfinished">createEllipse(x, y, amplada, alçada, ["nom"]) -> string |
||
1665 | |||
1666 | Crea una nova elipse en la pàgina actual i en retorna el nom. |
||
1667 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1668 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1669 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1670 | Scribus en crearà un per nosaltres. |
||
1671 | |||
1672 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1673 | </translation> |
||
1674 | </message> |
||
1675 | <message> |
||
14489 | cbradney | 1676 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="51"/> |
12918 | cbradney | 1677 | <source>createImage(x, y, width, height, ["name"]) -> string |
1678 | |||
1679 | Creates a new picture frame on the current page and returns its name. The |
||
1680 | coordinates are given in the current measurement units of the document. |
||
1681 | "name" should be a unique identifier for the object because you need this |
||
1682 | name for further access to that object. If "name" is not given Scribus will |
||
1683 | create one for you. |
||
1684 | |||
1685 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1686 | </source> |
||
1687 | <translation type="unfinished">createImage(x, y, amplada, alçada, ["nom"]) -> string |
||
1688 | |||
1689 | Crea un nou marc d'imatge en la pàgina actual i en retorna el nom. |
||
1690 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1691 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1692 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1693 | Scribus en crearà un per nosaltres. |
||
1694 | |||
1695 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1696 | </translation> |
||
1697 | </message> |
||
1698 | <message> |
||
14489 | cbradney | 1699 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="66"/> |
12918 | cbradney | 1700 | <source>createText(x, y, width, height, ["name"]) -> string |
1701 | |||
1702 | Creates a new text frame on the actual page and returns its name. |
||
1703 | The coordinates are given in the actual measurement unit of the document (see |
||
1704 | UNIT constants). "name" should be a unique identifier for the object because |
||
1705 | you need this name for further referencing of that object. If "name" is not |
||
1706 | given Scribus will create one for you. |
||
1707 | |||
1708 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1709 | </source> |
||
1710 | <translation type="unfinished">createText(x, y, amplada, alçada, ["nom"]) -> string |
||
1711 | |||
1712 | Crea un nou quadre de text en la pàgina actual i en retorna el nom. |
||
1713 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1714 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1715 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1716 | Scribus en crearà un per nosaltres. |
||
1717 | |||
1718 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1719 | </translation> |
||
1720 | </message> |
||
1721 | <message> |
||
14489 | cbradney | 1722 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="81"/> |
12918 | cbradney | 1723 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
1724 | |||
1725 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1726 | its name. The coordinates are given in the current measurement unit of the |
||
1727 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1728 | object because you need this name for further access to that object. If |
||
1729 | "name" is not given Scribus will create one for you. |
||
1730 | |||
1731 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1732 | </source> |
||
1733 | <translation type="unfinished">createLine(x1, y1, x2, y2, ["nom"]) -> string |
||
1734 | |||
1735 | Crea una nova línia des del punt (x1,y1) al punt (x2,y2) i en retorna el |
||
1736 | nom. Les coordenades estan especificades amb les unitats de mesura del |
||
1737 | document (mireu constants UNIT). "nom" ha de ser un identificador únic |
||
1738 | per l'objecte ja que necessitem aquest nom per referències futures. Si |
||
1739 | "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1740 | |||
1741 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1742 | </translation> |
||
1743 | </message> |
||
1744 | <message> |
||
14489 | cbradney | 1745 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="96"/> |
12918 | cbradney | 1746 | <source>createPolyLine(list, ["name"]) -> string |
1747 | |||
1748 | Creates a new polyline and returns its name. The points for the polyline are |
||
1749 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1750 | The coordinates are given in the current measurement units of the document (see |
||
1751 | UNIT constants). "name" should be a unique identifier for the object because |
||
1752 | you need this name for further access to that object. If "name" is not given |
||
1753 | Scribus will create one for you. |
||
1754 | |||
1755 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1756 | May raise ValueError if an insufficient number of points is passed or if |
||
1757 | the number of values passed don't group into points without leftovers. |
||
1758 | </source> |
||
1759 | <translation type="unfinished">createPolyLine(llista, ["nom"]) -> string |
||
1760 | |||
1761 | Crea un nou conjunt de línies i en retorna el nom. Els punts de cada línia estan |
||
1762 | guardats en la llista "llista" en l'ordre [x1, y1, x2, y2, .., xn, yn]. |
||
1763 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1764 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1765 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1766 | Scribus en crearà un per nosaltres. |
||
1767 | |||
1768 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1769 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1770 | número de valors passat no agrupa bé els punts. |
||
1771 | </translation> |
||
1772 | </message> |
||
1773 | <message> |
||
14489 | cbradney | 1774 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="114"/> |
12918 | cbradney | 1775 | <source>createPolygon(list, ["name"]) -> string |
1776 | |||
1777 | Creates a new polygon and returns its name. The points for the polygon are |
||
1778 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1779 | At least three points are required. There is no need to repeat the first point |
||
1780 | to close the polygon. The polygon is automatically closed by connecting the |
||
1781 | first and the last point. The coordinates are given in the current measurement |
||
1782 | units of the document (see UNIT constants). "name" should be a unique |
||
1783 | identifier for the object because you need this name for further access to that |
||
1784 | object. If "name" is not given Scribus will create one for you. |
||
1785 | |||
1786 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1787 | May raise ValueError if an insufficient number of points is passed or if |
||
1788 | the number of values passed don't group into points without leftovers. |
||
1789 | </source> |
||
1790 | <translation type="unfinished">createPolygon(llista, ["nom"]) -> string |
||
1791 | |||
1792 | Crea un nou polígon i en retorna el nom. Els punts pel polígon estan |
||
1793 | guardats en la llista "llista" en el següent ordre: [x1, y1, x2, y2, ...xn, yn]. |
||
1794 | Almenys calen tres punts. No cal repetir el primer punt per |
||
1795 | tancar el polígon. El polígon es tancarà automàticament connectant el |
||
1796 | primer punt i el darrer. Les coordenades estan especificades amb les unitats |
||
1797 | de mesura del document (mireu constants UNIT). "nom" ha de ser un identificador |
||
1798 | únic per l'objecte ja que necessitem aquest nom per referències futures. |
||
1799 | Si "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1800 | |||
1801 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1802 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1803 | número de valors passat no agrupa bé els punts. |
||
1804 | </translation> |
||
1805 | </message> |
||
1806 | <message> |
||
14489 | cbradney | 1807 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="134"/> |
12918 | cbradney | 1808 | <source>createBezierLine(list, ["name"]) -> string |
1809 | |||
1810 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1811 | curve are stored in the list "list" in the following order: |
||
1812 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1813 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1814 | and ky meaning the control point for the curve. The coordinates are given in |
||
1815 | the current measurement units of the document (see UNIT constants). "name" |
||
1816 | should be a unique identifier for the object because you need this name for |
||
1817 | further access to that object. If "name" is not given Scribus will create one |
||
1818 | for you. |
||
1819 | |||
1820 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1821 | May raise ValueError if an insufficient number of points is passed or if |
||
1822 | the number of values passed don't group into points without leftovers. |
||
1823 | </source> |
||
1824 | <translation type="unfinished">createBezierLine(llista, ["nom"]) -> string |
||
1825 | |||
1826 | Crea una corba bezier i en retorna el nom. Els punts per la corba bezier es |
||
1827 | guarden en la llista "llista" en el següent ordre: |
||
1828 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2, ...xn, yn, kxn, kyn]. |
||
1829 | En els punts x i y són els valors de x i de y del punt, mentre que kx |
||
1830 | i ky són els punts de control de la corba. Les coordenades es dónen en |
||
1831 | les unitats de mesura del document (mireu constants UNIT). "nom" |
||
1832 | ha de ser un identificador únic per l'objecte ja que necessitem aquest nom |
||
1833 | per referències futures. Si "nom" no s'especifica Scribus en crearà un per |
||
1834 | nosaltres. |
||
1835 | |||
1836 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1837 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1838 | número de valors passat no agrupa bé els punts. |
||
1839 | </translation> |
||
1840 | </message> |
||
1841 | <message> |
||
14489 | cbradney | 1842 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="155"/> |
12918 | cbradney | 1843 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
1844 | |||
1845 | Creates a new pathText by merging the two objects "textbox" and |
||
1846 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1847 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1848 | unique identifier for the object because you need this name for further access |
||
1849 | to that object. If "name" is not given Scribus will create one for you. |
||
1850 | |||
1851 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1852 | May raise NotFoundError if one or both of the named base object don't exist. |
||
1853 | </source> |
||
1854 | <translation type="unfinished">createPathText(x, y, "textbox", "beziercurve", ["nom"]) -> string |
||
1855 | |||
1856 | Crea una nou camí de text barrejant els dos objectes "textbox" i |
||
1857 | "beziercurve" i en retorna el nom. Les coordenades estan especificades |
||
1858 | amb les unitats de mesura del document (mireu constants UNIT). "nom" ha de |
||
1859 | ser un identificador únic per l'objecte ja que necessitem aquest nom per referències |
||
1860 | futures. Si "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1861 | |||
1862 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1863 | Pot generar un NotFoundError si un dels dos objectes no existeix. |
||
1864 | </translation> |
||
1865 | </message> |
||
1866 | <message> |
||
14489 | cbradney | 1867 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="173"/> |
12918 | cbradney | 1868 | <source>deleteObject(["name"]) |
1869 | |||
1870 | Deletes the item with the name "name". If "name" is not given the currently |
||
1871 | selected item is deleted. |
||
1872 | </source> |
||
1873 | <translation type="unfinished">deleteObject(["nom"]) |
||
1874 | |||
1875 | Esborra l'ítem amb el nom "nom". Si no especifiquem "nom" l'ítem |
||
1876 | seleccionat és el que s'esborra. |
||
1877 | </translation> |
||
1878 | </message> |
||
1879 | <message> |
||
14489 | cbradney | 1880 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="184"/> |
12918 | cbradney | 1881 | <source>textFlowMode("name" [, state]) |
1882 | |||
1883 | Enables/disables "Text Flows Around Frame" feature for object "name". |
||
1884 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
||
1885 | Setting "state" to 0 will disable text flow. |
||
1886 | Setting "state" to 1 will make text flow around object frame. |
||
1887 | Setting "state" to 2 will make text flow around bounding box. |
||
1888 | Setting "state" to 3 will make text flow around contour line. |
||
1889 | If "state" is not passed, text flow is toggled. |
||
1890 | </source> |
||
1891 | <translation type="unfinished"></translation> |
||
1892 | </message> |
||
1893 | <message> |
||
14489 | cbradney | 1894 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="206"/> |
12918 | cbradney | 1895 | <source>objectExists(["name"]) -> bool |
1896 | |||
1897 | Test if an object with specified name really exists in the document. |
||
1898 | The optional parameter is the object name. When no object name is given, |
||
1899 | returns True if there is something selected. |
||
1900 | </source> |
||
1901 | <translation type="unfinished">objectExists(["nom"]) -> bool |
||
1902 | |||
1903 | Prova si un objecte amb el nom especificat existeix en el document. |
||
1904 | El paràmetre opcional és el nom de l'objecte. Quan no especifiquem cap |
||
1905 | nom retorna cert si hi ha res seleccionat.</translation> |
||
1906 | </message> |
||
1907 | <message> |
||
14489 | cbradney | 1908 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="223"/> |
12918 | cbradney | 1909 | <source>setStyle("style" [, "name"]) |
1910 | |||
1911 | Apply the named "style" to the object named "name". If is no object name |
||
1912 | given, it's applied on the selected object. |
||
1913 | </source> |
||
1914 | <translation type="unfinished">setStyle("estil" [, "nom"]) |
||
1915 | |||
1916 | Aplica l'estil especificat a "estil" a l'objecte "nom". Si no especifiquem el nom |
||
1917 | s'aplica a l'ítem seleccionat.</translation> |
||
1918 | </message> |
||
1919 | <message> |
||
14489 | cbradney | 1920 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="237"/> |
12918 | cbradney | 1921 | <source>getAllStyles() -> list |
1922 | |||
1923 | Return a list of the names of all paragraph styles in the current document. |
||
1924 | </source> |
||
1925 | <translation type="unfinished">getAllStyles() -> llista |
||
1926 | |||
1927 | Retorna una llista amb els noms dels estils de paràgraf del document actual. |
||
1928 | </translation> |
||
1929 | </message> |
||
1930 | <message> |
||
14489 | cbradney | 1931 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="249"/> |
12918 | cbradney | 1932 | <source>duplicateObject(["name"]) -> string |
1933 | |||
1934 | creates a Duplicate of the selected Object (or Selection Group). |
||
1935 | </source> |
||
1936 | <translation type="unfinished"></translation> |
||
1937 | </message> |
||
1938 | <message> |
||
14489 | cbradney | 1939 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="17"/> |
12918 | cbradney | 1940 | <source>newPage(where [,"masterpage"]) |
1941 | |||
1942 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
1943 | document, otherwise the new page is inserted before "where". Page numbers are |
||
1944 | counted from 1 upwards, no matter what the displayed first page number of your |
||
1945 | document is. The optional parameter "masterpage" specifies the name of the |
||
1946 | master page for the new page. |
||
1947 | |||
1948 | May raise IndexError if the page number is out of range |
||
1949 | </source> |
||
1950 | <translation type="unfinished">newPage(on [,"paginamestra"]) |
||
1951 | |||
1952 | Crea una nova pàgina. Si "on" és -1 la nova pàgina s'afegeix al final del document, |
||
1953 | altrament la nova pàgina s'afegeix allà on diu 'on'. Els números de pàgina es compten |
||
1954 | des de 1 endavan, independentment del número que s'hagi posat a cada pàgina en la |
||
1955 | creació del document. El paràmetre opcional "paginamestra" especifica el nom de la |
||
1956 | pàgina mestra a aplicar a la nova pàgina. |
||
1957 | |||
1958 | Pot generar un error IndexError si la pàgina està fora de rang</translation> |
||
1959 | </message> |
||
1960 | <message> |
||
14489 | cbradney | 1961 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="32"/> |
12918 | cbradney | 1962 | <source>currentPage() -> integer |
1963 | |||
1964 | Returns the number of the current working page. Page numbers are counted from 1 |
||
1965 | upwards, no matter what the displayed first page number of your document is. |
||
1966 | </source> |
||
1967 | <translation type="unfinished">currentPage() -> integer |
||
1968 | |||
1969 | Retorna el número de pàgina actual. Els números de pàgina comencen per 1 |
||
1970 | i van endavant, no importa de quina forma fem numerar les pàgines. |
||
1971 | </translation> |
||
1972 | </message> |
||
1973 | <message> |
||
14489 | cbradney | 1974 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="42"/> |
12918 | cbradney | 1975 | <source>redrawAll() |
1976 | |||
1977 | Redraws all pages. |
||
1978 | </source> |
||
1979 | <translation type="unfinished">redrawAll() |
||
1980 | |||
1981 | Repinta totes les pàgines. |
||
1982 | </translation> |
||
1983 | </message> |
||
1984 | <message> |
||
14489 | cbradney | 1985 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="51"/> |
12918 | cbradney | 1986 | <source>getPageType() -> integer |
1987 | |||
1988 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
||
1989 | </source> |
||
1990 | <translation type="unfinished"></translation> |
||
1991 | </message> |
||
1992 | <message> |
||
14489 | cbradney | 1993 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="60"/> |
12918 | cbradney | 1994 | <source>savePageAsEPS("name") |
1995 | |||
1996 | Saves the current page as an EPS to the file "name". |
||
1997 | |||
1998 | May raise ScribusError if the save failed. |
||
1999 | </source> |
||
2000 | <translation type="unfinished">savePageAsEPS("nom") |
||
2001 | |||
2002 | Desa la pàgina actual com un fitxer EPS amb el nom "nom". |
||
2003 | |||
2004 | Pot generar un ScribusError si el desat falla.</translation> |
||
2005 | </message> |
||
2006 | <message> |
||
14489 | cbradney | 2007 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="71"/> |
12918 | cbradney | 2008 | <source>deletePage(nr) |
2009 | |||
2010 | Deletes the given page. Does nothing if the document contains only one page. |
||
2011 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
2012 | page number is. |
||
2013 | |||
2014 | May raise IndexError if the page number is out of range |
||
2015 | </source> |
||
2016 | <translation type="unfinished">deletePage(nr) |
||
2017 | |||
2018 | Esborra la pàgina especificada. No fa res si el document només conté una pàgina. |
||
2019 | Els números de pàgina estan comptats des de 1, no importa la forma en que |
||
2020 | mostrem els números de pàgina. |
||
2021 | |||
2022 | Pot generar un IndexError si el número de pàgina està fora de rang |
||
2023 | </translation> |
||
2024 | </message> |
||
2025 | <message> |
||
14489 | cbradney | 2026 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="84"/> |
12918 | cbradney | 2027 | <source>gotoPage(nr) |
2028 | |||
2029 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
||
2030 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
||
2031 | just sets the page that script commands will operates on. |
||
2032 | |||
2033 | May raise IndexError if the page number is out of range. |
||
2034 | </source> |
||
2035 | <translation type="unfinished"></translation> |
||
2036 | </message> |
||
2037 | <message> |
||
14489 | cbradney | 2038 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="97"/> |
12918 | cbradney | 2039 | <source>pageCount() -> integer |
2040 | |||
2041 | Returns the number of pages in the document. |
||
2042 | </source> |
||
2043 | <translation type="unfinished">pageCount() -> integer |
||
2044 | |||
2045 | Retorna el número de pàgines del document. |
||
2046 | </translation> |
||
2047 | </message> |
||
2048 | <message> |
||
14489 | cbradney | 2049 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="106"/> |
12918 | cbradney | 2050 | <source>getHGuides() -> list |
2051 | |||
2052 | Returns a list containing positions of the horizontal guides. Values are in the |
||
2053 | document's current units - see UNIT_<type> constants. |
||
2054 | </source> |
||
2055 | <translation type="unfinished">getHGuides() -> llista |
||
2056 | |||
2057 | Retorna una llista que conté posicions de les guies horitzontals. Els valors estan |
||
2058 | en les unitats del document - mireu les constants UNIT_<tipus>. |
||
2059 | </translation> |
||
2060 | </message> |
||
2061 | <message> |
||
14489 | cbradney | 2062 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="116"/> |
12918 | cbradney | 2063 | <source>setHGuides(list) |
2064 | |||
2065 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
2066 | measured in the current document units - see UNIT_<type> constants. |
||
2067 | |||
2068 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
2069 | setHGuides([90,250]) # replace current guides entirely |
||
2070 | </source> |
||
2071 | <translation type="unfinished">setHGuides(llista) |
||
2072 | |||
2073 | Estableix les guies horitzontals. La entrada ha de ser una llista de posicions |
||
2074 | mesurades en les unitats del document - mireu les constants UNIT_<tipus>. |
||
2075 | |||
2076 | Exemple setHGuides(getHGuides() + [200.0, 210.0] # afegeix noves guies sense perdre |
||
2077 | setHGuides([90,250]) # canvia les guies actuals completament |
||
2078 | </translation> |
||
2079 | </message> |
||
2080 | <message> |
||
14489 | cbradney | 2081 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="129"/> |
12918 | cbradney | 2082 | <source>getVGuides() |
2083 | |||
2084 | See getHGuides. |
||
2085 | </source> |
||
2086 | <translation type="unfinished">getVGuides() |
||
2087 | |||
2088 | Mireu getHGuides. |
||
2089 | </translation> |
||
2090 | </message> |
||
2091 | <message> |
||
14489 | cbradney | 2092 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="138"/> |
12918 | cbradney | 2093 | <source>setVGuides() |
2094 | |||
2095 | See setHGuides. |
||
2096 | </source> |
||
2097 | <translation type="unfinished">setVGuides() |
||
2098 | |||
2099 | Mireu setHGuides. |
||
2100 | </translation> |
||
2101 | </message> |
||
2102 | <message> |
||
14489 | cbradney | 2103 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="147"/> |
12918 | cbradney | 2104 | <source>getPageSize() -> tuple |
2105 | |||
2106 | Returns a tuple with page dimensions measured in the document's current units. |
||
2107 | See UNIT_<type> constants and getPageMargins() |
||
2108 | </source> |
||
2109 | <translation type="unfinished">getPageSize() -> tupla |
||
2110 | |||
2111 | Retorna una tupla amb les mides de la pàgina mesurades amb les unitats del document. |
||
2112 | Mireu les constants UNIT_<tipus> i getPageMargins() |
||
2113 | </translation> |
||
2114 | </message> |
||
2115 | <message> |
||
14489 | cbradney | 2116 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="161"/> |
2117 | <source>getPageNSize() -> tuple |
||
2118 | |||
2119 | Returns a tuple with a particular page's size measured in the document's current units. |
||
2120 | See UNIT_<type> constants and getPageMargins() |
||
2121 | </source> |
||
2122 | <translation type="unfinished"></translation> |
||
2123 | </message> |
||
2124 | <message> |
||
2125 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="174"/> |
||
2126 | <source>getPageNMargins() -> tuple |
||
2127 | |||
2128 | Returns a tuple with a particular page's margins measured in the document's current units. |
||
2129 | See UNIT_<type> constants and getPageMargins() |
||
2130 | </source> |
||
2131 | <translation type="unfinished"></translation> |
||
2132 | </message> |
||
2133 | <message> |
||
2134 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="187"/> |
||
12918 | cbradney | 2135 | <source>getPageItems() -> list |
2136 | |||
2137 | Returns a list of tuples with items on the current page. The tuple is: |
||
2138 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
||
2139 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
2140 | the page... |
||
2141 | </source> |
||
2142 | <translation type="unfinished">getPageItems() -> llista |
||
2143 | |||
2144 | Retorna una llista de tuples amb els ítems de la pàgina actual. La tupla és: |
||
2145 | (nom, Tipusd'Objecte, ordre) Ex. [ ('Text1', 4, 0), ('Image1', 2, 1)] |
||
2146 | significa que l'objecte 'Text1' és un marc de text (tipus 4) i és el primer de |
||
2147 | la pàgina ... |
||
2148 | </translation> |
||
2149 | </message> |
||
2150 | <message> |
||
14489 | cbradney | 2151 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="203"/> |
12918 | cbradney | 2152 | <source>getPageMargins() |
2153 | |||
2154 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
2155 | units. See UNIT_<type> constants and getPageSize(). |
||
2156 | </source> |
||
2157 | <translation type="unfinished">getPageMargins() |
||
2158 | |||
2159 | Retorna els marges de pàgina com una tupla (dalt, esquerra, dreta, baix) en |
||
2160 | les unitats. Mireu les constants UNIT_<tipus> i getPageSize(). |
||
2161 | </translation> |
||
2162 | </message> |
||
2163 | <message> |
||
14489 | cbradney | 2164 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="216"/> |
12918 | cbradney | 2165 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
2166 | |||
2167 | Imports a set of pages (given as a tuple) from an existing document (the file name must be given). This functions maps the "Page->Import" dropdown menu function. |
||
2168 | fromDoc: string; the filename of the document to import pages from |
||
2169 | pageList: tuple with page numbers of pages to import |
||
2170 | create: number; 0 to replace existing pages, 1 (default) to insert new pages |
||
2171 | importWhere: number; the page number (of the current document) at which import the pages |
||
2172 | importWherePage: number; used if create==1; 0 to create pages before selected page; 1 to create pages after selected page; 2 (default) to create pages at the end of the document |
||
2173 | </source> |
||
2174 | <translation type="unfinished"></translation> |
||
2175 | </message> |
||
2176 | <message> |
||
14489 | cbradney | 2177 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="17"/> |
12918 | cbradney | 2178 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
2179 | |||
2180 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
2181 | the same as for setFillColor() and setFillShade(). See the constants for |
||
2182 | available types (FILL_<type>). |
||
2183 | </source> |
||
2184 | <translation type="unfinished">setGradientFill(tipus, "color1", intensitat1, "color2", intensitat2, ["nom"]) |
||
2185 | |||
2186 | Estableix el gradient d'emplenat de l'objecte "nom" a tipus. Les descripcions de colors |
||
2187 | són les mateixes que per setFillColor() i setFillShade(). Mireu les constants pels |
||
2188 | tipus disponibles (FILL_<tipus>). |
||
2189 | </translation> |
||
2190 | </message> |
||
2191 | <message> |
||
14489 | cbradney | 2192 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="28"/> |
2193 | <source>setGradientStop("color", shade, opacity, ramppoint, ["name"]) |
||
2194 | |||
2195 | Set or add a gradient stop to the gradient fill of the object "name" at position ramppoint. |
||
2196 | Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() |
||
2197 | must have been called previously for the gradient fill to be visible. |
||
2198 | </source> |
||
2199 | <translation type="unfinished"></translation> |
||
2200 | </message> |
||
2201 | <message> |
||
2202 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="39"/> |
||
12918 | cbradney | 2203 | <source>setFillColor("color", ["name"]) |
2204 | |||
2205 | Sets the fill color of the object "name" to the color "color". "color" |
||
2206 | is the name of one of the defined colors. If "name" is not given the |
||
2207 | currently selected item is used. |
||
2208 | </source> |
||
2209 | <translation type="unfinished">setFillColor("color", ["nom"]) |
||
2210 | |||
2211 | Estableix el color d'ompliment de l'objecte "nom" al color "color". |
||
2212 | "color" és el nom d'un dels colors definits. Si no especifiquem "nom" |
||
2213 | es fa servir l'ítem seleccionat. |
||
2214 | </translation> |
||
2215 | </message> |
||
2216 | <message> |
||
14489 | cbradney | 2217 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="50"/> |
12918 | cbradney | 2218 | <source>setFillTransparency(transparency, ["name"]) |
2219 | |||
2220 | Sets the fill transparency of the object "name" to transparency |
||
2221 | If "name" is not given the currently selected item is used. |
||
2222 | </source> |
||
2223 | <translation type="unfinished"></translation> |
||
2224 | </message> |
||
2225 | <message> |
||
14489 | cbradney | 2226 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="60"/> |
12918 | cbradney | 2227 | <source>setFillBlendmode(blendmode, ["name"]) |
2228 | |||
2229 | Sets the fill blendmode of the object "name" to blendmode |
||
2230 | If "name" is not given the currently selected item is used. |
||
2231 | </source> |
||
2232 | <translation type="unfinished"></translation> |
||
2233 | </message> |
||
2234 | <message> |
||
14489 | cbradney | 2235 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="70"/> |
12918 | cbradney | 2236 | <source>setLineColor("color", ["name"]) |
2237 | |||
2238 | Sets the line color of the object "name" to the color "color". If "name" |
||
2239 | is not given the currently selected item is used. |
||
2240 | </source> |
||
2241 | <translation type="unfinished">setLineColor("color", ["nom"]) |
||
2242 | |||
2243 | Estableix el color de la línia de l'objecte "nom" al color "color". Si no |
||
2244 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2245 | </translation> |
||
2246 | </message> |
||
2247 | <message> |
||
14489 | cbradney | 2248 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="80"/> |
12918 | cbradney | 2249 | <source>setLineTransparency(transparency, ["name"]) |
2250 | |||
2251 | Sets the line transparency of the object "name" to transparency |
||
2252 | If "name" is not given the currently selected item is used. |
||
2253 | </source> |
||
2254 | <translation type="unfinished"></translation> |
||
2255 | </message> |
||
2256 | <message> |
||
14489 | cbradney | 2257 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="90"/> |
12918 | cbradney | 2258 | <source>setLineBlendmode(blendmode, ["name"]) |
2259 | |||
2260 | Sets the line blendmode of the object "name" to blendmode |
||
2261 | If "name" is not given the currently selected item is used. |
||
2262 | </source> |
||
2263 | <translation type="unfinished"></translation> |
||
2264 | </message> |
||
2265 | <message> |
||
14489 | cbradney | 2266 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="100"/> |
12918 | cbradney | 2267 | <source>setLineWidth(width, ["name"]) |
2268 | |||
2269 | Sets line width of the object "name" to "width". "width" must be in the |
||
2270 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
2271 | given the currently selected item is used. |
||
2272 | |||
2273 | May raise ValueError if the line width is out of bounds. |
||
2274 | </source> |
||
2275 | <translation type="unfinished">setLineWidth(amplada, ["nom"]) |
||
2276 | |||
2277 | Estableix l'amplada de línia de l'objecte "nom" a "amplada". "amplada" ha d'estar |
||
2278 | dins d'un rang entre 0.0 a 12.0, i està mesurat en punts. Si no especifiquem "nom" |
||
2279 | es fa servir l'ítem seleccionat. |
||
2280 | |||
2281 | Pot generar un ValueError si l'ample de línia és erròni. |
||
2282 | </translation> |
||
2283 | </message> |
||
2284 | <message> |
||
14489 | cbradney | 2285 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="113"/> |
12918 | cbradney | 2286 | <source>setLineShade(shade, ["name"]) |
2287 | |||
2288 | Sets the shading of the line color of the object "name" to "shade". |
||
2289 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2290 | (full color intensity). If "name" is not given the currently selected item |
||
2291 | is used. |
||
2292 | |||
2293 | May raise ValueError if the line shade is out of bounds. |
||
2294 | </source> |
||
2295 | <translation type="unfinished">setLineShade(intensitat, ["nom"]) |
||
2296 | |||
2297 | Estableix la intensitat del color de la línea de contorn de l'objecte "nom" |
||
2298 | a "intensitat"."intensitat" ha de ser un valor enter entre 0 (més clar) i 100 |
||
2299 | (intensitat total). Si no especifiquem "nom" es fa servir l'ítem |
||
2300 | seleccionat. |
||
2301 | |||
2302 | Pot generar un ValueError si "intensitat" està fora de marges. |
||
2303 | </translation> |
||
2304 | </message> |
||
2305 | <message> |
||
14489 | cbradney | 2306 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="127"/> |
12918 | cbradney | 2307 | <source>setLineJoin(join, ["name"]) |
2308 | |||
2309 | Sets the line join style of the object "name" to the style "join". |
||
2310 | If "name" is not given the currently selected item is used. There are |
||
2311 | predefined constants for join - JOIN_<type>. |
||
2312 | </source> |
||
2313 | <translation type="unfinished">setLineJoin(Unio, ["nom"]) |
||
2314 | |||
2315 | Estableix l'estil d'unió de l'objecte "nom" a l'estil "join". |
||
2316 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
2317 | constants predefinides d'unions - JOIN_<tipus>. |
||
2318 | </translation> |
||
2319 | </message> |
||
2320 | <message> |
||
14489 | cbradney | 2321 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="138"/> |
12918 | cbradney | 2322 | <source>setLineEnd(endtype, ["name"]) |
2323 | |||
2324 | Sets the line cap style of the object "name" to the style "cap". |
||
2325 | If "name" is not given the currently selected item is used. There are |
||
2326 | predefined constants for "cap" - CAP_<type>. |
||
2327 | </source> |
||
2328 | <translation type="unfinished">setLsetLineEnd(Final, ["nom"]) |
||
2329 | |||
2330 | Estableix l'estil de tancament de l'objecte "nom" a l'estil "final". |
||
2331 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
2332 | constants predefinides de tancaments - CAP_<tipus>. |
||
2333 | </translation> |
||
2334 | </message> |
||
2335 | <message> |
||
14489 | cbradney | 2336 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="149"/> |
12918 | cbradney | 2337 | <source>setLineStyle(style, ["name"]) |
2338 | |||
2339 | Sets the line style of the object "name" to the style "style". If "name" |
||
2340 | is not given the currently selected item is used. There are predefined |
||
2341 | constants for "style" - LINE_<style>. |
||
2342 | </source> |
||
2343 | <translation type="unfinished">setLsetLineStyle(estil, ["nom"]) |
||
2344 | |||
2345 | Estableix l'estil de línia de l'objecte "nom" a l'estil "estil". |
||
2346 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
2347 | constants predefinides d'estils de línia - LINE_<tipus>. |
||
2348 | </translation> |
||
2349 | </message> |
||
2350 | <message> |
||
14489 | cbradney | 2351 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="160"/> |
12918 | cbradney | 2352 | <source>setFillShade(shade, ["name"]) |
2353 | |||
2354 | Sets the shading of the fill color of the object "name" to "shade". |
||
2355 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2356 | (full Color intensity). If "name" is not given the currently selected |
||
2357 | Item is used. |
||
2358 | |||
2359 | May raise ValueError if the fill shade is out of bounds. |
||
2360 | </source> |
||
2361 | <translation type="unfinished">setLineShade(intensitat, ["nom"]) |
||
2362 | |||
2363 | Estableix la intensitat del color d'ompliment de l'objecte "nom" a "intensitat" |
||
2364 | "intensitat" ha de ser un valor enter entre 0 (més clar) i 100 |
||
2365 | (intensitat total). Si no especifiquem "nom" es fa servir l'ítem |
||
2366 | seleccionat. |
||
2367 | |||
2368 | Pot generar un ValueError si la intensitat està fora de marges. |
||
2369 | </translation> |
||
2370 | </message> |
||
2371 | <message> |
||
14489 | cbradney | 2372 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="174"/> |
12918 | cbradney | 2373 | <source>setCornerRadius(radius, ["name"]) |
2374 | |||
2375 | Sets the corner radius of the object "name". The radius is expressed |
||
2376 | in points. If "name" is not given the currently selected item is used. |
||
2377 | |||
2378 | May raise ValueError if the corner radius is negative. |
||
2379 | </source> |
||
2380 | <translation type="unfinished">setCornerRadius(radi, ["nom"]) |
||
2381 | |||
2382 | Estableix el radi d'arrodoniment de l'objecte "nom". El radi està expressat |
||
2383 | en punts. Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2384 | |||
2385 | Pot generar un ValueError si el radi és negatiu. |
||
2386 | </translation> |
||
2387 | </message> |
||
2388 | <message> |
||
14489 | cbradney | 2389 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="186"/> |
12918 | cbradney | 2390 | <source>setMultiLine("namedStyle", ["name"]) |
2391 | |||
2392 | Sets the line style of the object "name" to the named style "namedStyle". |
||
2393 | If "name" is not given the currently selected item is used. |
||
2394 | |||
2395 | May raise NotFoundError if the line style doesn't exist. |
||
2396 | </source> |
||
2397 | <translation type="unfinished">setMultiLine("nomEstil", ["nom"]) |
||
2398 | |||
2399 | Estableix l'estil de línia de l'objecte "nom" a "nomEstil". |
||
2400 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2401 | |||
2402 | Pot generar un NotFoundError si l'estil de línia no existeix. |
||
2403 | </translation> |
||
2404 | </message> |
||
2405 | <message> |
||
14489 | cbradney | 2406 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="22"/> |
12918 | cbradney | 2407 | <source>createParagraphStyle(...) |
2408 | |||
2409 | Creates a paragraph style. This function takes the following keyword parameters: |
||
2410 | |||
2411 | "name" [required] -> specifies the name of the paragraphstyle to create |
||
2412 | |||
2413 | linespacingmode [optional] -> specifies the linespacing mode; possible modes are: |
||
2414 | |||
2415 | fixed linespacing: 0 |
||
2416 | |||
2417 | automatic linespacing: 1 |
||
2418 | |||
2419 | baseline grid linespacing: 2 |
||
2420 | |||
2421 | linespacing [optional] -> specifies the linespacing if using fixed linespacing |
||
2422 | |||
2423 | alignment [optional] -> specifies the alignment of the paragraph |
||
2424 | |||
2425 | -> left: 0 |
||
2426 | |||
2427 | -> center: 1 |
||
2428 | |||
2429 | -> right: 2 |
||
2430 | |||
2431 | -> justify: 3 |
||
2432 | |||
2433 | -> extend: 4 |
||
2434 | |||
2435 | leftmargin [optional], rightmargin [optional] -> specify the margin |
||
2436 | |||
2437 | gapbefore [optional], gapafter [optional] -> specify the gaps to the heading and following paragraphs |
||
2438 | |||
2439 | firstindent [optional] -> the indent of the first line |
||
2440 | |||
2441 | hasdropcap [optional] -> specifies if there are caps (1 = yes, 0 = no) |
||
2442 | |||
2443 | dropcaplines [optional] -> height (in lines) of the caps if used |
||
2444 | |||
2445 | dropcapoffset [optional] -> offset of the caps if used |
||
2446 | |||
2447 | "charstyle" [optional] -> char style to use |
||
2448 | |||
2449 | </source> |
||
2450 | <translation type="unfinished"></translation> |
||
2451 | </message> |
||
2452 | <message> |
||
14489 | cbradney | 2453 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="52"/> |
12918 | cbradney | 2454 | <source>createCharStyle(...) |
2455 | |||
2456 | Creates a character style. This function takes the following keyword parameters: |
||
2457 | |||
2458 | "name" [required] -> name of the char style to create |
||
2459 | |||
2460 | "font" [optional] -> name of the font to use |
||
2461 | |||
2462 | fontsize [optional] -> font size to set (double) |
||
2463 | |||
2464 | "features" [optional] -> nearer typographic details can be defined by a string that might contain the following phrases comma-seperated (without spaces!): |
||
2465 | |||
2466 | -> inherit |
||
2467 | |||
2468 | -> bold |
||
2469 | |||
2470 | -> italic |
||
2471 | |||
2472 | -> underline |
||
2473 | |||
2474 | -> underlinewords |
||
2475 | |||
2476 | -> strike |
||
2477 | |||
2478 | -> superscript |
||
2479 | |||
2480 | -> subscript |
||
2481 | |||
2482 | -> outline |
||
2483 | |||
2484 | -> shadowed |
||
2485 | |||
2486 | -> allcaps |
||
2487 | |||
2488 | -> smallcaps |
||
2489 | |||
2490 | "fillcolor" [optional], "fillshade" [optional] -> specify fill options |
||
2491 | |||
2492 | "strokecolor" [optional], "strokeshade" [optional] -> specify stroke options |
||
2493 | |||
2494 | baselineoffset [optional] -> offset of the baseline |
||
2495 | |||
2496 | shadowxoffset [optional], shadowyoffset [optional] -> offset of the shadow if used |
||
2497 | |||
2498 | outlinewidth [optional] -> width of the outline if used |
||
2499 | |||
2500 | underlineoffset [optional], underlinewidth [optional] -> underline options if used |
||
2501 | |||
2502 | strikethruoffset [optional], strikethruwidth [optional] -> strikethru options if used |
||
2503 | |||
2504 | scaleh [optional], scalev [optional] -> scale of the chars |
||
2505 | |||
2506 | tracking [optional] -> tracking of the text |
||
2507 | |||
2508 | "language" [optional] -> language code |
||
2509 | |||
2510 | </source> |
||
2511 | <translation type="unfinished"></translation> |
||
2512 | </message> |
||
2513 | <message> |
||
14489 | cbradney | 2514 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="17"/> |
1135 | cbradney | 2515 | <source>getFontSize(["name"]) -> float |
2516 | |||
2517 | Returns the font size in points for the text frame "name". If this text |
||
2518 | frame has some text selected the value assigned to the first character of |
||
2519 | the selection is returned. |
||
2520 | If "name" is not given the currently selected item is used. |
||
2521 | </source> |
||
12612 | cbradney | 2522 | <translation type="unfinished">getFontSize(["nom"]) -> float |
1135 | cbradney | 2523 | |
2524 | Retorna la mida del tipus de lletra en punts del quadre de text "nom". Si |
||
2525 | aquest quadre de text té algun text seleccionat es torna el primer caràcter |
||
2526 | de la selecció. |
||
2527 | Si no es passa "nom" es fa servir l'ítem actualment seleccionat. |
||
2528 | </translation> |
||
2529 | </message> |
||
2530 | <message> |
||
14489 | cbradney | 2531 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="29"/> |
12918 | cbradney | 2532 | <source>getFont(["name"]) -> string |
2533 | |||
2534 | Returns the font name for the text frame "name". If this text frame |
||
2535 | has some text selected the value assigned to the first character |
||
2536 | of the selection is returned. If "name" is not given the currently |
||
2537 | selected item is used. |
||
2538 | </source> |
||
2539 | <translation type="unfinished">getFont(["nom]) -> string |
||
2540 | |||
2541 | Retorna el nom de la font del quadre de text "nom". Si aquest quadre |
||
2542 | de text té algun text seleccionat es retorna el valor assignat al primer |
||
2543 | caràcter de la selecció. Si no especifiquem "nom" es fa servir l'ítem |
||
2544 | seleccionat. |
||
2545 | </translation> |
||
2546 | </message> |
||
2547 | <message> |
||
14489 | cbradney | 2548 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="41"/> |
12918 | cbradney | 2549 | <source>getTextLength(["name"]) -> integer |
2550 | |||
2551 | Returns the length of the text in the text frame "name". |
||
2552 | If "name" is not given the currently selected item is used. |
||
2553 | </source> |
||
2554 | <translation type="unfinished">getFillColor(["nom"]) -> string |
||
2555 | |||
2556 | Retorna el nom del color de l'objecte "nom". |
||
2557 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
2558 | getTextLength(["nom"]) -> integer |
||
2559 | |||
2560 | Retorna la llargada del text del quadre de text "nom". |
||
2561 | Si no es dóna cap "nom", es fa servir l'ítem sel.leccionat. |
||
2562 | </translation> |
||
2563 | </message> |
||
2564 | <message> |
||
14489 | cbradney | 2565 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="51"/> |
12918 | cbradney | 2566 | <source>getTextLines(["name"]) -> integer |
2567 | |||
2568 | Returns the number of lines of the text in the text frame "name". |
||
2569 | If "name" is not given the currently selected item is used. |
||
2570 | </source> |
||
2571 | <translation type="unfinished"></translation> |
||
2572 | </message> |
||
2573 | <message> |
||
14489 | cbradney | 2574 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="61"/> |
12918 | cbradney | 2575 | <source>getText(["name"]) -> string |
2576 | |||
2577 | Returns the text of the text frame "name". If this text frame has some text |
||
2578 | selected, the selected text is returned. All text in the frame, not just |
||
2579 | currently visible text, is returned. If "name" is not given the currently |
||
2580 | selected item is used. |
||
2581 | </source> |
||
2582 | <translation type="unfinished">getText(["nom"]) -> string |
||
2583 | |||
2584 | Retorna el text del quadre de text "nom". Si el quadre de text té algun |
||
2585 | text seleccionat, es torna el text seleccionat. Es torna tot el text, |
||
2586 | no només el text visible. Si no es dóna cap "nom", es fa servir |
||
2587 | l'ítem sel·leccionat. |
||
2588 | </translation> |
||
2589 | </message> |
||
2590 | <message> |
||
14489 | cbradney | 2591 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="73"/> |
12918 | cbradney | 2592 | <source>getAllText(["name"]) -> string |
2593 | |||
2594 | Returns the text of the text frame "name" and of all text frames which are |
||
2595 | linked with this frame. If this textframe has some text selected, the selected |
||
2596 | text is returned. If "name" is not given the currently selected item is |
||
2597 | used. |
||
2598 | </source> |
||
2599 | <translation type="unfinished">getAllText(["nom"]) -> string |
||
2600 | |||
2601 | Retorna el text del quadre de text "nom" i de tots els quadres de text que estan |
||
2602 | enllaçats amb aquest. Si el quadre de text té algun text seleccionat, es retorna |
||
2603 | el text seleccionat. Si no es dóna cap "nom", es fa servir l'ítem |
||
2604 | sel·leccionat. |
||
2605 | </translation> |
||
2606 | </message> |
||
2607 | <message> |
||
14489 | cbradney | 2608 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="85"/> |
12918 | cbradney | 2609 | <source>getLineSpacing(["name"]) -> float |
2610 | |||
2611 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2612 | points. If "name" is not given the currently selected item is used. |
||
2613 | </source> |
||
2614 | <translation type="unfinished">getLineSpacing(["nom"]) -> float |
||
2615 | |||
2616 | Retorna l'espaiat entre línies del quadre de text "nom" expressat en |
||
2617 | punts. Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
2618 | </translation> |
||
2619 | </message> |
||
2620 | <message> |
||
14489 | cbradney | 2621 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="95"/> |
12918 | cbradney | 2622 | <source>getTextDistances(["name"]) -> tuple |
2623 | |||
2624 | Returns the text distances of the text frame "name" expressed in points. The |
||
2625 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
||
2626 | is not given the currently selected item is used. |
||
2627 | </source> |
||
2628 | <translation type="unfinished"></translation> |
||
2629 | </message> |
||
2630 | <message> |
||
14489 | cbradney | 2631 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="106"/> |
12918 | cbradney | 2632 | <source>getColumnGap(["name"]) -> float |
2633 | |||
2634 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2635 | "name" is not given the currently selected item is used. |
||
2636 | </source> |
||
2637 | <translation type="unfinished">getColumnGap(["nom"]) -> float |
||
2638 | |||
2639 | Retorna l'espai entre columnes del quadre de text "nom" expressat en punts. Si |
||
2640 | no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
2641 | </translation> |
||
2642 | </message> |
||
2643 | <message> |
||
14489 | cbradney | 2644 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="116"/> |
12918 | cbradney | 2645 | <source>getColumns(["name"]) -> integer |
2646 | |||
2647 | Gets the number of columns of the text frame "name". If "name" is not |
||
2648 | given the currently selected item is used. |
||
2649 | </source> |
||
2650 | <translation type="unfinished">getColumns(["nom"]) -> integer |
||
2651 | |||
2652 | Dóna el número de columnes del quadre de text "nom". Si no es dóna |
||
2653 | cap "nom", es fa servir l'ítem sel·leccionat. |
||
2654 | </translation> |
||
2655 | </message> |
||
2656 | <message> |
||
14489 | cbradney | 2657 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="126"/> |
12918 | cbradney | 2658 | <source>setText("text", ["name"]) |
2659 | |||
2660 | Sets the text of the text frame "name" to the text of the string "text". |
||
2661 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
2662 | for more details. If "name" is not given the currently selected item is |
||
2663 | used. |
||
2664 | </source> |
||
2665 | <translation type="unfinished">setText("text",["nom"]) |
||
2666 | |||
2667 | Posa al quadre de text "name" el text contingut a la cadena "text". |
||
2668 | El text ha de ser codificat UTF8 - feu servir unicode(text, 'iso-8859-2'). Mireu el |
||
2669 | FAQ per més detalls. Si no es dóna cap "nom", es fa servir l'ítem |
||
2670 | sel·leccionat. |
||
2671 | </translation> |
||
2672 | </message> |
||
2673 | <message> |
||
14489 | cbradney | 2674 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="138"/> |
12918 | cbradney | 2675 | <source>insertText("text", pos, ["name"]) |
2676 | |||
2677 | Inserts the text "text" at the position "pos" into the text frame "name". |
||
2678 | Text must be UTF encoded (see setText() as reference) The first character has an |
||
2679 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
||
2680 | not given the currently selected Item is used. |
||
2681 | |||
2682 | May throw IndexError for an insertion out of bounds. |
||
2683 | </source> |
||
2684 | <translation type="unfinished"></translation> |
||
2685 | </message> |
||
2686 | <message> |
||
14489 | cbradney | 2687 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="152"/> |
12918 | cbradney | 2688 | <source>setFont("font", ["name"]) |
2689 | |||
2690 | Sets the font of the text frame "name" to "font". If there is some text |
||
2691 | selected only the selected text is changed. If "name" is not given the |
||
2692 | currently selected item is used. |
||
2693 | |||
2694 | May throw ValueError if the font cannot be found. |
||
2695 | </source> |
||
2696 | <translation type="unfinished">setFont("font",["nom]) |
||
2697 | |||
2698 | Passa el quadre de text "nom" al tipus de lletra "font". Si hi ha alguna |
||
2699 | part de text seleccionada només canvia aquesta. Si no especifiquem "nom" |
||
2700 | es fa servir l'ítem seleccionat. |
||
2701 | |||
2702 | Pot generar ValueError si la font no es pot trobar. |
||
2703 | </translation> |
||
2704 | </message> |
||
2705 | <message> |
||
14489 | cbradney | 2706 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="165"/> |
12918 | cbradney | 2707 | <source>setFontSize(size, ["name"]) |
2708 | |||
2709 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2710 | as a value in points. If there is some text selected only the selected text is |
||
2711 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2712 | currently selected item is used. |
||
2713 | |||
2714 | May throw ValueError for a font size that's out of bounds. |
||
2715 | </source> |
||
2716 | <translation type="unfinished">setFontSize(mida, ["nom"]) |
||
2717 | |||
2718 | Estableix la mida de la font del quadre de text "nom" a "mida". "mida" |
||
2719 | ha de ser en punts. Si hi ha text seleccionat només es canvia |
||
2720 | aquest. "mida" ha de ser un valor entre 1 i 512. Si no especifiquem |
||
2721 | "nom" es fa servir l'ítem seleccionat. |
||
2722 | |||
2723 | Pot provocar ValueError per mides fora de rang. |
||
2724 | </translation> |
||
2725 | </message> |
||
2726 | <message> |
||
14489 | cbradney | 2727 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="179"/> |
12918 | cbradney | 2728 | <source>setLineSpacing(size, ["name"]) |
2729 | |||
2730 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2731 | "size" is a value in points. If "name" is not given the currently selected |
||
2732 | item is used. |
||
2733 | |||
2734 | May throw ValueError if the line spacing is out of bounds. |
||
2735 | </source> |
||
2736 | <translation type="unfinished">setLineSpacing(mida,["nom"]) |
||
2737 | |||
2738 | Estableix l'espaiat de línia del quadre de text "nom" a "mida". |
||
2739 | "mida" està en punts. Si no especifiquem "nom" es fa servir l'ítem |
||
2740 | seleccionat. |
||
2741 | |||
2742 | Pot provocar ValueError si l'espaiat està fora de marges.</translation> |
||
2743 | </message> |
||
2744 | <message> |
||
14489 | cbradney | 2745 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="192"/> |
12918 | cbradney | 2746 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
2747 | |||
2748 | Sets the text distances of the text frame "name" to the values "left" |
||
2749 | "right", "top" and "bottom". If "name" is not given the currently |
||
2750 | selected item is used. |
||
2751 | |||
2752 | May throw ValueError if any of the distances are out of bounds (must be positive). |
||
2753 | </source> |
||
2754 | <translation type="unfinished"></translation> |
||
2755 | </message> |
||
2756 | <message> |
||
14489 | cbradney | 2757 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="205"/> |
12918 | cbradney | 2758 | <source>setColumnGap(size, ["name"]) |
2759 | |||
2760 | Sets the column gap of the text frame "name" to the value "size". If |
||
2761 | "name" is not given the currently selected item is used. |
||
2762 | |||
2763 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2764 | </source> |
||
2765 | <translation type="unfinished">setColumnGap(mida,["nom"]) |
||
2766 | |||
2767 | Estableix l'espai entre columnes del quadre de text "nom" a "mida". Si |
||
2768 | no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2769 | |||
2770 | Pot provocar ValueError si el valor està fora de rang (ha de ser positiu). |
||
2771 | </translation> |
||
2772 | </message> |
||
2773 | <message> |
||
14489 | cbradney | 2774 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="217"/> |
12918 | cbradney | 2775 | <source>setColumns(nr, ["name"]) |
2776 | |||
2777 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2778 | If "name" is not given the currently selected item is used. |
||
2779 | |||
2780 | May throw ValueError if number of columns is not at least one. |
||
2781 | </source> |
||
2782 | <translation type="unfinished">setColumns(nr, ["nom"]) |
||
2783 | |||
2784 | Estableix que el quadre de text "nom" tindrà "nr" columnes. |
||
2785 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2786 | |||
2787 | Pot provocar ValueError si el número de columnes no és almenys una. |
||
2788 | </translation> |
||
2789 | </message> |
||
2790 | <message> |
||
14489 | cbradney | 2791 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="229"/> |
12918 | cbradney | 2792 | <source>setTextAlignment(align, ["name"]) |
2793 | |||
2794 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2795 | If "name" is not given the currently selected item is used. "align" should |
||
2796 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2797 | |||
2798 | May throw ValueError for an invalid alignment constant. |
||
2799 | </source> |
||
2800 | <translation type="unfinished">setTextAlignment(alineacio, ["nom"]) |
||
2801 | |||
2802 | Estableix l'alineació del quadre de text "nom" a la especificada. |
||
2803 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. "alineació" ha de ser |
||
2804 | una de les constants ALIGN_ definides en aquest mòdul - Mireu dir(scribus). |
||
2805 | |||
2806 | Pot provocar ValueError si posem una constant invàl·lida. |
||
2807 | </translation> |
||
2808 | </message> |
||
2809 | <message> |
||
14489 | cbradney | 2810 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="242"/> |
12918 | cbradney | 2811 | <source>selectText(start, count, ["name"]) |
2812 | |||
2813 | Selects "count" characters of text in the text frame "name" starting from the |
||
2814 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2815 | text selection will be cleared. If "name" is not given the currently |
||
2816 | selected item is used. |
||
2817 | |||
2818 | May throw IndexError if the selection is outside the bounds of the text. |
||
2819 | </source> |
||
2820 | <translation type="unfinished">selectText(inici, número, ["name"]) |
||
2821 | |||
2822 | Seleccióna "número" caràcters del quadre de text "nom" començant pel |
||
2823 | caràcter "inici". Els caràcters comencen per 0. Si "número" és zero, es |
||
2824 | deselecciona tot el que hi pogués haver seleccionat. Si no especifiquem |
||
2825 | "nom" es fa servir l'ítem seleccionat. |
||
2826 | |||
2827 | Pot provocar un IndexError si la selecció és massa gran pel text. |
||
2828 | </translation> |
||
2829 | </message> |
||
2830 | <message> |
||
14489 | cbradney | 2831 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="256"/> |
12918 | cbradney | 2832 | <source>deleteText(["name"]) |
2833 | |||
2834 | Deletes any text in the text frame "name". If there is some text selected, |
||
2835 | only the selected text will be deleted. If "name" is not given the currently |
||
2836 | selected item is used. |
||
2837 | </source> |
||
2838 | <translation type="unfinished">deleteText(["nom"]) |
||
2839 | |||
2840 | Esborra qualsevol text del quadre de text "nom". Si hi ha algun text |
||
2841 | seleccionat només s'esborra la selecció. Si no especifiquem "nom" |
||
2842 | es fa servir l'ítem seleccionat. |
||
2843 | </translation> |
||
2844 | </message> |
||
2845 | <message> |
||
14489 | cbradney | 2846 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="267"/> |
12918 | cbradney | 2847 | <source>setTextColor("color", ["name"]) |
2848 | |||
2849 | Sets the text color of the text frame "name" to the color "color". If there |
||
2850 | is some text selected only the selected text is changed. If "name" is not |
||
2851 | given the currently selected item is used. |
||
2852 | </source> |
||
2853 | <translation type="unfinished">setTextColor("color", ["nom"]) |
||
2854 | |||
2855 | Posa el text del quadre de text "nom" al color "color". Si hi ha algun |
||
2856 | text seleccionat només es canvia el text seleccionat. Si no |
||
2857 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2858 | </translation> |
||
2859 | </message> |
||
2860 | <message> |
||
14489 | cbradney | 2861 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="278"/> |
12918 | cbradney | 2862 | <source>setTextStroke("color", ["name"]) |
2863 | |||
2864 | Set "color" of the text stroke. If "name" is not given the currently |
||
2865 | selected item is used. |
||
2866 | </source> |
||
2867 | <translation type="unfinished">setTextStroke("color", ["nom"]) |
||
2868 | |||
2869 | Posa el "color" a les línies de contorn. Si no especifiquem "nom" |
||
2870 | es fa servir l'ítem seleccionat. |
||
2871 | </translation> |
||
2872 | </message> |
||
2873 | <message> |
||
14489 | cbradney | 2874 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="288"/> |
2875 | <source>setTextScalingV(scale, ["name"]) |
||
2876 | |||
2877 | Sets the vertical character scaling of the object "name" to "scale" in percent. |
||
2878 | If "name" is not given the currently selected item is used. |
||
2879 | </source> |
||
2880 | <translation type="unfinished"></translation> |
||
2881 | </message> |
||
2882 | <message> |
||
2883 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="298"/> |
||
2884 | <source>setTextScalingH(scale, ["name"]) |
||
2885 | |||
2886 | Sets the horizontal character scaling of the object "name" to "scale" in percent. |
||
2887 | If "name" is not given the currently selected item is used. |
||
2888 | </source> |
||
2889 | <translation type="unfinished"></translation> |
||
2890 | </message> |
||
2891 | <message> |
||
2892 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="308"/> |
||
12918 | cbradney | 2893 | <source>setTextShade(shade, ["name"]) |
2894 | |||
2895 | Sets the shading of the text color of the object "name" to "shade". If |
||
2896 | there is some text selected only the selected text is changed. "shade" must |
||
2897 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2898 | intensity). If "name" is not given the currently selected item is |
||
2899 | used. |
||
2900 | </source> |
||
2901 | <translation type="unfinished">setTextShade(intensitat, ["nom"]) |
||
2902 | |||
2903 | Posa la intensitat del color del text "nom" a "intensitat". Si hi ha algun |
||
2904 | text seleccionat només es canvia aquest. "intensitat" ha de ser |
||
2905 | un valor enter que va des de 0 (clarejat) a 100 (intensitat de |
||
2906 | color).Si no especifiquem "nom" es fa servir l'ítem |
||
2907 | seleccionat. |
||
2908 | </translation> |
||
2909 | </message> |
||
2910 | <message> |
||
14489 | cbradney | 2911 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="321"/> |
12918 | cbradney | 2912 | <source>linkTextFrames("fromname", "toname") |
2913 | |||
2914 | Link two text frames. The frame named "fromname" is linked to the |
||
2915 | frame named "toname". The target frame must be an empty text frame |
||
2916 | and must not link to or be linked from any other frames already. |
||
2917 | |||
2918 | May throw ScribusException if linking rules are violated. |
||
2919 | </source> |
||
2920 | <translation type="unfinished">linkTextFrames("desdenom","anom") |
||
2921 | |||
2922 | Enllaça dos quadres de text. El quadre de text "desdenom" és enllaçat a |
||
2923 | el quadre de text "anom". El quadre de text de destí ha de ser buit |
||
2924 | i no es pot enllaçar o ser enllaçat per cap altre quadre de text. |
||
2925 | |||
2926 | Podem tenir ScribusException si es violen les normes d'enllaçat. |
||
2927 | </translation> |
||
2928 | </message> |
||
2929 | <message> |
||
14489 | cbradney | 2930 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="338"/> |
12918 | cbradney | 2931 | <source>unlinkTextFrames("name") |
2932 | |||
2933 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2934 | frame was in the middle of a chain, the previous and next frames will be |
||
2935 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
2936 | |||
2937 | May throw ScribusException if linking rules are violated. |
||
2938 | </source> |
||
2939 | <translation type="unfinished">unlinkTextFrames("nom") |
||
2940 | |||
2941 | Elimina l'objecte especificat del camí de quadre de text. Si el quadre |
||
2942 | de text estava al mig d'una cadena, els anteriors i els següents seran |
||
2943 | connectats, ex. 'a->b->c' esdevé 'a->c' quan fem unlinkTextFrames(b)' |
||
2944 | |||
2945 | Podem tenir ScribusException si violem les normes. |
||
2946 | </translation> |
||
2947 | </message> |
||
2948 | <message> |
||
14489 | cbradney | 2949 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="355"/> |
12918 | cbradney | 2950 | <source>traceText(["name"]) |
2951 | |||
2952 | Convert the text frame "name" to outlines. If "name" is not given the |
||
2953 | currently selected item is used.</source> |
||
2954 | <translation type="unfinished">traceText(["nom"]) |
||
2955 | |||
2956 | Convertim el quadre de text "nom" a esquema. Si no especifiquem |
||
2957 | "nom" es fa servir l'ítem seleccionat.</translation> |
||
2958 | </message> |
||
2959 | <message> |
||
14489 | cbradney | 2960 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="366"/> |
12918 | cbradney | 2961 | <source>textOverflows(["name", nolinks]) -> integer |
2962 | |||
2963 | Returns the actual number of overflowing characters in text frame "name". |
||
2964 | If is nolinks set to non zero value it takes only one frame - it doesn't |
||
2965 | use text frame linking. Without this parameter it search all linking chain. |
||
2966 | |||
2967 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
2968 | </source> |
||
2969 | <translation type="unfinished">textOverflows(["nom", nolinks]) -> integer |
||
2970 | |||
2971 | Retorna el número actual de caràcters que sobreeixen del marc de text "nom". |
||
2972 | Si 'nolinks' val zero només mira un marc - no segueix els enllaços de |
||
2973 | text. Sense aquest paràmetre busca per tots els marcs que estiguin enllaçats. |
||
2974 | |||
2975 | Pot generar un WrongFrameTypeError si el marc de destí no és un marc de text |
||
2976 | </translation> |
||
2977 | </message> |
||
2978 | <message> |
||
14489 | cbradney | 2979 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="379"/> |
12918 | cbradney | 2980 | <source>hyphenateText(["name"]) -> bool |
2981 | |||
2982 | Does hyphenation on text frame "name". |
||
2983 | If "name" is not given the currently selected item is used. |
||
2984 | |||
2985 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2986 | </source> |
||
2987 | <translation type="unfinished"></translation> |
||
2988 | </message> |
||
2989 | <message> |
||
14489 | cbradney | 2990 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="393"/> |
12918 | cbradney | 2991 | <source>dehyphenateText(["name"]) -> bool |
2992 | |||
2993 | Does dehyphenation on text frame "name". |
||
2994 | If "name" is not given the currently selected item is used. |
||
2995 | |||
2996 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2997 | </source> |
||
2998 | <translation type="unfinished"></translation> |
||
2999 | </message> |
||
3000 | <message> |
||
14489 | cbradney | 3001 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="408"/> |
12918 | cbradney | 3002 | <source>setPDFBookmark("toggle", ["name"]) |
3003 | |||
3004 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
||
3005 | If "name" is not given the currently selected item is used. |
||
3006 | |||
3007 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3008 | </source> |
||
3009 | <translation type="unfinished"></translation> |
||
3010 | </message> |
||
3011 | <message> |
||
14489 | cbradney | 3012 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="420"/> |
12918 | cbradney | 3013 | <source>isPDFBookmark(["name"]) -> bool |
3014 | |||
3015 | Returns true if the text frame "name" is a PDF bookmark. |
||
3016 | If "name" is not given the currently selected item is used. |
||
3017 | |||
3018 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3019 | </source> |
||
3020 | <translation type="unfinished">isPDFBookmark(["nom"]) -> bool |
||
3021 | |||
3022 | Retorna cert si el "nom" del marc de text és un punt PDF. |
||
3023 | Si no s'especifica "nom" es fa servir l'element actual. |
||
3024 | |||
3025 | Pot generar un WrongFrameTypeError si el marc de destí no és de text</translation> |
||
3026 | </message> |
||
3027 | <message> |
||
14489 | cbradney | 3028 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="17"/> |
12918 | cbradney | 3029 | <source>messagebarText("string") |
3030 | |||
3031 | Writes the "string" into the Scribus message bar (status line). The text |
||
3032 | must be UTF8 encoded or 'unicode' string(recommended). |
||
3033 | </source> |
||
3034 | <translation type="unfinished">messagebarText("string") |
||
3035 | |||
3036 | Escriu la cadena "string" en la barra d'estat de l'Scribus. El text |
||
3037 | ha de ser codificat en UTF8 o una cadena 'unicode' (recomanat). |
||
3038 | </translation> |
||
3039 | </message> |
||
3040 | <message> |
||
14489 | cbradney | 3041 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="30"/> |
12918 | cbradney | 3042 | <source>progressReset() |
3043 | |||
3044 | Cleans up the Scribus progress bar previous settings. It is called before the |
||
3045 | new progress bar use. See progressSet. |
||
3046 | </source> |
||
3047 | <translation type="unfinished">progressReset() |
||
3048 | |||
3049 | Buida la barra de progrés de l'Scribus. Es fa servir abans de fer servir |
||
3050 | una nova barra de progrés. Mireu ProgressSet. |
||
3051 | </translation> |
||
3052 | </message> |
||
3053 | <message> |
||
14489 | cbradney | 3054 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="43"/> |
12918 | cbradney | 3055 | <source>progressTotal(max) |
3056 | |||
3057 | Sets the progress bar's maximum steps value to the specified number. |
||
3058 | See progressSet. |
||
3059 | </source> |
||
3060 | <translation type="unfinished">progressTotal(max) |
||
3061 | |||
3062 | Estableix el màxim número de salts d'una barra de progrés al número. |
||
3063 | Mireu progressSet. |
||
3064 | </translation> |
||
3065 | </message> |
||
3066 | <message> |
||
14489 | cbradney | 3067 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="52"/> |
12918 | cbradney | 3068 | <source>progressSet(nr) |
3069 | |||
3070 | Set the progress bar position to "nr", a value relative to the previously set |
||
3071 | progressTotal. The progress bar uses the concept of steps; you give it the |
||
3072 | total number of steps and the number of steps completed so far and it will |
||
3073 | display the percentage of steps that have been completed. You can specify the |
||
3074 | total number of steps with progressTotal(). The current number of steps is set |
||
3075 | with progressSet(). The progress bar can be rewound to the beginning with |
||
3076 | progressReset(). [based on info taken from Trolltech's Qt docs] |
||
3077 | </source> |
||
3078 | <translation type="unfinished">progressSet(nr) |
||
3079 | |||
3080 | Estableix la posició de la barra de progrés a "nr", un valor relatiu al de |
||
3081 | progressTotal. La barra de progrés fa servir el concepte de passes; pits donar |
||
3082 | el número total de passes i el número total de passes fetes i es mostrarà |
||
3083 | el percentatge de passes que s'han completat. Pots especificar el número total |
||
3084 | de passes amb progressTotal(). El número actual de passes es passa amb |
||
3085 | progressSet(). La barra de progrés pot tornar-se al principi amb progressReset(). |
||
3086 | [basat en la informació passada la documentació de QT de TrollTech] |
||
3087 | </translation> |
||
3088 | </message> |
||
3089 | <message> |
||
14489 | cbradney | 3090 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="66"/> |
12918 | cbradney | 3091 | <source>setCursor() |
3092 | |||
3093 | [UNSUPPORTED!] This might break things, so steer clear for now. |
||
3094 | </source> |
||
3095 | <translation type="unfinished">setCursor() |
||
3096 | |||
3097 | [NO SUPORTAT!] Això farà anar malament, per tant no l'utilitzeu per ara. |
||
3098 | </translation> |
||
3099 | </message> |
||
3100 | <message> |
||
14489 | cbradney | 3101 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="78"/> |
12918 | cbradney | 3102 | <source>docChanged(bool) |
3103 | |||
3104 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
||
3105 | useful to call this procedure when you're changing the document, because Scribus |
||
3106 | won't automatically notice when you change the document using a script. |
||
3107 | </source> |
||
3108 | <translation type="unfinished">docChanged(bool) |
||
3109 | |||
3110 | Activa/desactiva la icona de desar en la barra d'icones i el menu de l'Scribus. És |
||
3111 | útil cridar aquest procediment quan estas canviant el document amb una |
||
3112 | seqüència, perquè Scribus no se n'adonarà automàticament dels canvis. |
||
3113 | </translation> |
||
3114 | </message> |
||
3115 | <message> |
||
14489 | cbradney | 3116 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="91"/> |
12918 | cbradney | 3117 | <source>zoomDocument(double) |
3118 | |||
3119 | Zoom the document in main GUI window. Actions have whole number |
||
3120 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
3121 | </source> |
||
3122 | <translation type="unfinished">zoomDocument(double) |
||
3123 | |||
3124 | Aplia la visualització del document en la finestra principal. Les accions han de |
||
3125 | tenir un número com 20.0, 100.0, etc.. Ampliar a la mida de la finestra és -100. |
||
3126 | </translation> |
||
3127 | </message> |
||
3128 | <message> |
||
14489 | cbradney | 3129 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="103"/> |
12918 | cbradney | 3130 | <source>scrollDocument(x,y) |
3131 | |||
3132 | Scroll the document in main GUI window by x and y. |
||
3133 | </source> |
||
3134 | <translation type="unfinished"></translation> |
||
3135 | </message> |
||
3136 | <message> |
||
14489 | cbradney | 3137 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="15"/> |
12918 | cbradney | 3138 | <source>placeSVG("filename", x, y) |
3139 | |||
3140 | Places the SVG "filename" onto the current page, |
||
3141 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
||
3142 | |||
3143 | If loading was successful, the selection contains the imported SVG |
||
3144 | </source> |
||
3145 | <translation type="unfinished"></translation> |
||
3146 | </message> |
||
3147 | <message> |
||
14489 | cbradney | 3148 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="27"/> |
12918 | cbradney | 3149 | <source>placeEPS("filename", x, y) |
3150 | |||
3151 | Places the EPS "filename" onto the current page, |
||
3152 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
||
3153 | |||
3154 | If loading was successful, the selection contains the imported EPS |
||
3155 | </source> |
||
3156 | <translation type="unfinished"></translation> |
||
3157 | </message> |
||
3158 | <message> |
||
14489 | cbradney | 3159 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="39"/> |
12918 | cbradney | 3160 | <source>placeSXD("filename", x, y) |
3161 | |||
3162 | Places the SXD "filename" onto the current page, |
||
3163 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
||
3164 | |||
3165 | If loading was successful, the selection contains the imported SXD |
||
3166 | </source> |
||
3167 | <translation type="unfinished"></translation> |
||
3168 | </message> |
||
3169 | <message> |
||
14489 | cbradney | 3170 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="51"/> |
12918 | cbradney | 3171 | <source>placeODG("filename", x, y) |
3172 | |||
3173 | Places the ODG "filename" onto the current page, |
||
3174 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
||
3175 | |||
3176 | If loading was successful, the selection contains the imported ODG |
||
3177 | </source> |
||
3178 | <translation type="unfinished"></translation> |
||
3179 | </message> |
||
3180 | </context> |
||
3181 | <context> |
||
3182 | <name>@default</name> |
||
3183 | <message> |
||
3184 | <source>getFontSize(["name"]) -> float |
||
3185 | |||
3186 | Returns the font size in points for the text frame "name". If this text |
||
3187 | frame has some text selected the value assigned to the first character of |
||
3188 | the selection is returned. |
||
3189 | If "name" is not given the currently selected item is used. |
||
3190 | </source> |
||
3191 | <translation type="obsolete">getFontSize(["nom"]) -> float |
||
3192 | |||
3193 | Retorna la mida del tipus de lletra en punts del quadre de text "nom". Si |
||
3194 | aquest quadre de text té algun text seleccionat es torna el primer caràcter |
||
3195 | de la selecció. |
||
3196 | Si no es passa "nom" es fa servir l'ítem actualment seleccionat. |
||
3197 | </translation> |
||
3198 | </message> |
||
3199 | <message> |
||
1135 | cbradney | 3200 | <source>getColorNames() -> list |
3201 | |||
3202 | Returns a list containing the names of all defined colors in the document. |
||
3203 | If no document is open, returns a list of the default document colors. |
||
3204 | </source> |
||
12918 | cbradney | 3205 | <translation type="obsolete">getColorNames() -> llista |
1135 | cbradney | 3206 | |
3207 | Retorna una llista que conté els noms dels colors definits en el document. |
||
3208 | Si no hi ha cap document obert, retorna una llista amb els colors per defecte. |
||
3209 | </translation> |
||
3210 | </message> |
||
3211 | <message> |
||
3212 | <source>newDocDialog() -> bool |
||
3213 | |||
3214 | Displays the "New Document" dialog box. Creates a new document if the user |
||
3215 | accepts the settings. Does not create a document if the user presses cancel. |
||
3216 | Returns true if a new document was created. |
||
3217 | </source> |
||
12918 | cbradney | 3218 | <translation type="obsolete">newDocDialog() -> bool |
1135 | cbradney | 3219 | |
3220 | Mostra el diàleg "Nou Document". Crea un nou document si l'usuari accepta |
||
4890 | cbradney | 3221 | els paràmetres. No en fa cap en cas de que hagi triat cancel·lar. |
1135 | cbradney | 3222 | Retorna cert si s'ha creat un nou document. |
3223 | </translation> |
||
3224 | </message> |
||
3225 | <message> |
||
3226 | <source>getFillColor(["name"]) -> string |
||
3227 | |||
3228 | Returns the name of the fill color of the object "name". |
||
3229 | If "name" is not given the currently selected item is used. |
||
3230 | </source> |
||
12918 | cbradney | 3231 | <translation type="obsolete">getFillColor(["nom"]) -> string |
1135 | cbradney | 3232 | |
3233 | Retorna el nom del color de l'objecte "nom". |
||
4890 | cbradney | 3234 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3235 | </translation> |
3236 | </message> |
||
3237 | <message> |
||
3238 | <source>moveObject(dx, dy [, "name"]) |
||
3239 | |||
3240 | Moves the object "name" by dx and dy relative to its current position. The |
||
3241 | distances are expressed in the current measurement unit of the document (see |
||
3242 | UNIT constants). If "name" is not given the currently selected item is used. |
||
3243 | If the object "name" belongs to a group, the whole group is moved. |
||
3244 | </source> |
||
12918 | cbradney | 3245 | <translation type="obsolete">moveObject(dx, dy [,"nom"]) |
1135 | cbradney | 3246 | |
3247 | Mou l'objecte "nom" una distància dx i dx respecte la posició actual. Les |
||
3248 | distàncies estan expressades en les unitats actuals del document (mireu |
||
4890 | cbradney | 3249 | unitats). Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3250 | Si l'objecte "nom" pertany a un grup, es mou tot el grup. |
3251 | </translation> |
||
3252 | </message> |
||
3253 | <message> |
||
3254 | <source>setRedraw(bool) |
||
3255 | |||
3256 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
3257 | This change will persist even after the script exits, so make sure to call |
||
3258 | setRedraw(True) in a finally: clause at the top level of your script. |
||
3259 | </source> |
||
12918 | cbradney | 3260 | <translation type="obsolete">setRedraw(bool) |
1135 | cbradney | 3261 | |
3262 | Desactiva el repintat de la pàgina quan bool=fals, altrament està activat. |
||
3263 | Aquest canvi continuarà fins i tot quan acabi l'execució de la seqüència, per tant cal estar |
||
3264 | segur d'acabar amb setRedraw(True): clausula a nivell alt de la teva seqüència. |
||
3265 | </translation> |
||
3266 | </message> |
||
3267 | <message> |
||
3268 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
3269 | |||
3270 | Creates a new rectangle on the current page and returns its name. The |
||
3271 | coordinates are given in the current measurement units of the document |
||
3272 | (see UNIT constants). "name" should be a unique identifier for the object |
||
3273 | because you need this name to reference that object in future. If "name" |
||
3274 | is not given Scribus will create one for you. |
||
3275 | |||
3276 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
3277 | </source> |
||
12918 | cbradney | 3278 | <translation type="obsolete">createRect(x,y,amplada, alçada, ["name"]) -> string |
1135 | cbradney | 3279 | |
3280 | Crea un nou rectangle en la pàgina actual i retorna el seu nom. Les |
||
3281 | coordenades donades estaran en les unitats per defecte del document |
||
3282 | (mireu unitats). "nom" ha de ser un identificador únic per l'objecte |
||
3283 | ja que necessites aquest nom per fer referència a l'objecte en el futur. Si no |
||
3284 | es dóna "nom" Scribus en crearà un per nosaltres. |
||
3285 | |||
3286 | Es generar un NameExistsError si passem un nom que ja existeix. |
||
3287 | </translation> |
||
3288 | </message> |
||
3289 | <message> |
||
3290 | <source>newPage(where [,"template"]) |
||
3291 | |||
3292 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
3293 | document, otherwise the new page is inserted before "where". Page numbers are |
||
3294 | counted from 1 upwards, no matter what the displayed first page number of your |
||
3295 | document is. The optional parameter "template" specifies the name of the |
||
3296 | template page for the new page. |
||
3297 | |||
3298 | May raise IndexError if the page number is out of range |
||
3299 | </source> |
||
3064 | cbradney | 3300 | <translation type="obsolete">newPage(on [,"plantilla"]) |
1135 | cbradney | 3301 | |
3302 | Crea una nova pàgina. Si "on" és -1 la nova pàgina es afegida al |
||
3303 | document, altrament la nova pàgina es afegida abans de "on". Els números de pàgina estan |
||
3304 | contats des de 1 endavant, no importa el número de pàgina que s'ensenya al |
||
3305 | document. El paràmetre opcional "plantilla" especifica el nom de la |
||
3306 | plantilla a fer servir en la pàgina. |
||
3307 | |||
3308 | Es pot generar un IndexError si el número de pàgina està fora de rang |
||
3309 | </translation> |
||
3310 | </message> |
||
3311 | <message> |
||
3312 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
3313 | |||
3314 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
3315 | the same as for setFillColor() and setFillShade(). See the constants for |
||
3316 | available types (FILL_<type>). |
||
3317 | </source> |
||
12918 | cbradney | 3318 | <translation type="obsolete">setGradientFill(tipus, "color1", intensitat1, "color2", intensitat2, ["nom"]) |
1135 | cbradney | 3319 | |
3320 | Estableix el gradient d'emplenat de l'objecte "nom" a tipus. Les descripcions de colors |
||
3321 | són les mateixes que per setFillColor() i setFillShade(). Mireu les constants pels |
||
3322 | tipus disponibles (FILL_<tipus>). |
||
3323 | </translation> |
||
3324 | </message> |
||
3325 | <message> |
||
3326 | <source>messagebarText("string") |
||
3327 | |||
3328 | Writes the "string" into the Scribus message bar (status line). The text |
||
3329 | must be UTF8 encoded or 'unicode' string(recommended). |
||
3330 | </source> |
||
12918 | cbradney | 3331 | <translation type="obsolete">messagebarText("string") |
1135 | cbradney | 3332 | |
3333 | Escriu la cadena "string" en la barra d'estat de l'Scribus. El text |
||
3334 | ha de ser codificat en UTF8 o una cadena 'unicode' (recomanat). |
||
3335 | </translation> |
||
3336 | </message> |
||
3337 | <message> |
||
3338 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
3339 | unit, facingPages, firstSideLeft) -> bool |
||
3340 | |||
3341 | Creates a new document and returns true if successful. The parameters have the |
||
3342 | following meaning: |
||
3343 | |||
3344 | size = A tuple (width, height) describing the size of the document. You can |
||
3345 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
3346 | |||
3347 | margins = A tuple (left, right, top, bottom) describing the document |
||
3348 | margins |
||
3349 | |||
3350 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3351 | |||
3352 | firstPageNumber = is the number of the first page in the document used for |
||
3353 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
3354 | numbers if you're creating a document in several parts. |
||
3355 | |||
3356 | unit: this value sets the measurement units used by the document. Use a |
||
3357 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3358 | UNIT_PICAS, UNIT_POINTS. |
||
3359 | |||
3360 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
3361 | |||
3362 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3363 | |||
3364 | The values for width, height and the margins are expressed in the given unit |
||
3365 | for the document. PAPER_* constants are expressed in points. If your document |
||
3366 | is not in points, make sure to account for this. |
||
3367 | |||
3368 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
3369 | FACINGPAGES, FIRSTPAGERIGHT) |
||
3370 | </source> |
||
3064 | cbradney | 3371 | <translation type="obsolete">newDoc(mida, marges, orientació, primerNúmeroPàgina, |
1135 | cbradney | 3372 | unitats, PaginesAcarades, primeraPaginaEsquerra) -> bool |
3373 | |||
3374 | Crea un nou document i retorna cert si tot ha anat bé. Els paràmetres tenen el |
||
3375 | següent significat: |
||
3376 | |||
3377 | mida = Una parella (amplada, alçada) que descriu la mida del document. Pots |
||
3378 | fer servir constants predefinides com PAPER_<tipus de paper> ex. PAPER_A4 etc. |
||
3379 | |||
3380 | marges = Una agrupació (esquerra, dreta, dalt, baix) que descriu els marges |
||
3381 | del document. |
||
3382 | |||
3383 | orientació = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
3384 | |||
3385 | PrimerNúmeroPàgina = és el número de la primera pàgina en el document que farem |
||
3386 | servir per numerar les pàgines. Encara que normalment es farà servir 1, a vegades |
||
3387 | es útil poder posar números més grans si es creen documents en parts. |
||
3388 | |||
3389 | unitats : aquest valor estableix les unitats que el document farà servir. Cal usar una |
||
3390 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3391 | UNIT_PICAS, UNIT_POINTS. |
||
3392 | |||
3393 | PàginesAcarades = FACINPAGES, NOFACINPAGES |
||
3394 | |||
3395 | PrimeraPàginaEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3396 | |||
3397 | Els valors per l'amplada, l'alçada i els marges està expressada en les unitats donades |
||
3398 | pel document. Les constants PAPER_* estan expressades en punts. Si el nostre document |
||
3399 | no està en punts, cal tenir-ho en compte. |
||
3400 | |||
3401 | exemple: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
3402 | FACINGPAGES, FIRSTPAGERIGHT) |
||
3403 | </translation> |
||
3404 | </message> |
||
1525 | cbradney | 3405 | <message> |
1564 | cbradney | 3406 | <source>register_macro_callable(name, callable, accel='') |
1525 | cbradney | 3407 | |
1564 | cbradney | 3408 | Create a macro called "name" with the existing callable object "callable". |
3409 | The passed callable must not require any arguments when called (it may take |
||
3410 | optional arguments, but will not be given any). |
||
3411 | If provided, the string "accel" will be used to set a keyboard shortcut |
||
3412 | for the macro. |
||
3413 | If the passed callable is a class, it will be rejected. Functions and bound |
||
3414 | methods are quite acceptable, as are instances of classes that provide a |
||
3415 | __call__ method with no arguments. There is no problem with registering |
||
3416 | a callable more than once, nor with registering multiple bound methods |
||
3417 | of a single instance. |
||
3418 | </source> |
||
3064 | cbradney | 3419 | <translation type="obsolete">register_macro_callable(nom, callable, accel='') |
1525 | cbradney | 3420 | |
1564 | cbradney | 3421 | Crea una macro anomenada "nom" amb l'objecte usable existent "callable". |
3422 | Aquest objecte no ha de requerir cap argument quan es cridi (en pot tenir |
||
3423 | d'opcionals, però no se li'n poden donar). |
||
3424 | Si s'afegeix el paràmetre "accel" serà fet servir er crear una drecera de teclat |
||
3425 | per la macro. |
||
3426 | Si l'objecte que es vol usar és una classe, serà rebutjada. Es permeten funcions i |
||
3427 | mètodes embedits, ja que són instàncies classes que tenen un mètode |
||
3428 | __call__ sense arguments. No hi haurà problemes per registrar |
||
3429 | un objecte usable més d'un cop, ni per registrar múltiples mètodes embedits |
||
3430 | d'una sola instància. |
||
3431 | </translation> |
||
1525 | cbradney | 3432 | </message> |
3064 | cbradney | 3433 | <message> |
3434 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
3435 | unit, facingPages, firstSideLeft) -> bool |
||
3436 | |||
3437 | Creates a new document and returns true if successful. The parameters have the |
||
3438 | following meaning: |
||
3439 | |||
3440 | size = A tuple (width, height) describing the size of the document. You can |
||
3441 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
3442 | |||
3443 | margins = A tuple (left, right, top, bottom) describing the document |
||
3444 | margins |
||
3445 | |||
3446 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3447 | |||
3448 | firstPageNumer = is the number of the first page in the document used for |
||
3449 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
3450 | numbers if you're creating a document in several parts. |
||
3451 | |||
3452 | unit: this value sets the measurement units used by the document. Use a |
||
3453 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3454 | UNIT_PICAS, UNIT_POINTS. |
||
3455 | |||
3456 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
3457 | |||
3458 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3459 | |||
3460 | The values for width, height and the margins are expressed in the given unit |
||
3461 | for the document. PAPER_* constants are expressed in points. If your document |
||
3462 | is not in points, make sure to account for this. |
||
3463 | |||
3464 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
3465 | FACINGPAGES, FIRSTPAGERIGHT) |
||
3466 | </source> |
||
3824 | cbradney | 3467 | <translation type="obsolete">newDoc(mida, marges, orientació, primerNumeroPagina, |
3386 | mrdocs | 3468 | unitats, PaginesArarades, primercostatEsquerra) -> bool |
3469 | |||
3470 | Crea un nou document i retorna cert si se n'ha sortit. Els paràmetres signifiquen el |
||
3471 | següent: |
||
3472 | |||
3473 | Mida = Un parell (amplada, alçada) que descriu la mida del document. Pots fer |
||
3474 | servir les constants PAPER_<tipus> ex. PAPER_A4 etc.. |
||
3475 | |||
3476 | marges = una tupla (esquerra, dreta, dalt, baix) que descriu els marges del |
||
3477 | document |
||
3478 | |||
3479 | orientació = La orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
3480 | |||
3481 | primerNumeroPagina = és el número que tindrà la primera pàgina del document a l'hora |
||
3482 | de numerar-les. Encara que normalment es farà servir 1, és útil tenir la possibilitat de posar-ne |
||
3483 | d'altres per si es crea un document en diferents parts. |
||
3484 | |||
3485 | unitats: aquest valor estableix les unitats de mesura que es faran servir en el document. Es |
||
3486 | fa servir una constant predefinida per definir-les: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3487 | UNIT_PICAS, UNIT_POINTS. |
||
3488 | |||
3489 | PaginesArarades = FACINPAGES, NOFACINPAGES |
||
3490 | |||
3491 | primercostatEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3492 | |||
3493 | Els valors de amplada, alçada i els marges estan expressats en les unitats donades |
||
3494 | al document. Les constants PAPER_* estan expressades en punts. Si el document |
||
3495 | no treballa en punts, tingueu-ho en compte. |
||
3496 | |||
3497 | exemple: newDoc(PAPER_A4, (10,10,20,20),LANDSCAPE,1,UNIT_POINTS, |
||
3498 | FACINPAGES, FIRSTPAGERIGHT) |
||
3499 | </translation> |
||
3064 | cbradney | 3500 | </message> |
3501 | <message> |
||
3502 | <source>newPage(where [,"masterpage"]) |
||
3503 | |||
3504 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
3505 | document, otherwise the new page is inserted before "where". Page numbers are |
||
3506 | counted from 1 upwards, no matter what the displayed first page number of your |
||
3507 | document is. The optional parameter "masterpage" specifies the name of the |
||
3508 | master page for the new page. |
||
3509 | |||
3510 | May raise IndexError if the page number is out of range |
||
3511 | </source> |
||
12918 | cbradney | 3512 | <translation type="obsolete">newPage(on [,"paginamestra"]) |
3386 | mrdocs | 3513 | |
3514 | Crea una nova pàgina. Si "on" és -1 la nova pàgina s'afegeix al final del document, |
||
3515 | altrament la nova pàgina s'afegeix allà on diu 'on'. Els números de pàgina es compten |
||
3516 | des de 1 endavan, independentment del número que s'hagi posat a cada pàgina en la |
||
3517 | creació del document. El paràmetre opcional "paginamestra" especifica el nom de la |
||
3518 | pàgina mestra a aplicar a la nova pàgina. |
||
3519 | |||
3520 | Pot generar un error IndexError si la pàgina està fora de rang</translation> |
||
3064 | cbradney | 3521 | </message> |
3522 | <message> |
||
3523 | <source>importSVG("string") |
||
3524 | |||
3525 | The "string" must be a valid filename for a SVG image. The text |
||
3526 | must be UTF8 encoded or 'unicode' string(recommended). |
||
3527 | </source> |
||
9729 | cbradney | 3528 | <translation type="obsolete">importSVG("string") |
3386 | mrdocs | 3529 | |
3530 | "String" ha de ser un nom vàlid per un fitxer SVG. El text |
||
3531 | ha de ser en codi UTF8 o unicode (recomanat).</translation> |
||
3064 | cbradney | 3532 | </message> |
3824 | cbradney | 3533 | <message> |
3534 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
3535 | unit, pagesType, firstPageOrder) -> bool |
||
3536 | |||
3537 | Creates a new document and returns true if successful. The parameters have the |
||
3538 | following meaning: |
||
3539 | |||
3540 | size = A tuple (width, height) describing the size of the document. You can |
||
3541 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
3542 | |||
3543 | margins = A tuple (left, right, top, bottom) describing the document |
||
3544 | margins |
||
3545 | |||
3546 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3547 | |||
3548 | firstPageNumer = is the number of the first page in the document used for |
||
3549 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
3550 | numbers if you're creating a document in several parts. |
||
3551 | |||
3552 | unit: this value sets the measurement units used by the document. Use a |
||
3553 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3554 | UNIT_PICAS, UNIT_POINTS. |
||
3555 | |||
3556 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
3557 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
3558 | PAGE_4 is 4-fold. |
||
3559 | |||
3560 | firstPageOrder = What is position of first page in the document. |
||
3561 | Indexed from 0 (0 = first). |
||
3562 | |||
3563 | The values for width, height and the margins are expressed in the given unit |
||
3564 | for the document. PAPER_* constants are expressed in points. If your document |
||
3565 | is not in points, make sure to account for this. |
||
3566 | |||
3567 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
3568 | PAGE_4, 3) |
||
3569 | |||
3570 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
3571 | </source> |
||
6434 | cbradney | 3572 | <translation type="obsolete">newDocument(size, margins, orientation, firstPageNumber,(new line) |
4890 | cbradney | 3573 | unit, pagesType, firstPageOrder) -> bool |
3574 | |||
3575 | Crea un nou document i retorna cert si ha funcionat. Els paràmetres tenen el |
||
3576 | següent significat: |
||
3577 | |||
3578 | size = Una parella (amplada, alçada) que descriu la mida del document. Pots fer |
||
3579 | servir constants predefinides PAPER_<tipus de paper>. Ex. PAPER_A4 etc. |
||
3580 | |||
3581 | margins = una tupla (esquerra, dreta, dalt, baix) que descriu els marges del |
||
3582 | document |
||
3583 | |||
3584 | orientation = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
3585 | |||
3586 | firstPageNumber = és el número de la primera pàgina que farà servir el document |
||
3587 | Normalment farem servir 1, però a vegades és útil tenir números més grans |
||
3588 | si es crea un document en varies parts |
||
3589 | |||
3590 | unit: thaquest valor estableix les unitats que el document farà servir. Cal usar una |
||
3591 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3592 | UNIT_PICAS, UNIT_POINTS. |
||
3593 | |||
3594 | pagesType = Una de les constants predefinides PAGE_n. PAGE_1 és una pàgina simple, |
||
3595 | PAGE_2 és per pàgines pels dos costats, PAGE_3 és per pàgines amb tres plecs |
||
3596 | PAGE_4 és per pàgines amb 4 plecs |
||
3597 | |||
3598 | firstPageOrder = Quina és la posició de la primera pàgina del document. |
||
3599 | Indexades des de 0 (0 = primera) |
||
3600 | |||
3601 | Els valors per amplada i alçada i els marges han d'estar expressats en les unitats per defecte |
||
3602 | del document. Les constants PAPER_* estan expressades en punts. Recorda-ho si el teu |
||
3603 | document no està en punts |
||
3604 | |||
3605 | exemple: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
3606 | PAGE_4, 3) |
||
3607 | |||
3608 | Pot generar un ScribusError si firstPageOrder és més gran que el permès per pagesType. |
||
3609 | </translation> |
||
3824 | cbradney | 3610 | </message> |
1135 | cbradney | 3611 | <message> |
3612 | <source>getFont(["name"]) -> string |
||
3613 | |||
3614 | Returns the font name for the text frame "name". If this text frame |
||
3615 | has some text selected the value assigned to the first character |
||
3616 | of the selection is returned. If "name" is not given the currently |
||
3617 | selected item is used. |
||
3618 | </source> |
||
12918 | cbradney | 3619 | <translation type="obsolete">getFont(["nom]) -> string |
1135 | cbradney | 3620 | |
3621 | Retorna el nom de la font del quadre de text "nom". Si aquest quadre |
||
3622 | de text té algun text seleccionat es retorna el valor assignat al primer |
||
3623 | caràcter de la selecció. Si no especifiquem "nom" es fa servir l'ítem |
||
3624 | seleccionat. |
||
3625 | </translation> |
||
3626 | </message> |
||
3627 | <message> |
||
3628 | <source>getTextLength(["name"]) -> integer |
||
3629 | |||
3630 | Returns the length of the text in the text frame "name". |
||
3631 | If "name" is not given the currently selected item is used. |
||
3632 | </source> |
||
12918 | cbradney | 3633 | <translation type="obsolete">getFillColor(["nom"]) -> string |
1135 | cbradney | 3634 | |
3635 | Retorna el nom del color de l'objecte "nom". |
||
4890 | cbradney | 3636 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3637 | getTextLength(["nom"]) -> integer |
3638 | |||
3639 | Retorna la llargada del text del quadre de text "nom". |
||
3640 | Si no es dóna cap "nom", es fa servir l'ítem sel.leccionat. |
||
3641 | </translation> |
||
3642 | </message> |
||
3643 | <message> |
||
3644 | <source>getText(["name"]) -> string |
||
3645 | |||
3646 | Returns the text of the text frame "name". If this text frame has some text |
||
3647 | selected, the selected text is returned. All text in the frame, not just |
||
3648 | currently visible text, is returned. If "name" is not given the currently |
||
3649 | selected item is used. |
||
3650 | </source> |
||
12918 | cbradney | 3651 | <translation type="obsolete">getText(["nom"]) -> string |
1135 | cbradney | 3652 | |
3653 | Retorna el text del quadre de text "nom". Si el quadre de text té algun |
||
3654 | text seleccionat, es torna el text seleccionat. Es torna tot el text, |
||
3655 | no només el text visible. Si no es dóna cap "nom", es fa servir |
||
4890 | cbradney | 3656 | l'ítem sel·leccionat. |
1135 | cbradney | 3657 | </translation> |
3658 | </message> |
||
3659 | <message> |
||
3660 | <source>getAllText(["name"]) -> string |
||
3661 | |||
3662 | Returns the text of the text frame "name" and of all text frames which are |
||
3663 | linked with this frame. If this textframe has some text selected, the selected |
||
3664 | text is returned. If "name" is not given the currently selected item is |
||
3665 | used. |
||
3666 | </source> |
||
12918 | cbradney | 3667 | <translation type="obsolete">getAllText(["nom"]) -> string |
1135 | cbradney | 3668 | |
3669 | Retorna el text del quadre de text "nom" i de tots els quadres de text que estan |
||
3670 | enllaçats amb aquest. Si el quadre de text té algun text seleccionat, es retorna |
||
3671 | el text seleccionat. Si no es dóna cap "nom", es fa servir l'ítem |
||
4890 | cbradney | 3672 | sel·leccionat. |
1135 | cbradney | 3673 | </translation> |
3674 | </message> |
||
3675 | <message> |
||
3676 | <source>getLineSpacing(["name"]) -> float |
||
3677 | |||
3678 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
3679 | points. If "name" is not given the currently selected item is used. |
||
3680 | </source> |
||
12918 | cbradney | 3681 | <translation type="obsolete">getLineSpacing(["nom"]) -> float |
1135 | cbradney | 3682 | |
3683 | Retorna l'espaiat entre línies del quadre de text "nom" expressat en |
||
4890 | cbradney | 3684 | punts. Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3685 | </translation> |
3686 | </message> |
||
3687 | <message> |
||
3688 | <source>getColumnGap(["name"]) -> float |
||
3689 | |||
3690 | Returns the column gap size of the text frame "name" expressed in points. If |
||
3691 | "name" is not given the currently selected item is used. |
||
3692 | </source> |
||
12918 | cbradney | 3693 | <translation type="obsolete">getColumnGap(["nom"]) -> float |
1135 | cbradney | 3694 | |
3695 | Retorna l'espai entre columnes del quadre de text "nom" expressat en punts. Si |
||
4890 | cbradney | 3696 | no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3697 | </translation> |
3698 | </message> |
||
3699 | <message> |
||
3700 | <source>getColumns(["name"]) -> integer |
||
3701 | |||
3702 | Gets the number of columns of the text frame "name". If "name" is not |
||
3703 | given the currently selected item is used. |
||
3704 | </source> |
||
12918 | cbradney | 3705 | <translation type="obsolete">getColumns(["nom"]) -> integer |
1135 | cbradney | 3706 | |
3707 | Dóna el número de columnes del quadre de text "nom". Si no es dóna |
||
4890 | cbradney | 3708 | cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 3709 | </translation> |
3710 | </message> |
||
3711 | <message> |
||
3712 | <source>setText("text", ["name"]) |
||
3713 | |||
3714 | Sets the text of the text frame "name" to the text of the string "text". |
||
3715 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
3716 | for more details. If "name" is not given the currently selected item is |
||
3717 | used. |
||
3718 | </source> |
||
12918 | cbradney | 3719 | <translation type="obsolete">setText("text",["nom"]) |
1135 | cbradney | 3720 | |
3721 | Posa al quadre de text "name" el text contingut a la cadena "text". |
||
3722 | El text ha de ser codificat UTF8 - feu servir unicode(text, 'iso-8859-2'). Mireu el |
||
3723 | FAQ per més detalls. Si no es dóna cap "nom", es fa servir l'ítem |
||
4890 | cbradney | 3724 | sel·leccionat. |
1135 | cbradney | 3725 | </translation> |
3726 | </message> |
||
3727 | <message> |
||
3728 | <source>insertText("text", pos, ["name"]) |
||
3729 | |||
3730 | Inserts the text "text" at the position "pos" into the text frame. Text |
||
3731 | must be UTF encoded (see setText() as reference) The first character has an |
||
3732 | index of 0. "name" If "name" is not given the currently selected Item is |
||
3733 | used. |
||
3734 | |||
3735 | May throw IndexError for an insertion out of bounds. |
||
3736 | </source> |
||
3064 | cbradney | 3737 | <translation type="obsolete">insertText("text", pos, ["nom"]) |
1135 | cbradney | 3738 | |
3739 | Insereix el text "text" a la posició "pos" del quadre de text. Text ha de ser |
||
3740 | codificat UTF (mireu setText() per referència). El primer caràcter té un |
||
3741 | índex de 0. Si no es dóna cap "nom", es fa servir l'ítem |
||
3742 | sel.leccionat. |
||
3743 | |||
3744 | Pot provocar un IndexError al inserir fora de marges.</translation> |
||
3745 | </message> |
||
3746 | <message> |
||
3747 | <source>setFont("font", ["name"]) |
||
3748 | |||
3749 | Sets the font of the text frame "name" to "font". If there is some text |
||
3750 | selected only the selected text is changed. If "name" is not given the |
||
3751 | currently selected item is used. |
||
3752 | |||
3753 | May throw ValueError if the font cannot be found. |
||
3754 | </source> |
||
12918 | cbradney | 3755 | <translation type="obsolete">setFont("font",["nom]) |
1135 | cbradney | 3756 | |
3757 | Passa el quadre de text "nom" al tipus de lletra "font". Si hi ha alguna |
||
3758 | part de text seleccionada només canvia aquesta. Si no especifiquem "nom" |
||
3759 | es fa servir l'ítem seleccionat. |
||
3760 | |||
3761 | Pot generar ValueError si la font no es pot trobar. |
||
3762 | </translation> |
||
3763 | </message> |
||
3764 | <message> |
||
3765 | <source>setFontSize(size, ["name"]) |
||
3766 | |||
3767 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
3768 | as a value in points. If there is some text selected only the selected text is |
||
3769 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
3770 | currently selected item is used. |
||
3771 | |||
3772 | May throw ValueError for a font size that's out of bounds. |
||
3773 | </source> |
||
12918 | cbradney | 3774 | <translation type="obsolete">setFontSize(mida, ["nom"]) |
1135 | cbradney | 3775 | |
3776 | Estableix la mida de la font del quadre de text "nom" a "mida". "mida" |
||
3777 | ha de ser en punts. Si hi ha text seleccionat només es canvia |
||
3778 | aquest. "mida" ha de ser un valor entre 1 i 512. Si no especifiquem |
||
3779 | "nom" es fa servir l'ítem seleccionat. |
||
3780 | |||
3781 | Pot provocar ValueError per mides fora de rang. |
||
3782 | </translation> |
||
3783 | </message> |
||
3784 | <message> |
||
3785 | <source>setLineSpacing(size, ["name"]) |
||
3786 | |||
3787 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
3788 | "size" is a value in points. If "name" is not given the currently selected |
||
3789 | item is used. |
||
3790 | |||
3791 | May throw ValueError if the line spacing is out of bounds. |
||
3792 | </source> |
||
12918 | cbradney | 3793 | <translation type="obsolete">setLineSpacing(mida,["nom"]) |
1135 | cbradney | 3794 | |
3795 | Estableix l'espaiat de línia del quadre de text "nom" a "mida". |
||
3796 | "mida" està en punts. Si no especifiquem "nom" es fa servir l'ítem |
||
3797 | seleccionat. |
||
3798 | |||
3799 | Pot provocar ValueError si l'espaiat està fora de marges.</translation> |
||
3800 | </message> |
||
3801 | <message> |
||
3802 | <source>setColumnGap(size, ["name"]) |
||
3803 | |||
3804 | Sets the column gap of the text frame "name" to the value "size". If |
||
3805 | "name" is not given the currently selected item is used. |
||
3806 | |||
3807 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
3808 | </source> |
||
12918 | cbradney | 3809 | <translation type="obsolete">setColumnGap(mida,["nom"]) |
1135 | cbradney | 3810 | |
3811 | Estableix l'espai entre columnes del quadre de text "nom" a "mida". Si |
||
3812 | no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3813 | |||
3814 | Pot provocar ValueError si el valor està fora de rang (ha de ser positiu). |
||
3815 | </translation> |
||
3816 | </message> |
||
3817 | <message> |
||
3818 | <source>setColumns(nr, ["name"]) |
||
3819 | |||
3820 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
3821 | If "name" is not given the currently selected item is used. |
||
3822 | |||
3823 | May throw ValueError if number of columns is not at least one. |
||
3824 | </source> |
||
12918 | cbradney | 3825 | <translation type="obsolete">setColumns(nr, ["nom"]) |
1135 | cbradney | 3826 | |
3827 | Estableix que el quadre de text "nom" tindrà "nr" columnes. |
||
3828 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3829 | |||
3830 | Pot provocar ValueError si el número de columnes no és almenys una. |
||
3831 | </translation> |
||
3832 | </message> |
||
3833 | <message> |
||
3834 | <source>setTextAlignment(align, ["name"]) |
||
3835 | |||
3836 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
3837 | If "name" is not given the currently selected item is used. "align" should |
||
3838 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
3839 | |||
3840 | May throw ValueError for an invalid alignment constant. |
||
3841 | </source> |
||
12918 | cbradney | 3842 | <translation type="obsolete">setTextAlignment(alineacio, ["nom"]) |
1135 | cbradney | 3843 | |
3844 | Estableix l'alineació del quadre de text "nom" a la especificada. |
||
3845 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. "alineació" ha de ser |
||
3846 | una de les constants ALIGN_ definides en aquest mòdul - Mireu dir(scribus). |
||
3847 | |||
4890 | cbradney | 3848 | Pot provocar ValueError si posem una constant invàl·lida. |
1135 | cbradney | 3849 | </translation> |
3850 | </message> |
||
3851 | <message> |
||
3852 | <source>selectText(start, count, ["name"]) |
||
3853 | |||
3854 | Selects "count" characters of text in the text frame "name" starting from the |
||
3855 | character "start". Character counting starts at 0. If "count" is zero, any |
||
3856 | text selection will be cleared. If "name" is not given the currently |
||
3857 | selected item is used. |
||
3858 | |||
3859 | May throw IndexError if the selection is outside the bounds of the text. |
||
3860 | </source> |
||
12918 | cbradney | 3861 | <translation type="obsolete">selectText(inici, número, ["name"]) |
1135 | cbradney | 3862 | |
3863 | Seleccióna "número" caràcters del quadre de text "nom" començant pel |
||
3864 | caràcter "inici". Els caràcters comencen per 0. Si "número" és zero, es |
||
3865 | deselecciona tot el que hi pogués haver seleccionat. Si no especifiquem |
||
3866 | "nom" es fa servir l'ítem seleccionat. |
||
3867 | |||
3868 | Pot provocar un IndexError si la selecció és massa gran pel text. |
||
3869 | </translation> |
||
3870 | </message> |
||
3871 | <message> |
||
3872 | <source>deleteText(["name"]) |
||
3873 | |||
3874 | Deletes any text in the text frame "name". If there is some text selected, |
||
3875 | only the selected text will be deleted. If "name" is not given the currently |
||
3876 | selected item is used. |
||
3877 | </source> |
||
12918 | cbradney | 3878 | <translation type="obsolete">deleteText(["nom"]) |
1135 | cbradney | 3879 | |
3880 | Esborra qualsevol text del quadre de text "nom". Si hi ha algun text |
||
3881 | seleccionat només s'esborra la selecció. Si no especifiquem "nom" |
||
3882 | es fa servir l'ítem seleccionat. |
||
3883 | </translation> |
||
3884 | </message> |
||
3885 | <message> |
||
3886 | <source>setTextColor("color", ["name"]) |
||
3887 | |||
3888 | Sets the text color of the text frame "name" to the color "color". If there |
||
3889 | is some text selected only the selected text is changed. If "name" is not |
||
3890 | given the currently selected item is used. |
||
3891 | </source> |
||
12918 | cbradney | 3892 | <translation type="obsolete">setTextColor("color", ["nom"]) |
1135 | cbradney | 3893 | |
3894 | Posa el text del quadre de text "nom" al color "color". Si hi ha algun |
||
3895 | text seleccionat només es canvia el text seleccionat. Si no |
||
3896 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3897 | </translation> |
||
3898 | </message> |
||
3899 | <message> |
||
3900 | <source>setTextStroke("color", ["name"]) |
||
3901 | |||
3902 | Set "color" of the text stroke. If "name" is not given the currently |
||
3903 | selected item is used. |
||
3904 | </source> |
||
12918 | cbradney | 3905 | <translation type="obsolete">setTextStroke("color", ["nom"]) |