[dots/remove-assistant: 30/38] Update translation
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots/remove-assistant: 30/38] Update translation
- Date: Thu, 15 Jul 2010 21:09:30 +0000 (UTC)
commit bae7cb9e5eb2d784051a497abb62865c28859821
Author: Fernando Herrera <fherrera onirica com>
Date: Wed Jul 14 21:29:38 2010 +0200
Update translation
bin/Makefile.am | 2 +-
bin/dotscmd | 44 ++++++++++++++++++--------------
po/POTFILES.in | 1 +
po/es.po | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++---
4 files changed, 97 insertions(+), 25 deletions(-)
---
diff --git a/bin/Makefile.am b/bin/Makefile.am
index f81e502..f896a53 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -1,4 +1,4 @@
-bin_SCRIPTS = dots
+bin_SCRIPTS = dots dotscmd
CLEANFILES = $(bin_SCRIPTS)
diff --git a/bin/dotscmd b/bin/dotscmd
index 0a3f089..aa91f01 100755
--- a/bin/dotscmd
+++ b/bin/dotscmd
@@ -19,59 +19,65 @@
import os
from sys import exit
-import host_settings
+from dots import host_settings
+
+import gettext
+gettext.bindtextdomain(host_settings.DOMAIN,host_settings.LOCALE_DIR)
+gettext.textdomain(host_settings.DOMAIN)
+_ = gettext.gettext
+
from optparse import OptionParser
-from config_builder import ConfigBuilder
-from document_builder import document_new
+from dots.config_builder import ConfigBuilder
+from dots.document_builder import document_new
usage = "usage: %prog [options] <input file>"
parser = OptionParser(usage=usage)
parser.add_option("-o", "--output", dest="output",
- help="write translation to OUTFILE", metavar="OUTFILE")
+ help=_("write translation to OUTFILE"), metavar="OUTFILE")
parser.add_option("-d", "--use-default-semantics", dest="use_default_semantics",
action="store_true", default=True,
- help="include default semantics for the input file type")
+ help=_("include default semantics for the input file type"))
parser.add_option("-a", "--add-semantics", dest="add_semantics", metavar="SEMANTICS", action="store",
- help="add extra semantics files separated by comas")
+ help=_("add extra semantics files separated by comas"))
parser.add_option("-n", "--network", dest="network",
action="store_true", default=True,
- help="access the network to download schemas")
+ help=_("access the network to download schemas"))
parser.add_option("-t", "--table", dest="table", metavar="TABLE", action="store",
- help="use TABLE as translation table for literary text")
+ help=_("use TABLE as translation table for literary text"))
parser.add_option("-c", "--cells", type="int", dest="cells",
- help="cells per line", default=40)
+ help=_("cells per line"), default=40)
parser.add_option("-l", "--lines", type="int", dest="lines",
- help="lines per page", default=25)
+ help=_("lines per page"), default=25)
parser.add_option("-p", "--page-numbers", dest="page_numbers",
action="store_true", default=True,
- help="include page number on every page")
+ help=_("include page number on every page"))
parser.add_option("-x", "--page-position", dest="page_position", metavar="POS", action="store", default="bottom",
- help="set position for page numbers, where POS is top or bottom")
+ help=_("set position for page numbers, where POS is top or bottom"))
(options, args) = parser.parse_args()
if len(args) != 1:
- parser.error("incorrect number of arguments")
+ parser.error(_("incorrect number of arguments"))
exit(1)
if not os.access(args[0], os.R_OK) or not os.path.isfile (args[0]):
- print ("Cannot open input file " + args[0])
+ print (_("Cannot open input file ") + args[0])
exit(1)
if options.table is None:
- parser.error("a translation table must be specified")
+ parser.error(_("a translation table must be specified"))
exit(1)
if options.page_position is not "top" and not "bottom":
- parser.error("page postion can only be top or bottom")
+ parser.error(_("page postion can only be top or bottom"))
exit(1)
if not os.access(options.table, os.R_OK) and not os.access(os.path.join (host_settings.tablesdir, options.table), os.R_OK):
- print ("Cannot open table " + options.table)
- print ("Installed tables are:")
+ print (_("Cannot open table ") + options.table)
+ print (_("Installed tables are:"))
for file in os.listdir(host_settings.tablesdir):
print "\t" + file
exit(1)
@@ -112,7 +118,7 @@ else:
try:
f = open (output_file, 'w')
except IOError, (errno, strerror):
- print "Cannot write to %s: %s" % (output_file, strerror)
+ print _("Cannot write to %s: %s" % (output_file, strerror))
exit(1)
f.write(d.get_braille_text ())
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 26ffc08..c7598cd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,4 +2,5 @@
[type: gettext/glade]data/app_window.xml
[type: gettext/glade]data/config.xml
dots/app_window.py
+dots/dotscmd.py
diff --git a/po/es.po b/po/es.po
index 06114dd..4c1dc73 100644
--- a/po/es.po
+++ b/po/es.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-07-14 20:59+0200\n"
+"POT-Creation-Date: 2010-07-14 21:23+0200\n"
"PO-Revision-Date: 2010-07-14 20:30+0200\n"
"Last-Translator: Fernando Herrera <fherrera onirica com>\n"
"Language-Team: Es <fherrera onirica com>\n"
@@ -68,7 +68,7 @@ msgstr "toolbutton2"
msgid "toolbutton3"
msgstr "toolbutton3"
-#: ../data/config.xml.h:1 ../dots/app_window.py:34
+#: ../data/config.xml.h:1
msgid "Bottom"
msgstr "Abajo"
@@ -92,14 +92,79 @@ msgstr "Mostrar números de página:"
msgid "Top"
msgstr "Arriba"
-#: ../dots/app_window.py:173
+#: ../dots/app_window.py:174
msgid "All files"
msgstr "Todos los ficheros"
-#: ../dots/app_window.py:178 ../dots/app_window.py:179
+#: ../dots/app_window.py:179 ../dots/app_window.py:180
msgid "Documents"
msgstr "Documentos"
-#: ../dots/app_window.py:287
+#: ../dots/app_window.py:288
msgid "Unsaved Document"
msgstr "Documento no Guardado"
+
+#: ../dots/dotscmd.py:39
+msgid "write translation to OUTFILE"
+msgstr "escribir traduccion a OUTFILE"
+
+#: ../dots/dotscmd.py:42
+msgid "include default semantics for the input file type"
+msgstr "include semánticas por defecto para el tipo de fichero de entrada"
+
+#: ../dots/dotscmd.py:44
+msgid "add extra semantics files separated by comas"
+msgstr "añadir ficheros extra de semánticas deparados por comas"
+
+#: ../dots/dotscmd.py:47
+msgid "access the network to download schemas"
+msgstr "acceder a la red para descargar esquemas"
+
+#: ../dots/dotscmd.py:49
+msgid "use TABLE as translation table for literary text"
+msgstr "usar TABLE como tabla de traducción para texto literario"
+
+#: ../dots/dotscmd.py:51
+msgid "cells per line"
+msgstr "celdas por lÃnea"
+
+#: ../dots/dotscmd.py:53
+msgid "lines per page"
+msgstr "lÃneas por página"
+
+#: ../dots/dotscmd.py:56
+msgid "include page number on every page"
+msgstr "incluir el número de página en cada lÃnea"
+
+#: ../dots/dotscmd.py:58
+msgid "set position for page numbers, where POS is top or bottom"
+msgstr "establece la posicion para los números de página, donde POS es top o bottom"
+
+#: ../dots/dotscmd.py:62
+msgid "incorrect number of arguments"
+msgstr "número incorrecto de argumentos"
+
+#: ../dots/dotscmd.py:66
+msgid "Cannot open input file "
+msgstr "no se puede abrir el fichero de entrada"
+
+#: ../dots/dotscmd.py:71
+msgid "a translation table must be specified"
+msgstr "hay que especificar una tabla de traducción"
+
+#: ../dots/dotscmd.py:75
+msgid "page postion can only be top or bottom"
+msgstr "la posicion del número de página solo puede ser top o bottom"
+
+#: ../dots/dotscmd.py:79
+msgid "Cannot open table "
+msgstr "No se puede abrir la tabla "
+
+#: ../dots/dotscmd.py:80
+msgid "Installed tables are:"
+msgstr "Las tablas instaladas son: "
+
+#: ../dots/dotscmd.py:121
+#, python-format
+msgid "Cannot write to %s: %s"
+msgstr "No se puede escribir a %s: %s"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]