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