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