[Python-apps-commits] r7235 - in packages/writetype/trunk/debian/patches (translations.patch)
miriam at users.alioth.debian.org
miriam at users.alioth.debian.org
Sun Jun 26 11:38:46 UTC 2011
Date: Sunday, June 26, 2011 @ 11:38:45
Author: miriam
Revision: 7235
Improved translations
Modified:
packages/writetype/trunk/debian/patches/translations.patch
Modified: packages/writetype/trunk/debian/patches/translations.patch
===================================================================
--- packages/writetype/trunk/debian/patches/translations.patch 2011-06-25 20:00:06 UTC (rev 7234)
+++ packages/writetype/trunk/debian/patches/translations.patch 2011-06-26 11:38:45 UTC (rev 7235)
@@ -18,7 +18,7 @@
printf "aboutrevno = `bzr revno`" > writetype/revno.py
--- /dev/null
+++ writetype-1.2.130/translations/qt_es.ts
-@@ -0,0 +1,714 @@
+@@ -0,0 +1,724 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS><TS version="1.1">
+<context>
@@ -514,6 +514,16 @@
+ <source>Invalid, no sentences found.</source>
+ <translation>No es válido, no se han encontrado frases completas.</translation>
+ </message>
++ <message>
++ <location filename="main.py" line="225"/>
++ <source>All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)</source>
++ <translation>Todos los archivos compatibles (*.wtd *.htm *.html *.txt);;Documentos de WriteType (*.wtd);;Texto con formato (*.html *.htm);;Todos los archivos (*.*)</translation>
++ </message>
++ <message>
++ <location filename="main.py" line="258"/>
++ <source>WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)</source>
++ <translation>Documento de WriteType (*.wtd);;Texto con formato (*.html);;Texto plano (*.txt)</translation>
++ </message>
+</context>
+<context>
+ <name>distractionFree</name>
@@ -633,7 +643,7 @@
+ <message>
+ <location filename="settingsDialog.py" line="243"/>
+ <source>Check document for grammar mistakes</source>
-+ <translation>Revisar el documento por errores gramaticales</translation>
++ <translation>Revisar el documento en busca de errores gramaticales</translation>
+ </message>
+ <message>
+ <location filename="settingsDialog.py" line="246"/>
@@ -1023,7 +1033,7 @@
<location filename="mainwindow.py" line="510"/>
<source>Check for Updates</source>
<translation type="unfinished"></translation>
-@@ -474,6 +474,27 @@
+@@ -474,6 +474,37 @@
</message>
</context>
<context>
@@ -1046,12 +1056,22 @@
+ <source>Invalid, no sentences found.</source>
+ <translation type="unfinished"></translation>
+ </message>
++ <message>
++ <location filename="main.py" line="225"/>
++ <source>All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <location filename="main.py" line="258"/>
++ <source>WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)</source>
++ <translation type="unfinished"></translation>
++ </message>
+</context>
+<context>
<name>distractionFree</name>
<message>
<location filename="distractionFree.py" line="32"/>
-@@ -519,6 +540,11 @@
+@@ -519,6 +550,11 @@
<translation type="unfinished"></translation>
</message>
<message>
@@ -1063,7 +1083,7 @@
<location filename="settingsDialog.py" line="227"/>
<source>Try to guess misspellings</source>
<translation type="unfinished"></translation>
-@@ -549,6 +575,11 @@
+@@ -549,6 +585,11 @@
<translation type="unfinished"></translation>
</message>
<message>
@@ -1075,7 +1095,7 @@
<location filename="settingsDialog.py" line="234"/>
<source>Auto-correction settings</source>
<translation type="unfinished"></translation>
-@@ -559,6 +590,11 @@
+@@ -559,6 +600,11 @@
<translation type="unfinished"></translation>
</message>
<message>
@@ -1087,7 +1107,7 @@
<location filename="settingsDialog.py" line="237"/>
<source>Default Font:</source>
<translation type="unfinished"></translation>
-@@ -594,6 +630,16 @@
+@@ -594,6 +640,16 @@
<translation type="unfinished"></translation>
</message>
<message>
@@ -1104,7 +1124,7 @@
<location filename="settingsDialog.py" line="246"/>
<source>Other</source>
<translation type="unfinished"></translation>
-@@ -613,31 +659,6 @@
+@@ -613,31 +669,6 @@
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
@@ -1285,7 +1305,7 @@
<source>WriteType was unable to save the log file. Please check the file extension, ensure that the selected file is writable, and try again.</source>
<translation type="unfinished"></translation>
</message>
-@@ -533,6 +533,27 @@
+@@ -533,6 +533,37 @@
</message>
</context>
<context>
@@ -1308,6 +1328,16 @@
+ <source>Invalid, no sentences found.</source>
+ <translation type="unfinished"></translation>
+ </message>
++ <message>
++ <location filename="main.py" line="225"/>
++ <source>All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <location filename="main.py" line="258"/>
++ <source>WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)</source>
++ <translation type="unfinished"></translation>
++ </message>
+</context>
+<context>
<name>distractionFree</name>
@@ -1459,7 +1489,7 @@
<source>WriteType was unable to save the log file. Please check the file extension, ensure that the selected file is writable, and try again.</source>
<translation type="unfinished"></translation>
</message>
-@@ -484,6 +484,27 @@
+@@ -484,6 +484,37 @@
</message>
</context>
<context>
@@ -1482,6 +1512,16 @@
+ <source>Invalid, no sentences found.</source>
+ <translation type="unfinished"></translation>
+ </message>
++ <message>
++ <location filename="main.py" line="225"/>
++ <source>All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <location filename="main.py" line="258"/>
++ <source>WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)</source>
++ <translation type="unfinished"></translation>
++ </message>
+</context>
+<context>
<name>distractionFree</name>
@@ -1507,6 +1547,24 @@
import resources_rc
import enchant
from enchant.tokenize import get_tokenizer
+@@ -221,7 +222,7 @@
+
+ def openDialog(self):
+ """Display a dialog to open a file"""
+- filename = QtGui.QFileDialog.getOpenFileName(self, self.tr("Open file"), platformSettings.getPlatformSetting('defaultOpenDirectory'), "All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)")
++ filename = QtGui.QFileDialog.getOpenFileName(self, self.tr("Open file"), platformSettings.getPlatformSetting('defaultOpenDirectory'), QCoreApplication.translate("WriteTypeMain", "All Compatible Files (*.wtd *.htm *.html *.txt);;WriteType Document (*.wtd);;Formatted Text (*.html *.htm);;All Files (*.*)"))
+ self.openFile(filename)
+
+ def openFile(self, filename):
+@@ -254,7 +255,7 @@
+
+ def saveFileAs(self):
+ """Prompt the user on where to save the current document"""
+- filename = QtGui.QFileDialog.getSaveFileName(self, self.tr("Save file"), platformSettings.getPlatformSetting('defaultOpenDirectory'), "WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)")
++ filename = QtGui.QFileDialog.getSaveFileName(self, self.tr("Save file"), platformSettings.getPlatformSetting('defaultOpenDirectory'), QCoreApplication.translate("WriteTypeMain", "WriteType Document (*.wtd);;Formatted Text (*.html);;Plain Text (*.txt)"))
+ if not filename:
+ return
+ self.filename = filename
@@ -666,7 +667,7 @@
readability = 4.71*(float(chars)/words) + .5*(float(words)/sentences) - 21.43
self.statisticsDialog.ui.readabilityLabel.setText(str(round(readability, 1)))
More information about the Python-apps-commits
mailing list