From 8ad71a4bf6a3a93a5407d9b51190a5204d15969b Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 6 Oct 2003 10:11:38 +0000 Subject: [PATCH] Include options stuff. git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/Edit@3123 66de3db3-b00d-0410-b41b-f4738ad19bea --- Messages/es.po | 229 ++++++++++++++++++++++++++++++++++++++++++++++ Messages/it.po | 264 +++++++++++++++++++++++++++++++++++++---------------- Messages/tips.py | 41 +++++++++ Messages/update-po | 3 +- 4 files changed, 457 insertions(+), 80 deletions(-) create mode 100644 Messages/es.po create mode 100644 Messages/tips.py diff --git a/Messages/es.po b/Messages/es.po new file mode 100644 index 0000000..714e0e3 --- /dev/null +++ b/Messages/es.po @@ -0,0 +1,229 @@ +# Spanish translation for Edit. +# Copyright (C) 2003 Ensambl3 +# Nicolás de la Torre , 2003. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: Mon Oct 6 11:10:17 2003\n" +"PO-Revision-Date: 2003-10-05 23:34-0300\n" +"Last-Translator: Nicolás de la Torre \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: ENCODING\n" +"Generated-By: pygettext.py 1.4\n" + +#: EditWindow.py:34 +msgid "/File" +msgstr "/Archivo" + +#: EditWindow.py:35 EditWindow.py:36 EditWindow.py:37 EditWindow.py:38 +#: EditWindow.py:39 +msgid "/File/" +msgstr "/Archivo/" + +#: EditWindow.py:35 EditWindow.py:146 +msgid "Save" +msgstr "Salvar" + +#: EditWindow.py:36 +msgid "Open Parent" +msgstr "Abrir Origen" + +#: EditWindow.py:37 EditWindow.py:148 +msgid "Close" +msgstr "Cerrar" + +#: EditWindow.py:39 +msgid "New" +msgstr "Nuevo" + +#: EditWindow.py:41 +msgid "/Edit" +msgstr "/Editar" + +#: EditWindow.py:42 +msgid "Cut" +msgstr "Cortar" + +#: EditWindow.py:42 EditWindow.py:43 EditWindow.py:44 EditWindow.py:45 +#: EditWindow.py:46 EditWindow.py:47 EditWindow.py:48 EditWindow.py:49 +#: EditWindow.py:50 EditWindow.py:52 +msgid "/Edit/" +msgstr "/Editar/" + +#: EditWindow.py:43 +msgid "Copy" +msgstr "Copiar" + +#: EditWindow.py:44 +msgid "Paste" +msgstr "Pegar" + +#: EditWindow.py:46 EditWindow.py:143 +msgid "Undo" +msgstr "Deshacer" + +#: EditWindow.py:47 EditWindow.py:142 +msgid "Redo" +msgstr "Rehacer" + +#: EditWindow.py:49 +msgid "Search..." +msgstr "Buscar..." + +#: EditWindow.py:50 +msgid "Search and Replace...." +msgstr "Buscar y Reemplazar..." + +#: EditWindow.py:52 +msgid "Goto line..." +msgstr "Ir a linea..." + +#: EditWindow.py:54 +msgid "/Options" +msgstr "/Opciones" + +#: EditWindow.py:55 +msgid "/Help" +msgstr "/Ayuda" + +#: EditWindow.py:58 +msgid "Edit requires ROX-Lib2 1.9.8 or later" +msgstr "Edit requiere ROX-Lib2 1.9.8 o posterior" + +#: EditWindow.py:141 +msgid "Help" +msgstr "Ayuda" + +#: EditWindow.py:144 +msgid "Replace" +msgstr "Reemplazar" + +#: EditWindow.py:145 +msgid "Search" +msgstr "Buscar" + +#: EditWindow.py:147 +msgid "Up" +msgstr "Arriba" + +#: EditWindow.py:334 +msgid "Unknown encoding '%s'" +msgstr "Codificación desconocia '%s'" + +#: EditWindow.py:358 +msgid "" +"Data is not valid %s. Please select the file's encoding. Turn on 'ignore " +"errors' to try and load it anyway." +msgstr "" +"Los datos %s no son validos. Por favor elija la codificación para el " +"archivo. Seleccione 'ignorar errores' para probar y cargarlo de todas formas." + +#: EditWindow.py:396 +msgid "File is not saved to disk yet" +msgstr "El archivo no se a salvado en el disco todavia" + +#: EditWindow.py:539 +msgid "Minibuffer help" +msgstr "Ayuda Minibuffer" + +#: goto.py:10 +msgid "Goto line:" +msgstr "Ir a linea:" + +#: goto.py:12 +msgid "" +"Enter the line number to go to. Line numbers start from 1. Press Escape to " +"cancel, or Return to jump to the line." +msgstr "" +"Ingrese el número de linea para ir. Los números de lineas empiezan desde 1. " +"Presione Escape para cancelar, o intro para saltar a la linea." + +#: goto.py:22 +msgid "Invalid line number: %s" +msgstr "Número de linea invalida: %s" + +#: tips:1 +msgid "Display" +msgstr "" + +#: tips:2 +msgid "Fonts" +msgstr "" + +#: tips:3 +msgid "Text font" +msgstr "" + +#: tips:4 tips:5 +msgid "Font used for normal text." +msgstr "" + +#: tips:6 +#, fuzzy +msgid "Colours" +msgstr "Cerrar" + +#: tips:7 +msgid "Background colour" +msgstr "" + +#: tips:8 +msgid "Foreground colour" +msgstr "" + +#: tips:9 +msgid "Spacing" +msgstr "" + +#: tips:10 +msgid "Margins" +msgstr "" + +#: tips:11 tips:13 tips:16 tips:18 tips:20 tips:22 +msgid "pixels" +msgstr "" + +#: tips:12 +msgid "for left margin, and for the right:" +msgstr "" + +#: tips:14 +msgid "Paragraphs" +msgstr "" + +#: tips:15 +msgid "Space above paragraphs" +msgstr "" + +#: tips:17 +msgid "Space below paragraphs" +msgstr "" + +#: tips:19 +msgid "Line spacing within paragraphs" +msgstr "" + +#: tips:21 +msgid "New-paragraph indent" +msgstr "" + +#: tips:23 +#, fuzzy +msgid "Editing" +msgstr "/Editar" + +#: tips:24 +msgid "Indentation" +msgstr "" + +#: tips:25 +msgid "Automatic indentation" +msgstr "" + +#: tips:26 tips:27 tips:28 tips:29 +msgid "" +"When you press Return, the next line starts with the same amount of " +"indentation as the previous line." +msgstr "" diff --git a/Messages/it.po b/Messages/it.po index 6c99022..507d3f1 100644 --- a/Messages/it.po +++ b/Messages/it.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: Fri Oct 3 18:39:38 2003\n" +"POT-Creation-Date: Mon Oct 6 11:10:17 2003\n" "PO-Revision-Date: 2003-10-03 18:55+1\n" "Last-Translator: Roberto Inzerillo \n" "Language-Team: LANGUAGE \n" @@ -14,133 +14,123 @@ msgstr "" "Content-Transfer-Encoding: ENCODING\n" "Generated-By: pygettext.py 1.4\n" - -#: EditWindow.py:33 +#: EditWindow.py:34 msgid "/File" msgstr "/File" -#: EditWindow.py:34 -msgid "/File/Save" -msgstr "/File/Salva" +#: EditWindow.py:35 EditWindow.py:36 EditWindow.py:37 EditWindow.py:38 +#: EditWindow.py:39 +msgid "/File/" +msgstr "/File/" -#: EditWindow.py:35 -msgid "/File/Open Parent" -msgstr "/File/Apri Directory" +#: EditWindow.py:35 EditWindow.py:146 +msgid "Save" +msgstr "Salva" #: EditWindow.py:36 -msgid "/File/Close" -msgstr "/File/Chiudi" - -#: EditWindow.py:37 -msgid "/File/" -msgstr "/File/" +#, fuzzy +msgid "Open Parent" +msgstr "/File/Apri Directory" +#: EditWindow.py:37 EditWindow.py:148 +msgid "Close" +msgstr "Chiudi" -#: EditWindow.py:38 -msgid "/File/New" -msgstr "/File/Nuovo" +#: EditWindow.py:39 +msgid "New" +msgstr "" -#: EditWindow.py:40 +#: EditWindow.py:41 msgid "/Edit" msgstr "/Modifica" -#: EditWindow.py:41 -msgid "/Edit/Cut" -msgstr "/Modifica/Taglia" - #: EditWindow.py:42 -msgid "/Edit/Copy" -msgstr "/Modifica/Copia" - -#: EditWindow.py:43 -msgid "/Edit/Paste" -msgstr "/Modifica/Incolla" +msgid "Cut" +msgstr "" -#: EditWindow.py:44 EditWindow.py:47 +#: EditWindow.py:42 EditWindow.py:43 EditWindow.py:44 EditWindow.py:45 +#: EditWindow.py:46 EditWindow.py:47 EditWindow.py:48 EditWindow.py:49 +#: EditWindow.py:50 EditWindow.py:52 msgid "/Edit/" msgstr "/Modifica/" -#: EditWindow.py:45 -msgid "/Edit/Undo" -msgstr "/Modifica/Annulla" +#: EditWindow.py:43 +msgid "Copy" +msgstr "" + +#: EditWindow.py:44 +#, fuzzy +msgid "Paste" +msgstr "/Modifica/Incolla" -#: EditWindow.py:46 -msgid "/Edit/Redo" -msgstr "/Modifica/Ripeti" +#: EditWindow.py:46 EditWindow.py:143 +msgid "Undo" +msgstr "Annulla" -#: EditWindow.py:48 -msgid "/Edit/Search..." -msgstr "/Modifica/Cerca..." +#: EditWindow.py:47 EditWindow.py:142 +msgid "Redo" +msgstr "Ripeti" #: EditWindow.py:49 -msgid "/Edit/Search and Replace...." +#, fuzzy +msgid "Search..." +msgstr "Cerca" + +#: EditWindow.py:50 +#, fuzzy +msgid "Search and Replace...." msgstr "/Modifica/Cerca e Sotituisci" -#: EditWindow.py:51 -msgid "/Edit/Goto line..." -msgstr "/Modifica/Vai alla riga..." +#: EditWindow.py:52 +#, fuzzy +msgid "Goto line..." +msgstr "Vai alla riga:" -#: EditWindow.py:53 +#: EditWindow.py:54 msgid "/Options" msgstr "/Opzioni" -#: EditWindow.py:54 EditWindow.py:430 +#: EditWindow.py:55 msgid "/Help" msgstr "/Aiuto" -#: EditWindow.py:57 +#: EditWindow.py:58 msgid "Edit requires ROX-Lib2 1.9.8 or later" msgstr "Edit necessita di ROX-Lib2 1.9.8 o più recente" -#: EditWindow.py:140 +#: EditWindow.py:141 msgid "Help" msgstr "Aiuto" -#: EditWindow.py:141 -msgid "Redo" -msgstr "Ripeti" - -#: EditWindow.py:142 -msgid "Undo" -msgstr "Annulla" - -#: EditWindow.py:143 +#: EditWindow.py:144 msgid "Replace" msgstr "Sostituisci" -#: EditWindow.py:144 +#: EditWindow.py:145 msgid "Search" msgstr "Cerca" -#: EditWindow.py:145 -msgid "Save" -msgstr "Salva" - -#: EditWindow.py:146 +#: EditWindow.py:147 msgid "Up" msgstr "Apri directory" -#: EditWindow.py:147 -msgid "Close" -msgstr "Chiudi" - -#: EditWindow.py:333 -msgid "Unknown encoding %s" +#: EditWindow.py:334 +#, fuzzy +msgid "Unknown encoding '%s'" msgstr "Codifica % sconosciuta" -#: EditWindow.py:357 -msgid "Data is not valid %s. Please select the file's encoding." -msgstr "I dati non sono %s validi. Scegliere la codifica del file." - #: EditWindow.py:358 -msgid "Turn on 'ignore errors' to try and load it anyway." -msgstr "Attiva 'ignora errori' per per provare a caricarlo comunque" +#, fuzzy +msgid "" +"Data is not valid %s. Please select the file's encoding. Turn on 'ignore " +"errors' to try and load it anyway." +msgstr "I dati non sono %s validi. Scegliere la codifica del file." -#: EditWindow.py:394 +#: EditWindow.py:396 msgid "File is not saved to disk yet" msgstr "Il file non è ancora stato salvato sul disco" -#: EditWindow.py:537 +#: EditWindow.py:539 msgid "Minibuffer help" msgstr "Aiuto del Minibuffer" @@ -149,13 +139,129 @@ msgid "Goto line:" msgstr "Vai alla riga:" #: goto.py:12 +#, fuzzy msgid "" -"Enter the line number to go to. Line numbers start from 1.\n" -"Press Escape to cancel, or Return to jump to the line." +"Enter the line number to go to. Line numbers start from 1. Press Escape to " +"cancel, or Return to jump to the line." msgstr "" -"Scrivi il numero della riga alla quale andare. Le righe iniziano dalla numero 1.\n" +"Scrivi il numero della riga alla quale andare. Le righe iniziano dalla " +"numero 1.\n" "Premi ESC per annullare, oppure INVIO per andare alla riga scelta." #: goto.py:22 msgid "Invalid line number: %s" msgstr "Numero di riga non valido: %" + +#: tips:1 +msgid "Display" +msgstr "" + +#: tips:2 +msgid "Fonts" +msgstr "" + +#: tips:3 +msgid "Text font" +msgstr "" + +#: tips:4 tips:5 +msgid "Font used for normal text." +msgstr "" + +#: tips:6 +#, fuzzy +msgid "Colours" +msgstr "Chiudi" + +#: tips:7 +msgid "Background colour" +msgstr "" + +#: tips:8 +msgid "Foreground colour" +msgstr "" + +#: tips:9 +msgid "Spacing" +msgstr "" + +#: tips:10 +msgid "Margins" +msgstr "" + +#: tips:11 tips:13 tips:16 tips:18 tips:20 tips:22 +msgid "pixels" +msgstr "" + +#: tips:12 +msgid "for left margin, and for the right:" +msgstr "" + +#: tips:14 +msgid "Paragraphs" +msgstr "" + +#: tips:15 +msgid "Space above paragraphs" +msgstr "" + +#: tips:17 +msgid "Space below paragraphs" +msgstr "" + +#: tips:19 +msgid "Line spacing within paragraphs" +msgstr "" + +#: tips:21 +msgid "New-paragraph indent" +msgstr "" + +#: tips:23 +#, fuzzy +msgid "Editing" +msgstr "/Modifica" + +#: tips:24 +msgid "Indentation" +msgstr "" + +#: tips:25 +msgid "Automatic indentation" +msgstr "" + +#: tips:26 tips:27 tips:28 tips:29 +msgid "" +"When you press Return, the next line starts with the same amount of " +"indentation as the previous line." +msgstr "" + +#~ msgid "/File/Save" +#~ msgstr "/File/Salva" + +#~ msgid "/File/Close" +#~ msgstr "/File/Chiudi" + +#~ msgid "/File/New" +#~ msgstr "/File/Nuovo" + +#~ msgid "/Edit/Cut" +#~ msgstr "/Modifica/Taglia" + +#~ msgid "/Edit/Copy" +#~ msgstr "/Modifica/Copia" + +#~ msgid "/Edit/Undo" +#~ msgstr "/Modifica/Annulla" + +#~ msgid "/Edit/Redo" +#~ msgstr "/Modifica/Ripeti" + +#~ msgid "/Edit/Search..." +#~ msgstr "/Modifica/Cerca..." + +#~ msgid "/Edit/Goto line..." +#~ msgstr "/Modifica/Vai alla riga..." + +#~ msgid "Turn on 'ignore errors' to try and load it anyway." +#~ msgstr "Attiva 'ignora errori' per per provare a caricarlo comunque" diff --git a/Messages/tips.py b/Messages/tips.py new file mode 100644 index 0000000..19e9592 --- /dev/null +++ b/Messages/tips.py @@ -0,0 +1,41 @@ +# Grab the tips from Options.xml + +from xmllib import * +import string, os + +print "Extracting translatable bits from Options.xml..." + +class Parser(XMLParser): + data = "" + + def unknown_starttag(self, tag, attrs): + for x in ['title', 'label', 'end', 'unit']: + if attrs.has_key(x): + self.trans(attrs[x]) + self.data = "" + + def handle_data(self, data): + self.data = self.data + data + + def unknown_endtag(self, tag): + data = string.strip(self.data) + if data: + self.trans(data) + + def trans(self, data): + data = string.join(string.split(data, '\n'), '\\n') + if data: + out.write('_("%s")\n' % data) + +try: + os.chdir("po") +except OSError: + pass + +file = open('../Options.xml', 'rb') +out = open('../tips', 'wb') +parser = Parser() +parser.feed(file.read()) +file.close() +parser.close() +out.close() diff --git a/Messages/update-po b/Messages/update-po index 1583e24..dba7ff2 100755 --- a/Messages/update-po +++ b/Messages/update-po @@ -3,7 +3,8 @@ echo Extracting messages from source files... echo -(cd ..; pygettext *.py) +python ./tips.py +(cd ..; pygettext *.py tips) echo echo Updating all .po files... -- 2.11.4.GIT