Fix translation string with format

This commit is contained in:
Romain Failliot 2021-11-27 18:36:28 -05:00
parent 731bd1efd4
commit ec7d8adde2
16 changed files with 63 additions and 60 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Jindřich Šesták <khagaroth@gmail.com>\n" "Last-Translator: Jindřich Šesták <khagaroth@gmail.com>\n"
"Language-Team: NONE <NONE>\n" "Language-Team: NONE <NONE>\n"
@ -887,9 +887,9 @@ msgid "Preferences"
msgstr "Předvolby" msgstr "Předvolby"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Při zpracování řádku %(line)d souboru %(file)s došlo k chybě." msgstr "Při zpracování řádku {line} souboru {file} došlo k chybě."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2021-01-26 04:29+0100\n" "PO-Revision-Date: 2021-01-26 04:29+0100\n"
"Last-Translator: Henri Menke <henrimenke4@aim.com>\n" "Last-Translator: Henri Menke <henrimenke4@aim.com>\n"
"Language-Team: German <henrimenke4@aim.com>\n" "Language-Team: German <henrimenke4@aim.com>\n"
@ -882,9 +882,9 @@ msgid "Preferences"
msgstr "Einstellungen" msgstr "Einstellungen"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Fehler bei der Analyse der Zeilen %(line)d von %(file)s." msgstr "Fehler bei der Analyse der Zeilen {line} von {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -814,7 +814,8 @@ msgid "Preferences"
msgstr "" msgstr ""
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
msgid "Error processing line {i + 1} of {file_name}." #, python-brace-format
msgid "Error processing line {line} of {file}."
msgstr "" msgstr ""
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: David Marín Carreño <davefx@gmail.com>\n" "Last-Translator: David Marín Carreño <davefx@gmail.com>\n"
"Language-Team: Spanish <henrimenke4@aim.com>\n" "Language-Team: Spanish <henrimenke4@aim.com>\n"
@ -876,9 +876,9 @@ msgid "Preferences"
msgstr "Preferencias" msgstr "Preferencias"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Error procesando línea %(line)d de %(file)s." msgstr "Error procesando línea {line} de {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Diffuse 0.4.4\n" "Project-Id-Version: Diffuse 0.4.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Cristian Marchi <cri.penta@gmail.com>\n" "Last-Translator: Cristian Marchi <cri.penta@gmail.com>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -879,9 +879,9 @@ msgid "Preferences"
msgstr "Preferenze" msgstr "Preferenze"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Errore nell'elaborare la riga %(line)d di «%(file)s»." msgstr "Errore nell'elaborare la riga {line} di «{file}»."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn r316\n" "Project-Id-Version: diffuse-svn r316\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Derrick Moser <derrick_moser@yahoo.com>\n" "Last-Translator: Derrick Moser <derrick_moser@yahoo.com>\n"
"Language-Team: Japanese\n" "Language-Team: Japanese\n"
@ -875,9 +875,9 @@ msgid "Preferences"
msgstr "設定" msgstr "設定"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "%(file)s の %(line)d行 を処理しているときにエラーが生じました。" msgstr "{file} の {line}行 を処理しているときにエラーが生じました。"
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn r316\n" "Project-Id-Version: diffuse-svn r316\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Kang Bundo <bundo@bundo.biz>\n" "Last-Translator: Kang Bundo <bundo@bundo.biz>\n"
"Language-Team: Korean\n" "Language-Team: Korean\n"
@ -871,9 +871,9 @@ msgid "Preferences"
msgstr "기본 설정" msgstr "기본 설정"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "%(file)s %(line)d 행을 처리하는 도중 오류가 발생했습니다." msgstr "{file} {line} 행을 처리하는 도중 오류가 발생했습니다."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-0.4.8\n" "Project-Id-Version: diffuse-0.4.8\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Miś Uszatek <adres.email@ymail.com>, 2012\n" "Last-Translator: Miś Uszatek <adres.email@ymail.com>, 2012\n"
"Language-Team: Polish <manpages-pl-list@lists.sourceforge.net>\n" "Language-Team: Polish <manpages-pl-list@lists.sourceforge.net>\n"
@ -865,9 +865,9 @@ msgid "Preferences"
msgstr "Preferencje" msgstr "Preferencje"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Błąd przetwarzania linii %(line)d w %(file)s." msgstr "Błąd przetwarzania linii {line} w {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Pedro Albuquerque <pmra@gmx.com>\n" "Last-Translator: Pedro Albuquerque <pmra@gmx.com>\n"
"Language-Team: Português <pmra@gmx.com>\n" "Language-Team: Português <pmra@gmx.com>\n"
@ -882,9 +882,9 @@ msgid "Preferences"
msgstr "Preferências" msgstr "Preferências"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Erro ao processar a linha %(line)d de %(file)s." msgstr "Erro ao processar a linha {line} de {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2021-11-05 14:49-0400\n" "PO-Revision-Date: 2021-11-05 14:49-0400\n"
"Last-Translator: Pedro Albuquerque <pmra@gmx.com>\n" "Last-Translator: Pedro Albuquerque <pmra@gmx.com>\n"
"Language-Team: Português <pmra@gmx.com>\n" "Language-Team: Português <pmra@gmx.com>\n"
@ -884,9 +884,9 @@ msgid "Preferences"
msgstr "Preferências" msgstr "Preferências"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Erro ao processar a linha %(line)d de %(file)s." msgstr "Erro ao processar a linha {line} de {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse-svn\n" "Project-Id-Version: diffuse-svn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Oleg Pakhtusov <opakhtusov@gmail.com>\n" "Last-Translator: Oleg Pakhtusov <opakhtusov@gmail.com>\n"
"Language-Team: Russian <opakhtusov@gmail.com>\n" "Language-Team: Russian <opakhtusov@gmail.com>\n"
@ -886,9 +886,9 @@ msgid "Preferences"
msgstr "Предпочтения" msgstr "Предпочтения"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Ошибка обработки строки %(line)d из %(file)s." msgstr "Ошибка обработки строки {line} из {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2021-01-17 22:14+0100\n" "PO-Revision-Date: 2021-01-17 22:14+0100\n"
"Last-Translator: Åke Engelbrektson <eson@svenskasprakfiler.se>\n" "Last-Translator: Åke Engelbrektson <eson@svenskasprakfiler.se>\n"
"Language-Team: Svenska Språkfiler <contactform@svenskasprakfiler.se>\n" "Language-Team: Svenska Språkfiler <contactform@svenskasprakfiler.se>\n"
@ -188,7 +188,6 @@ msgid "Line Number: "
msgstr "Radnummer: " msgstr "Radnummer: "
#: src/diffuse/main.py:645 #: src/diffuse/main.py:645
#, fuzzy
msgid "" msgid ""
"Press the enter key or double click to edit. Press the space bar or use the RMB " "Press the enter key or double click to edit. Press the space bar or use the RMB "
"menu to manually align." "menu to manually align."
@ -875,9 +874,9 @@ msgid "Preferences"
msgstr "Inställningar" msgstr "Inställningar"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "Fel vid bearbetning av rad %(line)d i %(file)s." msgstr "Fel vid bearbetning av rad {line} i {file}."
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse 0.4.7\n" "Project-Id-Version: diffuse 0.4.7\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Akom Chotiphantawanon <knight2000@gmail.com>\n" "Last-Translator: Akom Chotiphantawanon <knight2000@gmail.com>\n"
"Language-Team: Thai <thai-l10n@googlegroups.com>\n" "Language-Team: Thai <thai-l10n@googlegroups.com>\n"
@ -868,9 +868,9 @@ msgid "Preferences"
msgstr "ปรับแต่ง" msgstr "ปรับแต่ง"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "เกิดข้อผิดพลาดขณะประมวลผลบรรทัดที่ %(line)d ของ %(file)s" msgstr "เกิดข้อผิดพลาดขณะประมวลผลบรรทัดที่ {line} ของ {file}"
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Diffuse svn 316\n" "Project-Id-Version: Diffuse svn 316\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: <jarryson@gmail.com>\n" "Last-Translator: <jarryson@gmail.com>\n"
"Language-Team: Chinese (simplified)\n" "Language-Team: Chinese (simplified)\n"
@ -852,9 +852,9 @@ msgid "Preferences"
msgstr "首选项" msgstr "首选项"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "处理到文件%(file)s的%(line)d行时出错。" msgstr "处理到文件{file}的{line}行时出错。"
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: diffuse 0.4.8\n" "Project-Id-Version: diffuse 0.4.8\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 17:44-0500\n" "POT-Creation-Date: 2021-11-27 18:30-0500\n"
"PO-Revision-Date: 2020-06-29 14:49-0400\n" "PO-Revision-Date: 2020-06-29 14:49-0400\n"
"Last-Translator: Wei-Lun Chao <bluebat@member.fsf.org>\n" "Last-Translator: Wei-Lun Chao <bluebat@member.fsf.org>\n"
"Language-Team: Chinese (traditional) <zh-l10n@linux.org.tw>\n" "Language-Team: Chinese (traditional) <zh-l10n@linux.org.tw>\n"
@ -869,9 +869,9 @@ msgid "Preferences"
msgstr "選項" msgstr "選項"
#: src/diffuse/resources.py:465 #: src/diffuse/resources.py:465
#, fuzzy #, python-brace-format
msgid "Error processing line {i + 1} of {file_name}." msgid "Error processing line {line} of {file}."
msgstr "處理到檔案 %(file)s 的第 %(line)d 列時出錯。" msgstr "處理到檔案 {file} 的第 {line} 列時出錯。"
#: src/diffuse/utils.py:60 #: src/diffuse/utils.py:60
msgid "Auto Detect" msgid "Auto Detect"

View File

@ -462,7 +462,10 @@ class Resources:
raise ValueError() raise ValueError()
# except ValueError: # except ValueError:
except: # noqa: E722 # Grr... the 're' module throws weird errors except: # noqa: E722 # Grr... the 're' module throws weird errors
utils.logError(_(f'Error processing line {i + 1} of {file_name}.')) utils.logError(_('Error processing line {line} of {file}.'.format(
line=i + 1,
file=file_name
)))
# colour resources # colour resources