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