diff --git a/application/locale/bg_BG/LC_MESSAGES/messages.po b/application/locale/bg_BG/LC_MESSAGES/messages.po index a8ce4ed15..39bce5582 100644 --- a/application/locale/bg_BG/LC_MESSAGES/messages.po +++ b/application/locale/bg_BG/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/cs_CZ/LC_MESSAGES/messages.po b/application/locale/cs_CZ/LC_MESSAGES/messages.po index 71068cc56..946419404 100644 --- a/application/locale/cs_CZ/LC_MESSAGES/messages.po +++ b/application/locale/cs_CZ/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/de_DE/LC_MESSAGES/messages.po b/application/locale/de_DE/LC_MESSAGES/messages.po index 78a401a60..135013655 100644 --- a/application/locale/de_DE/LC_MESSAGES/messages.po +++ b/application/locale/de_DE/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/el_GR/LC_MESSAGES/messages.po b/application/locale/el_GR/LC_MESSAGES/messages.po index f5a6ee478..385445f92 100644 --- a/application/locale/el_GR/LC_MESSAGES/messages.po +++ b/application/locale/el_GR/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/es_ES/LC_MESSAGES/messages.po b/application/locale/es_ES/LC_MESSAGES/messages.po index 7959943ec..858651e15 100644 --- a/application/locale/es_ES/LC_MESSAGES/messages.po +++ b/application/locale/es_ES/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/fi_FI/LC_MESSAGES/messages.po b/application/locale/fi_FI/LC_MESSAGES/messages.po index 15bfc9324..95b4dfad3 100644 --- a/application/locale/fi_FI/LC_MESSAGES/messages.po +++ b/application/locale/fi_FI/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/fr_FR/LC_MESSAGES/messages.po b/application/locale/fr_FR/LC_MESSAGES/messages.po index 7dfdc3ef1..9bc91d84c 100644 --- a/application/locale/fr_FR/LC_MESSAGES/messages.po +++ b/application/locale/fr_FR/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/it_IT/LC_MESSAGES/messages.po b/application/locale/it_IT/LC_MESSAGES/messages.po index 39a796869..8ac7a420d 100644 --- a/application/locale/it_IT/LC_MESSAGES/messages.po +++ b/application/locale/it_IT/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/nl_NL/LC_MESSAGES/messages.po b/application/locale/nl_NL/LC_MESSAGES/messages.po index a4c3dbaf7..44a5c913d 100644 --- a/application/locale/nl_NL/LC_MESSAGES/messages.po +++ b/application/locale/nl_NL/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/pl_PL/LC_MESSAGES/messages.po b/application/locale/pl_PL/LC_MESSAGES/messages.po index ebb9b8dc5..26887ed55 100644 --- a/application/locale/pl_PL/LC_MESSAGES/messages.po +++ b/application/locale/pl_PL/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/ru_RU/LC_MESSAGES/messages.po b/application/locale/ru_RU/LC_MESSAGES/messages.po index ef9af9aeb..b3edb5a6b 100644 --- a/application/locale/ru_RU/LC_MESSAGES/messages.po +++ b/application/locale/ru_RU/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/sv_SE/LC_MESSAGES/messages.po b/application/locale/sv_SE/LC_MESSAGES/messages.po index ed902754a..aff61cda2 100644 --- a/application/locale/sv_SE/LC_MESSAGES/messages.po +++ b/application/locale/sv_SE/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/tr_TR/LC_MESSAGES/messages.po b/application/locale/tr_TR/LC_MESSAGES/messages.po index f3a73ee65..7b61698b9 100644 --- a/application/locale/tr_TR/LC_MESSAGES/messages.po +++ b/application/locale/tr_TR/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/application/locale/zh_CN/LC_MESSAGES/messages.po b/application/locale/zh_CN/LC_MESSAGES/messages.po index 8526c5ccb..e41e0bb15 100644 --- a/application/locale/zh_CN/LC_MESSAGES/messages.po +++ b/application/locale/zh_CN/LC_MESSAGES/messages.po @@ -1,5 +1,5 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# Copyright (c) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. # This file is distributed under the MIT licence. # #, fuzzy diff --git a/assets/lang_src/messages.pot b/assets/lang_src/messages.pot index f702fe175..816dcac3d 100644 --- a/assets/lang_src/messages.pot +++ b/assets/lang_src/messages.pot @@ -1,12 +1,12 @@ # WAVELOG PO FILE -# Copyright (C) 2024 Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA. +# 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" -"POT-Creation-Date: 2024-06-19 22:57+0200\n" +"POT-Creation-Date: 2024-06-20 00:26+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 6c235df66..d80562f87 100755 --- a/po_gen.sh +++ b/po_gen.sh @@ -29,7 +29,7 @@ BUG_MAIL="translations@wavelog.org" YEAR="$(date +"%Y")" POT_TITLE_TEXT="WAVELOG PO FILE" -POT_COPYRIGHT_TEXT="Copyright (C) $YEAR Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA." +POT_COPYRIGHT_TEXT="Copyright (c) $YEAR Wavelog by DF2ET, DJ7NT, HB9HIL and LA8AJA." POT_LICENCE_TEXT="This file is distributed under the MIT licence." # Find all PHP files and create a list in a temporary file @@ -57,13 +57,19 @@ 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 + # Now we can merge the POT file (PO template) into each found PO file for po in $(find . -name "*.po"); do - msgmerge --no-wrap -UN -vv "$po" $POT_FILE; + msgmerge --no-wrap --update -vv --backup=none --previous "$po" $POT_FILE; + # Replace the first five lines of the PO file with the POT file header + sed -i '1,5d' "$po" + cat POT_HEADER "$po" > temp.po && mv temp.po "$po" done -# The msgmerge command creates po~ files as backups. We can delete them -find . -name "*.po~" -delete +# Clean up the temporary POT_HEADER file +rm POT_HEADER # The last action is to create a MO file for each found PO file for po in $(find . -name "*.po"); do