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