Skip to content

Commit

Permalink
Update PO files with latest line numbers and a few new text labels
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcoder committed May 20, 2024
1 parent de537f0 commit 75eb76f
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 92 deletions.
7 changes: 7 additions & 0 deletions ui/locale/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ corresponding MO, e.g.:
pybabel compile -f -D canute -d . -l en_GB.UTF-8@ueb1 -i en_GB.UTF-8@ueb1/LC_MESSAGES/canute.po

To see tweaks applied in the past, check the git diff.
___

If you get the error `ModuleNotFoundError: No module named 'louis'` you may
need to run something like the following first:

export PYTHONPATH="$(brew --prefix liblouis)/lib/python3.12/site-packages:$PYTHONPATH"

8 changes: 8 additions & 0 deletions ui/locale/autotranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
'en-ueb-g1.ctb', 'en_GB.UTF-8@ueb1'),
Variant('British English, UEB grade 2',
'en-ueb-g2.ctb', 'en_GB.UTF-8@ueb2'),
Variant('Deutsch, UEB grade 2',
'de-g1.ctb', 'de_DE.UTF-8@ueb1'),
Variant('Deutsch, UEB grade 2',
'de-g2.ctb', 'de_DE.UTF-8@ueb2'),
]

for variant in variants:
Expand Down Expand Up @@ -86,6 +90,10 @@
dest_entry.msgstr = '⠠⠑⠝⠛⠇⠊⠎⠓⠂ ⠠⠠⠥⠑⠃ ⠛⠗⠁⠙⠑ ⠼⠁'
elif dest_entry.msgid == 'English, UEB grade 2':
dest_entry.msgstr = '⠠⠢⠛⠇⠊⠩⠂ ⠠⠠⠥⠑⠃ ⠛⠗⠁⠙⠑ ⠼⠃'
elif dest_entry.msgid == 'Deutsch, UEB grade 1':
dest_entry.msgstr = '⠙⠣⠞⠱⠂⠀⠥⠑⠃⠀⠛⠗⠁⠙⠑⠀⠼⠁'
elif dest_entry.msgid == 'Deutsch, UEB grade 2':
dest_entry.msgstr = '⠙⠱⠂⠀⠥⠑⠃⠀⠛⠗⠁⠙⠑⠀⠼⠃'
dest.append(dest_entry)

destdir = os.path.join(variant.locale, 'LC_MESSAGES')
Expand Down
98 changes: 71 additions & 27 deletions ui/locale/de_DE.UTF-8@ueb1/LC_MESSAGES/canute.po
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-06-15 19:52+0100\n"
"PO-Revision-Date: 2024-05-08 10:35+0200\n"
"POT-Creation-Date: 2024-05-20 13:12+0100\n"
"PO-Revision-Date: 2024-05-20 12:25+0000\n"
"Last-Translator: Ulf Beckmann <[email protected]>\n"
"Language-Team: German (Germany) (https://www.transifex.com/bristol-braille-technology/teams/87456/de_DE/)\n"
"Language: de_DE\n"
Expand All @@ -14,18 +15,27 @@ msgstr ""
"Generated-By: Babel 2.6.0\n"
"X-Generator: Poedit 3.4\n"

#: ui/i18n.py:44
#. TRANSLATORS: This is a language name menu item, so should always appear
#. in the language it denotes so that it remains readable to those who
#. speak only that language, just as "Deutsch" should always be left as
#. "Deutsch" in a language menu. Addition of a Braille grade marker seems
#. appropriate, if possible.
#: ui/i18n.py:39
msgid "English, UEB grade 1"
msgstr "⠠⠑⠝⠛⠇⠊⠎⠓⠂ ⠠⠠⠥⠑⠃ ⠛⠗⠁⠙⠑ ⠼⠁"

#. TRANSLATORS: This is a language name menu item.
#: ui/i18n.py:41
msgid "English, UEB grade 2"
msgstr "⠠⠑⠝⠛⠇⠊⠎⠓⠂ ⠠⠠⠥⠑⠃ ⠛⠗⠁⠙⠑ ⠼⠃"

#: ui/i18n.py:37
#. TRANSLATORS: This is a language name menu item.
#: ui/i18n.py:43
msgid "Deutsch, UEB grade 1"
msgstr "⠙⠣⠞⠱⠂⠀⠥⠑⠃⠀⠛⠗⠁⠙⠑⠀⠼⠁"

#: ui/i18n.py:44
#. TRANSLATORS: This is a language name menu item.
#: ui/i18n.py:45
msgid "Deutsch, UEB grade 2"
msgstr "⠙⠣⠞⠱⠂⠀⠥⠑⠃⠀⠛⠗⠁⠙⠑⠀⠼⠃"

Expand All @@ -46,9 +56,11 @@ msgstr ""
"⠥⠝⠞⠑⠗⠝⠑⠓⠍⠑⠝⠀⠧⠕⠝⠀⠛⠑⠍⠩⠝⠱⠁⠋⠞⠇⠊⠹⠑⠍⠀⠊⠝⠞⠑⠗⠑⠎⠎⠑⠄\n"
"⠉⠕⠍⠏⠁⠝⠽⠀⠝⠥⠍⠃⠑⠗⠀⠼⠛⠑⠁⠓⠁⠚⠁⠄\n"

#. TRANSLATORS: The AsciiDoc markup is used to suggest a page break
#. in this string.
#: ui/book/help.py:23
msgid ""
"With Canute 360 you can read files in Braille. You can move within a file using the three large control buttons on the front panel of Canute. Press the large button to the right of centre on the front panel labelled [forward] to move forward one page within this help file.\n"
"With Canute 360 you can read files in Braille. You can move within a file using the three large control buttons on the front panel of Canute. Press the large button to the right of centre on the front panel labelled \"forward\" to move forward one page within this help file.\n"
"\n"
"<<<\n"
"\n"
Expand Down Expand Up @@ -85,28 +97,36 @@ msgstr ""
"⠃⠥⠹⠀⠙⠥⠗⠹⠀⠙⠗⠳⠉⠅⠑⠝⠀⠙⠑⠗⠀⠇⠊⠝⠅⠑⠝⠀⠡⠎⠺⠁⠓⠇⠞⠁⠾⠑\n"
"⠝⠑⠃⠑⠝⠀⠙⠑⠍⠀⠶⠃⠊⠃⠇⠊⠕⠞⠓⠑⠅⠀⠍⠑⠝⠳⠶⠀⠡⠎⠺⠜⠓⠇⠑⠝⠄"

#: ui/book/view.py:11
#: ui/book/view.py:10
msgid "go to page"
msgstr "⠛⠑⠓⠑⠀⠵⠥⠗⠀⠎⠩⠞⠑"

#: ui/book/view.py:14
#: ui/book/view.py:13
msgid "insert bookmark at current page"
msgstr "⠇⠑⠎⠑⠵⠩⠹⠑⠝⠀⠁⠝⠀⠁⠅⠞⠥⠑⠇⠇⠑⠗⠀⠏⠕⠎⠊⠞⠊⠕⠝⠀⠩⠝⠋⠳⠛⠑⠝"

#: ui/book/view.py:15
#: ui/book/view.py:14
msgid "choose from existing bookmarks"
msgstr "⠇⠑⠎⠑⠵⠩⠹⠑⠝⠀⠡⠎⠺⠜⠓⠇⠑⠝"

#: ui/book/view.py:17
#: ui/book/view.py:16
msgid "view system menu"
msgstr "⠎⠽⠾⠑⠍⠍⠑⠝⠳⠀⠡⠎⠺⠜⠓⠇⠑⠝"

#: ui/book/view.py:18
#: ui/book/view.py:17
msgid "view library menu"
msgstr "⠃⠊⠃⠇⠊⠕⠞⠓⠑⠅⠎⠍⠑⠝⠳⠀⠡⠎⠺⠜⠓⠇⠑⠝"

#: ui/bookmarks/help.py:7
msgid "To navigate to a bookmark within a file press the line select button immediately to the left of your chosen bookmark. From the bookmark menu you can also navigate to the beginning of your book by selecting \"start of book\", or the end of a book by selecting \"end of book\", using the line select buttons. You can delete a bookmark by pressing and holding the line select button to the left of the bookmark you wish to delete for three seconds. You cannot delete the \"start of book\" or \"end of book\" bookmarks."
#: ui/bookmarks_menu/help.py:7
msgid ""
"To navigate to a bookmark within a file press the line select button "
"immediately to the left of your chosen bookmark. From the bookmark menu you "
"can also navigate to the beginning of your book by selecting \"start of "
"book\", or the end of a book by selecting \"end of book\", using the line "
"select buttons. You can delete a bookmark by pressing and holding the line "
"select button to the left of the bookmark you wish to delete for three "
"seconds. You cannot delete the \"start of book\" or \"end of book\" "
"bookmarks."
msgstr ""
"⠥⠍⠀⠩⠝⠀⠇⠑⠎⠑⠵⠩⠹⠑⠝⠀⠡⠎⠵⠥⠺⠜⠓⠇⠑⠝⠂⠀⠙⠗⠳⠉⠅⠑⠝⠀⠎⠬\n"
"⠙⠬⠀⠵⠩⠇⠑⠝⠡⠎⠺⠁⠓⠇⠞⠁⠾⠑ ⠇⠊⠝⠅⠎⠀⠝⠑⠃⠑⠝⠀⠙⠑⠍\n"
Expand All @@ -118,15 +138,16 @@ msgstr ""
"⠩⠝⠀⠇⠑⠎⠑⠵⠩⠹⠑⠝⠀⠇⠪⠱⠑⠝⠀⠊⠝⠙⠑⠍⠀⠎⠬⠀⠙⠬⠀⠵⠩⠇⠑⠝⠡⠎\n"
"⠺⠁⠓⠇⠞⠁⠾⠑⠀⠋⠳⠗⠀⠼⠉⠀⠎⠑⠅⠥⠝⠙⠑⠝⠀⠛⠑⠙⠗⠳⠉⠅⠞⠀⠓⠁⠇⠞⠑⠝⠄"

#: ui/bookmarks/view.py:27
#. TRANSLATORS: Bookmarks menu title; gets followed by book name
#: ui/bookmarks_menu/view.py:27
msgid "bookmarks:"
msgstr "⠇⠑⠎⠑⠵⠩⠹⠑⠝"

#: ui/bookmarks/view.py:35
#: ui/bookmarks_menu/view.py:35
msgid "start of book"
msgstr "⠾⠁⠗⠞⠀⠙⠑⠎⠀⠃⠥⠹⠑⠎"

#: ui/bookmarks/view.py:37
#: ui/bookmarks_menu/view.py:37
msgid "end of book"
msgstr "⠑⠝⠙⠑⠀⠙⠑⠎⠀⠃⠥⠹⠑⠎"

Expand Down Expand Up @@ -167,7 +188,11 @@ msgid "to go back to book press middle button"
msgstr "⠵⠥⠍⠀⠃⠥⠹⠀⠙⠗⠳⠉⠅⠑⠝⠀⠎⠬⠀⠃⠊⠞⠞⠑⠀⠶⠍⠑⠝⠳⠶"

#: ui/language/view.py:6
msgid "You can change the system language or Braille code by pressing the line select button to the left of your chosen language or code. The language or code in the contextual help, menus and system text will then change to your selected language."
msgid ""
"You can change the system language or Braille code by pressing the line "
"select button to the left of your chosen language or code. The language or "
"code in the contextual help, menus and system text will then change to your "
"selected language."
msgstr ""
"⠎⠬⠀⠅⠪⠝⠝⠑⠝⠀⠙⠬⠀⠎⠽⠾⠑⠍⠎⠏⠗⠁⠹⠑⠀⠕⠙⠑⠗⠀⠙⠑⠝\n"
"⠃⠗⠁⠊⠇⠇⠑⠅⠕⠙⠑⠀⠙⠥⠗⠹⠀⠙⠗⠳⠉⠅⠑⠝⠀⠙⠑⠗⠀⠡⠎⠺⠁⠓⠇⠞⠁⠾⠑\n"
Expand All @@ -180,7 +205,7 @@ msgstr ""
msgid "languages:"
msgstr "⠎⠏⠗⠁⠹⠑⠝"

#: ui/library/view.py:7
#: ui/library/view.py:12
msgid ""
"This is the library menu. From this menu you can view and select from the files on the memory stick or SD card. You can choose a file by pressing the line select button to the left of the file name. Canute 360 will then show your chosen file on the display. You can navigate forward and backwards within the library menu using the large buttons labelled \"forward\" and \"back\" on the front panel. You can return to the file you are currently reading by pressing the large central button labelled \"menu\".\n"
"\n"
Expand Down Expand Up @@ -211,11 +236,22 @@ msgstr ""
"⠅⠕⠾⠑⠝⠇⠕⠎⠑⠀⠕⠝⠇⠊⠝⠑⠤⠗⠕⠃⠕⠤⠃⠗⠁⠊⠇⠇⠑⠤⠙⠬⠝⠾\n"
"⠧⠑⠗⠋⠳⠛⠑⠝⠀⠃⠩⠙⠑⠀⠳⠃⠑⠗⠀⠩⠝⠑⠀⠊⠝⠞⠑⠛⠗⠬⠗⠞⠑\n"
"⠉⠁⠝⠥⠞⠑⠀⠼⠉⠋⠚⠤⠧⠕⠗⠩⠝⠾⠑⠇⠇⠥⠝⠛⠀⠋⠳⠗⠀⠙⠬⠀⠋⠕⠗⠍⠁⠞⠬⠗⠥⠝⠛⠄"
#: ui/library/view.py:56
msgid "go to book list"
msgstr "⠛⠕⠀⠞⠕⠀⠃⠕⠕⠅⠀⠇⠊⠾"

#: ui/library/view.py:48
msgid "library menu"
#: ui/library/view.py:74
msgid "LIBRARY menu"
msgstr "⠃⠊⠃⠇⠊⠕⠞⠓⠑⠎⠍⠑⠝⠳"

#: ui/library/view.py:84
msgid "back to directory list"
msgstr "⠃⠁⠉⠅⠀⠞⠕⠀⠙⠊⠗⠑⠉⠞⠕⠗⠽⠀⠇⠊⠾"

#: ui/library/view.py:90
msgid "more directories"
msgstr "⠍⠕⠗⠑⠀⠙⠊⠗⠑⠉⠞⠕⠗⠬⠎"

#: ui/system_menu/help.py:6
msgid ""
"This is the system menu. From the system menu you can make system wide changes to settings.\n"
Expand All @@ -234,31 +270,39 @@ msgstr ""
"⠛⠑⠜⠝⠙⠑⠗⠞⠀⠺⠊⠗⠙⠂⠀⠝⠊⠹⠞⠀⠚⠑⠙⠕⠹⠀⠙⠬⠀⠎⠏⠗⠁⠹⠑\n"
"⠕⠙⠑⠗⠀⠙⠑⠗⠀⠉⠕⠙⠑⠀⠧⠕⠝⠀⠙⠁⠞⠩⠑⠝⠀⠊⠝⠀⠙⠑⠗⠃⠊⠃⠇⠊⠕⠞⠓⠑⠅⠄"

#: ui/system_menu/system_menu.py:52
#: ui/system_menu/view.py:15
msgid "run in standalone mode"
msgstr "⠗⠥⠝⠀⠊⠝⠀⠾⠁⠝⠙⠁⠇⠕⠝⠑⠀⠍⠕⠙⠑"

#: ui/system_menu/view.py:19
msgid "emulated"
msgstr "⠑⠍⠥⠇⠬⠗⠑⠝"

#: ui/system_menu/system_menu.py:58
#: ui/system_menu/view.py:34
msgid "shutdown"
msgstr "⠡⠎⠱⠁⠇⠞⠑⠝"

#: ui/system_menu/system_menu.py:59
#: ui/system_menu/view.py:35
msgid "backup log to USB stick"
msgstr "⠏⠗⠕⠞⠕⠅⠕⠇⠇⠀⠡⠋⠀⠥⠎⠃⠤⠾⠊⠉⠅⠀⠎⠊⠹⠑⠗⠝"

#: ui/system_menu/system_menu.py:60
#: ui/system_menu/view.py:36
msgid "select language and code"
msgstr "⠛⠑⠺⠜⠓⠇⠞⠑⠀⠎⠏⠗⠁⠹⠑⠀⠥⠝⠙⠀⠅⠕⠙⠑"

#: ui/system_menu/system_menu.py:64
#: ui/system_menu/view.py:37
msgid "install upgrade from "
msgstr "⠊⠝⠾⠁⠇⠇⠀⠥⠏⠛⠗⠁⠙⠑⠀⠋⠗⠕⠍⠀"

#: ui/system_menu/view.py:40
msgid "release:"
msgstr "⠗⠑⠇⠑⠁⠎⠑"

#: ui/system_menu/system_menu.py:65
#: ui/system_menu/view.py:41
msgid "serial:"
msgstr "⠎⠑⠗⠊⠑⠝⠝⠥⠍⠍⠑⠗"

#: ui/system_menu/view.py:23
#: ui/system_menu/view.py:49
msgid "system menu"
msgstr "⠎⠽⠾⠑⠍⠍⠑⠝⠳"

Expand Down
Loading

0 comments on commit 75eb76f

Please sign in to comment.