From e209345f1c7a08397fe32f397c69e9e82778d9bf Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 27 Dec 2021 13:21:06 -0800 Subject: [PATCH] Found an untranslated string + more Swedish translation tweaks (#569) * Add flask_babel 2.0.0 to requirements * Partial i18n * Use current locale for protobuf requests * Don't store generated messages.pot in git * Internationalize all python code * Formatting fixes * Partial internationalization of html * Iterate on html i18n * Completed i18n of code * Improve i18n of strings * Blurb about i18n in the readme * Improve i18n strings * Add the compiled messages.mo files to .gitignore * Add complete Swedish localization * Generate localizations in start.sh * Only compile messages.mo in start.sh; better sequence * Fix bug * Flesh out readme * Flesh out readme * Tweak Swedish translations * Add to readme * Update Swedish translation --- src/web/README.md | 2 +- src/web/templates/base.html | 2 +- .../translations/sv/LC_MESSAGES/messages.po | 25 ++++++++++--------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/web/README.md b/src/web/README.md index 2dde4d34..e5ea75bc 100644 --- a/src/web/README.md +++ b/src/web/README.md @@ -74,4 +74,4 @@ Install the gettext package and use msgfmt to see the translation progress. $ sudo apt install gettext $ cd src/web/ $ msgfmt --statistics translations/sv/LC_MESSAGES/messages.po -215 translated messages. +215 translated messages, 1 untranslated message. diff --git a/src/web/templates/base.html b/src/web/templates/base.html index 5465227a..dded5f63 100644 --- a/src/web/templates/base.html +++ b/src/web/templates/base.html @@ -1,7 +1,7 @@ -RaSCSI Control Page + {{ _("RaSCSI Control Page") }} diff --git a/src/web/translations/sv/LC_MESSAGES/messages.po b/src/web/translations/sv/LC_MESSAGES/messages.po index ef76d3fd..e774ad13 100644 --- a/src/web/translations/sv/LC_MESSAGES/messages.po +++ b/src/web/translations/sv/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RaSCSI 68kmla Edition\n" "Report-Msgid-Bugs-To: https://github.com/akuker/RASCSI/issues\n" -"POT-Creation-Date: 2021-12-25 23:33-0800\n" +"POT-Creation-Date: 2021-12-26 21:59-0800\n" "PO-Revision-Date: 2021-12-24 16:16-0800\n" "Last-Translator: Daniel Markstedt \n" "Language: sv\n" @@ -397,6 +397,10 @@ msgstr "En eller flera egenskapsfiler har blivit flyttade till %(directory)s" msgid "Failed to unzip %(zip_file)s" msgstr "Kunde ej packa up %(zip_file)s" +#: templates/base.html:4 +msgid "RaSCSI Control Page" +msgstr "RaSCSI kontrollsida" + #: templates/base.html:29 msgid "" " This process may take a while, and will continue in the background if " @@ -439,9 +443,10 @@ msgid "Web Interface Authentication Disabled" msgstr "Webbgränssnittets autensisering är avstängt" #: templates/base.html:60 -msgid "See Wiki for more information" +#, python-format +msgid "See Wiki for more information" msgstr "" -"Referera till wikin för vidare " +"Referera till wikin för vidare " "information" #: templates/base.html:87 @@ -690,8 +695,8 @@ msgid "" "If RaSCSI was unable to detect the device type associated with the image," " you can choose the type from the dropdown." msgstr "" -"Om RaSCSI inte känner igen enhetstypen för en skivbild kan du välja " -"en enhetstyp från rullgardinsmenyn." +"Om RaSCSI inte känner igen enhetstypen för en skivbild kan du välja en " +"enhetstyp från rullgardinsmenyn." #: templates/index.html:159 msgid "" @@ -831,9 +836,9 @@ msgid "" "CD-ROM images to '.iso', and removable drive images to '.hdr' before " "uploading." msgstr "" -"Om RaSCSI inte känner igen in filtyp kan du försöka döpa om hårddiskbildfiler till " -"'.hds', cd-bildfiler till '.iso', och utmatbara bildfiler till '.hdr' " -"innan du laddar upp den." +"Om RaSCSI inte känner igen en filtyp kan du försöka döpa om " +"hårddiskbildfiler till '.hds', cd-bildfiler till '.iso', och utmatbara " +"bildfiler till '.hdr' innan du laddar upp den." #: templates/index.html:356 #, python-format @@ -1121,7 +1126,3 @@ msgstr "Stänger av Raspberry Pi..." #: templates/index.html:633 msgid "Shut Down Raspberry Pi" msgstr "Stäng av Raspberry Pi" - -#~ msgid "Saved config to %(file_name)" -#~ msgstr "Sparade konfigurationsfilen som %(file_name)s" -