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