diff --git a/po/cs.po b/po/cs.po index 45ed358..bc61cfc 100644 --- a/po/cs.po +++ b/po/cs.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: Jindřich Šesták \n" "Language-Team: NONE \n" @@ -887,9 +887,9 @@ msgid "Preferences" msgstr "Předvolby" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Při zpracování řádku %(line)d souboru %(file)s došlo k chybě." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Při zpracování řádku {line} souboru {file} došlo k chybě." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/de.po b/po/de.po index 5f83671..cf11c20 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: Henri Menke \n" "Language-Team: German \n" @@ -882,9 +882,9 @@ msgid "Preferences" msgstr "Einstellungen" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Fehler bei der Analyse der Zeilen %(line)d von %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Fehler bei der Analyse der Zeilen {line} von {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/diffuse.pot b/po/diffuse.pot index 533d332..42f1c6b 100644 --- a/po/diffuse.pot +++ b/po/diffuse.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -814,7 +814,8 @@ msgid "Preferences" msgstr "" #: 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 "" #: src/diffuse/utils.py:60 diff --git a/po/es.po b/po/es.po index 0585fe6..ad9621e 100644 --- a/po/es.po +++ b/po/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: David Marín Carreño \n" "Language-Team: Spanish \n" @@ -876,9 +876,9 @@ msgid "Preferences" msgstr "Preferencias" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Error procesando línea %(line)d de %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Error procesando línea {line} de {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/it.po b/po/it.po index 20f050f..fdadaf5 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Diffuse 0.4.4\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" "Last-Translator: Cristian Marchi \n" "Language-Team: Italian\n" @@ -879,9 +879,9 @@ msgid "Preferences" msgstr "Preferenze" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Errore nell'elaborare la riga %(line)d di «%(file)s»." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Errore nell'elaborare la riga {line} di «{file}»." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/ja.po b/po/ja.po index bdf2884..1cdff2a 100644 --- a/po/ja.po +++ b/po/ja.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn r316\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" "Last-Translator: Derrick Moser \n" "Language-Team: Japanese\n" @@ -875,9 +875,9 @@ msgid "Preferences" msgstr "設定" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "%(file)s の %(line)d行 を処理しているときにエラーが生じました。" +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "{file} の {line}行 を処理しているときにエラーが生じました。" #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/ko.po b/po/ko.po index 7ca1c23..117f037 100644 --- a/po/ko.po +++ b/po/ko.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn r316\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" "Last-Translator: Kang Bundo \n" "Language-Team: Korean\n" @@ -871,9 +871,9 @@ msgid "Preferences" msgstr "기본 설정" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "%(file)s %(line)d 행을 처리하는 도중 오류가 발생했습니다." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "{file} {line} 행을 처리하는 도중 오류가 발생했습니다." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/pl.po b/po/pl.po index dc81520..00f04e3 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-0.4.8\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" "Last-Translator: Miś Uszatek , 2012\n" "Language-Team: Polish \n" @@ -865,9 +865,9 @@ msgid "Preferences" msgstr "Preferencje" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Błąd przetwarzania linii %(line)d w %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Błąd przetwarzania linii {line} w {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/pt.po b/po/pt.po index b371702..6124dac 100644 --- a/po/pt.po +++ b/po/pt.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: Pedro Albuquerque \n" "Language-Team: Português \n" @@ -882,9 +882,9 @@ msgid "Preferences" msgstr "Preferências" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Erro ao processar a linha %(line)d de %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Erro ao processar a linha {line} de {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/pt_BR.po b/po/pt_BR.po index abfc2f5..85d86c4 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: Pedro Albuquerque \n" "Language-Team: Português \n" @@ -884,9 +884,9 @@ msgid "Preferences" msgstr "Preferências" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Erro ao processar a linha %(line)d de %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Erro ao processar a linha {line} de {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/ru.po b/po/ru.po index c216c39..668f8af 100644 --- a/po/ru.po +++ b/po/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse-svn\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" "Last-Translator: Oleg Pakhtusov \n" "Language-Team: Russian \n" @@ -886,9 +886,9 @@ msgid "Preferences" msgstr "Предпочтения" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Ошибка обработки строки %(line)d из %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Ошибка обработки строки {line} из {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/sv.po b/po/sv.po index 0e2819f..9148b62 100644 --- a/po/sv.po +++ b/po/sv.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \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" "Last-Translator: Åke Engelbrektson \n" "Language-Team: Svenska Språkfiler \n" @@ -188,7 +188,6 @@ msgid "Line Number: " msgstr "Radnummer: " #: src/diffuse/main.py:645 -#, fuzzy msgid "" "Press the enter key or double click to edit. Press the space bar or use the RMB " "menu to manually align." @@ -875,9 +874,9 @@ msgid "Preferences" msgstr "Inställningar" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "Fel vid bearbetning av rad %(line)d i %(file)s." +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "Fel vid bearbetning av rad {line} i {file}." #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/th.po b/po/th.po index 878aeae..bb32e91 100644 --- a/po/th.po +++ b/po/th.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse 0.4.7\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" "Last-Translator: Akom Chotiphantawanon \n" "Language-Team: Thai \n" @@ -868,9 +868,9 @@ msgid "Preferences" msgstr "ปรับแต่ง" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "เกิดข้อผิดพลาดขณะประมวลผลบรรทัดที่ %(line)d ของ %(file)s" +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "เกิดข้อผิดพลาดขณะประมวลผลบรรทัดที่ {line} ของ {file}" #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/zh_CN.po b/po/zh_CN.po index 44ae339..faf3248 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Diffuse svn 316\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" "Last-Translator: \n" "Language-Team: Chinese (simplified)\n" @@ -852,9 +852,9 @@ msgid "Preferences" msgstr "首选项" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "处理到文件%(file)s的%(line)d行时出错。" +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "处理到文件{file}的{line}行时出错。" #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/po/zh_TW.po b/po/zh_TW.po index 58bc5ff..090d3d4 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: diffuse 0.4.8\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" "Last-Translator: Wei-Lun Chao \n" "Language-Team: Chinese (traditional) \n" @@ -869,9 +869,9 @@ msgid "Preferences" msgstr "選項" #: src/diffuse/resources.py:465 -#, fuzzy -msgid "Error processing line {i + 1} of {file_name}." -msgstr "處理到檔案 %(file)s 的第 %(line)d 列時出錯。" +#, python-brace-format +msgid "Error processing line {line} of {file}." +msgstr "處理到檔案 {file} 的第 {line} 列時出錯。" #: src/diffuse/utils.py:60 msgid "Auto Detect" diff --git a/src/diffuse/resources.py b/src/diffuse/resources.py index 200bab2..d2c19f8 100644 --- a/src/diffuse/resources.py +++ b/src/diffuse/resources.py @@ -462,7 +462,10 @@ class Resources: raise ValueError() # except ValueError: 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