IGN:Fix 'MMM yyyy' should not be translated.

This commit is contained in:
Kovid Goyal 2009-08-14 10:05:39 -06:00
parent 5c2ca385b5
commit 831ce503f4
2 changed files with 3 additions and 6 deletions

View File

@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: calibre 0.6.6\n"
"POT-Creation-Date: 2009-08-13 12:06+MDT\n"
"PO-Revision-Date: 2009-08-13 12:06+MDT\n"
"POT-Creation-Date: 2009-08-13 12:30+MDT\n"
"PO-Revision-Date: 2009-08-13 12:30+MDT\n"
"Last-Translator: Automatically generated\n"
"Language-Team: LANGUAGE\n"
"MIME-Version: 1.0\n"
@ -3688,10 +3688,6 @@ msgstr ""
msgid "Publishe&d:"
msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/metadata_single_ui.py:362
msgid "MMM yyyy"
msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/metadata_single_ui.py:363
msgid "&Comments"
msgstr ""

View File

@ -344,6 +344,7 @@ class gui(OptionlessCommand):
dat = dat.replace('from convert.xpath_wizard import',
'from calibre.gui2.convert.xpath_wizard import')
dat = re.compile(r'QtGui.QApplication.translate\(.+?,\s+"(.+?)(?<!\\)",.+?\)', re.DOTALL).sub(r'_("\1")', dat)
dat = dat.replace('_("MMM yyyy")', '"MMM yyyy"')
# Workaround bug in Qt 4.4 on Windows
if form.endswith('dialogs%sconfig.ui'%os.sep) or form.endswith('dialogs%slrf_single.ui'%os.sep):