diff --git a/RELEASE b/RELEASE index 1ebc3c19c..302564983 100644 --- a/RELEASE +++ b/RELEASE @@ -11,9 +11,7 @@ Update translations: ninja-build fwupd-pot tx push --source tx pull --all --force --minimum-perc=5 -for f in ../po/*.po; do -msgattrib --no-location --translated --no-wrap --sort-output $f --output-file=$f -done +../contrib/fix_translations.py ../po git add ../po/*.po 2. Commit changes to git: diff --git a/contrib/fix_translations.py b/contrib/fix_translations.py new file mode 100755 index 000000000..8014fb11d --- /dev/null +++ b/contrib/fix_translations.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +# SPDX-License-Identifier: LGPL-2.1+ + +import sys +import os +import subprocess + +def _do_msgattrib(fn): + argv = ['msgattrib', + '--no-location', + '--translated', + '--no-wrap', + '--sort-output', + fn, + '--output-file=' + fn] + ret = subprocess.run(argv) + if ret.returncode != 0: + return + +def _do_nukeheader(fn): + clean_lines = [] + with open(fn) as f: + lines = f.readlines() + for line in lines: + if line.startswith('"POT-Creation-Date:'): + continue + if line.startswith('"PO-Revision-Date:'): + continue + if line.startswith('"Last-Translator:'): + continue + clean_lines.append(line) + with open(fn, 'w') as f: + f.writelines(clean_lines) + +def _process_file(fn): + _do_msgattrib(fn) + _do_nukeheader(fn) + +if __name__ == '__main__': + if len(sys.argv) == 1: + print('path required') + sys.exit(1) + try: + dirname = sys.argv[1] + for fn in os.listdir(dirname): + if fn.endswith('.po'): + _process_file(os.path.join(dirname, fn)) + except NotADirectoryError as _: + print('path required') + sys.exit(2) diff --git a/po/ast.po b/po/ast.po index d9e6b2f35..c9181d05c 100644 --- a/po/ast.po +++ b/po/ast.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Asturian (http://www.transifex.com/freedesktop/fwupd/language/ast/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/ca.po b/po/ca.po index ce33c478b..d3db4d2cb 100644 --- a/po/ca.po +++ b/po/ca.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-29 15:25+0000\n" -"Last-Translator: Antoni Bella Pérez \n" "Language-Team: Catalan (http://www.transifex.com/freedesktop/fwupd/language/ca/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/cs.po b/po/cs.po index 7a25ec226..7182585cf 100644 --- a/po/cs.po +++ b/po/cs.po @@ -10,9 +10,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Czech (http://www.transifex.com/freedesktop/fwupd/language/cs/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/de.po b/po/de.po index 9841a1c86..5caa173b4 100644 --- a/po/de.po +++ b/po/de.po @@ -10,9 +10,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: German (http://www.transifex.com/freedesktop/fwupd/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/en_GB.po b/po/en_GB.po index a29d59e3a..2f1e41160 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: English (United Kingdom) (http://www.transifex.com/freedesktop/fwupd/language/en_GB/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/eu.po b/po/eu.po index 685a0c25b..5614fddec 100644 --- a/po/eu.po +++ b/po/eu.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-06 14:54+0100\n" -"PO-Revision-Date: 2018-06-06 14:00+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Basque (http://www.transifex.com/freedesktop/fwupd/language/eu/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/fi.po b/po/fi.po index da403fca1..6cd7645c1 100644 --- a/po/fi.po +++ b/po/fi.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Finnish (http://www.transifex.com/freedesktop/fwupd/language/fi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/fr.po b/po/fr.po index 5650849dd..21026afb2 100644 --- a/po/fr.po +++ b/po/fr.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: French (http://www.transifex.com/freedesktop/fwupd/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/fur.po b/po/fur.po index cfff7927a..ac75c9c9a 100644 --- a/po/fur.po +++ b/po/fur.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Friulian (http://www.transifex.com/freedesktop/fwupd/language/fur/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/he.po b/po/he.po index 8b2a58924..e3fff2455 100644 --- a/po/he.po +++ b/po/he.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Hebrew (http://www.transifex.com/freedesktop/fwupd/language/he/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/hi.po b/po/hi.po index abdad4ffd..6cb53320c 100644 --- a/po/hi.po +++ b/po/hi.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Hindi (http://www.transifex.com/freedesktop/fwupd/language/hi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/hr.po b/po/hr.po index 7dc5b42ec..a458c451e 100644 --- a/po/hr.po +++ b/po/hr.po @@ -10,9 +10,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Croatian (http://www.transifex.com/freedesktop/fwupd/language/hr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/hu.po b/po/hu.po index c2fd3858d..9e337f677 100644 --- a/po/hu.po +++ b/po/hu.po @@ -11,9 +11,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-12-16 19:43+0000\n" -"Last-Translator: Balázs Meskó \n" "Language-Team: Hungarian (http://www.transifex.com/freedesktop/fwupd/language/hu/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/id.po b/po/id.po index dff70f4fb..0ded94995 100644 --- a/po/id.po +++ b/po/id.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Indonesian (http://www.transifex.com/freedesktop/fwupd/language/id/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/it.po b/po/it.po index 3824307ff..381a9d650 100644 --- a/po/it.po +++ b/po/it.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Italian (http://www.transifex.com/freedesktop/fwupd/language/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/kk.po b/po/kk.po index 6fa7e2e9c..799aa994b 100644 --- a/po/kk.po +++ b/po/kk.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-01 14:26+0100\n" -"PO-Revision-Date: 2017-09-01 13:27+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Kazakh (http://www.transifex.com/freedesktop/fwupd/language/kk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/ko.po b/po/ko.po index 61e1c78c6..5420d692d 100644 --- a/po/ko.po +++ b/po/ko.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Korean (http://www.transifex.com/freedesktop/fwupd/language/ko/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/ky.po b/po/ky.po index 742e6ae91..f8ed34ec2 100644 --- a/po/ky.po +++ b/po/ky.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-07 11:16+0000\n" -"PO-Revision-Date: 2018-10-12 11:10+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Kyrgyz (http://www.transifex.com/freedesktop/fwupd/language/ky/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/nl.po b/po/nl.po index bd18d686c..c8b395ce8 100644 --- a/po/nl.po +++ b/po/nl.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Dutch (http://www.transifex.com/freedesktop/fwupd/language/nl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/oc.po b/po/oc.po index de4a1215a..21d8bd97b 100644 --- a/po/oc.po +++ b/po/oc.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Occitan (post 1500) (http://www.transifex.com/freedesktop/fwupd/language/oc/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/pl.po b/po/pl.po index fb81b1c93..3f53b1e63 100644 --- a/po/pl.po +++ b/po/pl.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Polish (http://www.transifex.com/freedesktop/fwupd/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/pt_BR.po b/po/pt_BR.po index ffa3dc9f3..ba6499db4 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -12,9 +12,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-12-05 22:10+0000\n" -"Last-Translator: Rafael Fontenelle \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/freedesktop/fwupd/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/ru.po b/po/ru.po index 01986bab5..631c93f8e 100644 --- a/po/ru.po +++ b/po/ru.po @@ -9,9 +9,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Russian (http://www.transifex.com/freedesktop/fwupd/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/sk.po b/po/sk.po index 4f55f8a8f..fa403fdaf 100644 --- a/po/sk.po +++ b/po/sk.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Slovak (http://www.transifex.com/freedesktop/fwupd/language/sk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/sr.po b/po/sr.po index c7029da15..8c8b4bf7c 100644 --- a/po/sr.po +++ b/po/sr.po @@ -10,9 +10,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Serbian (http://www.transifex.com/freedesktop/fwupd/language/sr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/sv.po b/po/sv.po index ca08776a8..84f5bc842 100644 --- a/po/sv.po +++ b/po/sv.po @@ -12,9 +12,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Swedish (http://www.transifex.com/freedesktop/fwupd/language/sv/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/tr.po b/po/tr.po index 044d46eac..41770aaf0 100644 --- a/po/tr.po +++ b/po/tr.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Turkish (http://www.transifex.com/freedesktop/fwupd/language/tr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/uk.po b/po/uk.po index 7a9702415..27f7c6f70 100644 --- a/po/uk.po +++ b/po/uk.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Ukrainian (http://www.transifex.com/freedesktop/fwupd/language/uk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/zh_CN.po b/po/zh_CN.po index cb57be863..c7c75f45b 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -12,9 +12,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Chinese (China) (http://www.transifex.com/freedesktop/fwupd/language/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/po/zh_TW.po b/po/zh_TW.po index 913feef26..52f8b62fc 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -8,9 +8,6 @@ msgid "" msgstr "" "Project-Id-Version: fwupd\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-30 15:16+0000\n" -"PO-Revision-Date: 2018-11-28 13:44+0000\n" -"Last-Translator: Richard Hughes \n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/freedesktop/fwupd/language/zh_TW/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n"