From 7b4df31081864404aee1097bc47ac721f5287a48 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 22 Jun 2024 18:02:33 +0200 Subject: [PATCH] fixed a little script bug --- application/locale/bg_BG/LC_MESSAGES/messages.po | 1 - application/locale/cs_CZ/LC_MESSAGES/messages.po | 1 - application/locale/de_DE/LC_MESSAGES/messages.po | 1 - application/locale/el_GR/LC_MESSAGES/messages.po | 1 - application/locale/es_ES/LC_MESSAGES/messages.po | 1 - application/locale/fi_FI/LC_MESSAGES/messages.po | 1 - application/locale/fr_FR/LC_MESSAGES/messages.po | 1 - application/locale/it_IT/LC_MESSAGES/messages.po | 1 - application/locale/nl_NL/LC_MESSAGES/messages.po | 1 - application/locale/pl_PL/LC_MESSAGES/messages.po | 1 - application/locale/ru_RU/LC_MESSAGES/messages.po | 1 - application/locale/sv_SE/LC_MESSAGES/messages.po | 1 - application/locale/tr_TR/LC_MESSAGES/messages.po | 1 - application/locale/zh_CN/LC_MESSAGES/messages.po | 1 - assets/lang_src/messages.pot | 2 +- po_gen.sh | 10 ++++++---- 16 files changed, 7 insertions(+), 19 deletions(-) diff --git a/application/locale/bg_BG/LC_MESSAGES/messages.po b/application/locale/bg_BG/LC_MESSAGES/messages.po index fa9466492..f95a4aebb 100644 --- a/application/locale/bg_BG/LC_MESSAGES/messages.po +++ b/application/locale/bg_BG/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/cs_CZ/LC_MESSAGES/messages.po b/application/locale/cs_CZ/LC_MESSAGES/messages.po index ba6151ddb..b61bb7669 100644 --- a/application/locale/cs_CZ/LC_MESSAGES/messages.po +++ b/application/locale/cs_CZ/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/de_DE/LC_MESSAGES/messages.po b/application/locale/de_DE/LC_MESSAGES/messages.po index d60e5f9fb..e3668f0a0 100644 --- a/application/locale/de_DE/LC_MESSAGES/messages.po +++ b/application/locale/de_DE/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/el_GR/LC_MESSAGES/messages.po b/application/locale/el_GR/LC_MESSAGES/messages.po index d633d05c9..8830a4d62 100644 --- a/application/locale/el_GR/LC_MESSAGES/messages.po +++ b/application/locale/el_GR/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/es_ES/LC_MESSAGES/messages.po b/application/locale/es_ES/LC_MESSAGES/messages.po index fe32384a3..44ad41457 100644 --- a/application/locale/es_ES/LC_MESSAGES/messages.po +++ b/application/locale/es_ES/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/fi_FI/LC_MESSAGES/messages.po b/application/locale/fi_FI/LC_MESSAGES/messages.po index 1e85d6d90..eb91347e9 100644 --- a/application/locale/fi_FI/LC_MESSAGES/messages.po +++ b/application/locale/fi_FI/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/fr_FR/LC_MESSAGES/messages.po b/application/locale/fr_FR/LC_MESSAGES/messages.po index 23e308e93..aa23711d5 100644 --- a/application/locale/fr_FR/LC_MESSAGES/messages.po +++ b/application/locale/fr_FR/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/it_IT/LC_MESSAGES/messages.po b/application/locale/it_IT/LC_MESSAGES/messages.po index 6f97a38ab..9bdba71a2 100644 --- a/application/locale/it_IT/LC_MESSAGES/messages.po +++ b/application/locale/it_IT/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/nl_NL/LC_MESSAGES/messages.po b/application/locale/nl_NL/LC_MESSAGES/messages.po index e4c1fc542..34b094821 100644 --- a/application/locale/nl_NL/LC_MESSAGES/messages.po +++ b/application/locale/nl_NL/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/pl_PL/LC_MESSAGES/messages.po b/application/locale/pl_PL/LC_MESSAGES/messages.po index b05837a64..5e3864eb4 100644 --- a/application/locale/pl_PL/LC_MESSAGES/messages.po +++ b/application/locale/pl_PL/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/ru_RU/LC_MESSAGES/messages.po b/application/locale/ru_RU/LC_MESSAGES/messages.po index 5abbf4183..a519e77f8 100644 --- a/application/locale/ru_RU/LC_MESSAGES/messages.po +++ b/application/locale/ru_RU/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/sv_SE/LC_MESSAGES/messages.po b/application/locale/sv_SE/LC_MESSAGES/messages.po index c54e1097b..a18c0a0dd 100644 --- a/application/locale/sv_SE/LC_MESSAGES/messages.po +++ b/application/locale/sv_SE/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/tr_TR/LC_MESSAGES/messages.po b/application/locale/tr_TR/LC_MESSAGES/messages.po index ff95f700f..afc1d2197 100644 --- a/application/locale/tr_TR/LC_MESSAGES/messages.po +++ b/application/locale/tr_TR/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/application/locale/zh_CN/LC_MESSAGES/messages.po b/application/locale/zh_CN/LC_MESSAGES/messages.po index c1c43c517..d871bad95 100644 --- a/application/locale/zh_CN/LC_MESSAGES/messages.po +++ b/application/locale/zh_CN/LC_MESSAGES/messages.po @@ -2,7 +2,6 @@ # Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # -#, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" diff --git a/assets/lang_src/messages.pot b/assets/lang_src/messages.pot index 15b8e0aba..490ca8a92 100644 --- a/assets/lang_src/messages.pot +++ b/assets/lang_src/messages.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: translations@wavelog.org\n" -"POT-Creation-Date: 2024-06-20 00:31+0200\n" +"POT-Creation-Date: 2024-06-22 18:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po_gen.sh b/po_gen.sh index 950e08de2..2e59e8d76 100755 --- a/po_gen.sh +++ b/po_gen.sh @@ -57,15 +57,17 @@ sed -i "3s/.*/# $POT_LICENCE_TEXT/" $POT_FILE sed -i '4d' $POT_FILE sed -i '8d' $POT_FILE -# Extract the first five lines of the POT file to a temporary file -head -n 5 "$POT_FILE" > POT_HEADER +# Extract the first three lines of the POT file to a temporary file +head -n 3 "$POT_FILE" > POT_HEADER # Now we can merge the POT file (PO template) into each found PO file for po in $(find . -name "*.po"); do msgmerge --no-wrap --update -vv --backup=none --no-fuzzy-matching "$po" $POT_FILE; - # Replace the first five lines of the PO file with the POT file header - sed -i '1,5d' "$po" + # Replace the first three lines of the PO file with the POT file header + sed -i '1,3d' "$po" cat POT_HEADER "$po" > temp.po && mv temp.po "$po" + # Remove fuzzy markers from PO file + sed -i '/^#, fuzzy$/d' "$po" done # Clean up the temporary POT_HEADER file