mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
104634fabb
commit
e6b8100fce
@ -100,7 +100,7 @@ class POT(Command): # {{{
|
|||||||
subprocess.check_call(['xgettext', '-f', fl.name,
|
subprocess.check_call(['xgettext', '-f', fl.name,
|
||||||
'--default-domain=calibre', '-o', out.name, '-L', 'Python',
|
'--default-domain=calibre', '-o', out.name, '-L', 'Python',
|
||||||
'--from-code=UTF-8', '--sort-by-file', '--omit-header',
|
'--from-code=UTF-8', '--sort-by-file', '--omit-header',
|
||||||
'--no-wrap', '-k__',
|
'--no-wrap', '-k__', '--add-comments=NOTE:',
|
||||||
])
|
])
|
||||||
subprocess.check_call(['xgettext', '-j',
|
subprocess.check_call(['xgettext', '-j',
|
||||||
'--default-domain=calibre', '-o', out.name,
|
'--default-domain=calibre', '-o', out.name,
|
||||||
@ -122,7 +122,7 @@ class POT(Command): # {{{
|
|||||||
return pot
|
return pot
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
class Translations(POT):
|
class Translations(POT): # {{{
|
||||||
description='''Compile the translations'''
|
description='''Compile the translations'''
|
||||||
DEST = os.path.join(os.path.dirname(POT.SRC), 'resources', 'localization',
|
DEST = os.path.join(os.path.dirname(POT.SRC), 'resources', 'localization',
|
||||||
'locales')
|
'locales')
|
||||||
@ -206,7 +206,7 @@ class Translations(POT):
|
|||||||
for x in (i, j, d):
|
for x in (i, j, d):
|
||||||
if os.path.exists(x):
|
if os.path.exists(x):
|
||||||
os.remove(x)
|
os.remove(x)
|
||||||
|
# }}}
|
||||||
|
|
||||||
class GetTranslations(Translations):
|
class GetTranslations(Translations):
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: calibre 0.8.9\n"
|
"Project-Id-Version: calibre 0.8.9\n"
|
||||||
"POT-Creation-Date: 2011-07-14 11:33+MDT\n"
|
"POT-Creation-Date: 2011-07-14 16:55+MDT\n"
|
||||||
"PO-Revision-Date: 2011-07-14 11:33+MDT\n"
|
"PO-Revision-Date: 2011-07-14 16:55+MDT\n"
|
||||||
"Last-Translator: Automatically generated\n"
|
"Last-Translator: Automatically generated\n"
|
||||||
"Language-Team: LANGUAGE\n"
|
"Language-Team: LANGUAGE\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -816,7 +816,7 @@ msgstr ""
|
|||||||
#: /home/kovid/work/calibre/src/calibre/db/backend.py:277
|
#: /home/kovid/work/calibre/src/calibre/db/backend.py:277
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:236
|
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:236
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:71
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:71
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:662
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:667
|
||||||
#: /home/kovid/work/calibre/src/calibre/library/database2.py:130
|
#: /home/kovid/work/calibre/src/calibre/library/database2.py:130
|
||||||
#: /home/kovid/work/calibre/src/calibre/library/database2.py:139
|
#: /home/kovid/work/calibre/src/calibre/library/database2.py:139
|
||||||
#, python-format
|
#, python-format
|
||||||
@ -3824,7 +3824,7 @@ msgstr ""
|
|||||||
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:235
|
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:235
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:289
|
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:289
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:70
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:70
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:661
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:666
|
||||||
msgid "Too long"
|
msgid "Too long"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -4010,8 +4010,8 @@ msgstr ""
|
|||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/plugin_updater.py:674
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/plugin_updater.py:674
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/restore_library.py:78
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/restore_library.py:78
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/user_profiles.py:370
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/user_profiles.py:370
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:464
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:469
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:470
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:477
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/columns.py:102
|
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/columns.py:102
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:93
|
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:93
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/plugins.py:281
|
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/plugins.py:281
|
||||||
@ -7166,7 +7166,7 @@ msgid "No location selected"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:100
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/choose_library.py:100
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:677
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:682
|
||||||
msgid "Bad location"
|
msgid "Bad location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -7443,19 +7443,19 @@ msgstr ""
|
|||||||
msgid "Details of job"
|
msgid "Details of job"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:49
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:48
|
||||||
msgid "Active Jobs"
|
msgid "Active Jobs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:50
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:49
|
||||||
msgid "&Stop selected job"
|
msgid "&Stop selected jobs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:51
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:50
|
||||||
msgid "Show job &details"
|
msgid "Show job &details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:52
|
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/jobs_ui.py:51
|
||||||
msgid "Stop &all non device jobs"
|
msgid "Stop &all non device jobs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -9539,31 +9539,33 @@ msgstr ""
|
|||||||
msgid "This job cannot be stopped"
|
msgid "This job cannot be stopped"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:286
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:287
|
||||||
msgid "Unavailable"
|
msgid "Unavailable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:330
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:333
|
||||||
msgid "Jobs:"
|
msgid "Jobs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:332
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:335
|
||||||
msgid "Shift+Alt+J"
|
msgid "Shift+Alt+J"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:349
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:352
|
||||||
msgid "Click to see list of jobs"
|
msgid "Click to see list of jobs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:418
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:422
|
||||||
msgid " - Jobs"
|
msgid " - Jobs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:464
|
|
||||||
msgid "Do you really want to stop the selected job?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:470
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:470
|
||||||
|
msgid "Do you really want to stop the selected job?"
|
||||||
|
msgid_plural "Do you really want to stop all the selected jobs?"
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/gui2/jobs.py:478
|
||||||
msgid "Do you really want to stop all non-device jobs?"
|
msgid "Do you really want to stop all non-device jobs?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -9816,7 +9818,7 @@ msgid "Cause a running calibre instance, if any, to be shutdown. Note that if th
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/main.py:69
|
#: /home/kovid/work/calibre/src/calibre/gui2/main.py:69
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:685
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:690
|
||||||
msgid "Calibre Library"
|
msgid "Calibre Library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -13785,16 +13787,16 @@ msgstr ""
|
|||||||
msgid "Could not move library"
|
msgid "Could not move library"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:657
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:662
|
||||||
msgid "Select location for books"
|
msgid "Select location for books"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:678
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:683
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You must choose an empty folder for the calibre library. %s is not empty."
|
msgid "You must choose an empty folder for the calibre library. %s is not empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:752
|
#: /home/kovid/work/calibre/src/calibre/gui2/wizard/__init__.py:757
|
||||||
msgid "welcome wizard"
|
msgid "welcome wizard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -15791,19 +15793,23 @@ msgstr ""
|
|||||||
msgid "Dutch (BE)"
|
msgid "Dutch (BE)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:152
|
#. NOTE: Ante Meridian (i.e. like 10:00 AM)
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:154
|
||||||
msgid "AM"
|
msgid "AM"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:153
|
#. NOTE: Post Meridian (i.e. like 10:00 PM)
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:156
|
||||||
msgid "PM"
|
msgid "PM"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:154
|
#. NOTE: Ante Meridian (i.e. like 10:00 am)
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:158
|
||||||
msgid "am"
|
msgid "am"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:155
|
#. NOTE: Post Meridian (i.e. like 10:00 pm)
|
||||||
|
#: /home/kovid/work/calibre/src/calibre/utils/localization.py:160
|
||||||
msgid "pm"
|
msgid "pm"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -149,9 +149,14 @@ _extra_lang_codes = {
|
|||||||
|
|
||||||
if False:
|
if False:
|
||||||
# Extra strings needed for Qt
|
# Extra strings needed for Qt
|
||||||
|
|
||||||
|
# NOTE: Ante Meridian (i.e. like 10:00 AM)
|
||||||
_('AM')
|
_('AM')
|
||||||
|
# NOTE: Post Meridian (i.e. like 10:00 PM)
|
||||||
_('PM')
|
_('PM')
|
||||||
|
# NOTE: Ante Meridian (i.e. like 10:00 am)
|
||||||
_('am')
|
_('am')
|
||||||
|
# NOTE: Post Meridian (i.e. like 10:00 pm)
|
||||||
_('pm')
|
_('pm')
|
||||||
|
|
||||||
_lcase_map = {}
|
_lcase_map = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user