Mailing List Archive

[MythTV/mythtv] 4d2267: WebApp: add helper script to check, add, remove, a...
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 4d22673af8fd243c0372358ca83de60453ab1bf6
https://github.com/MythTV/mythtv/commit/4d22673af8fd243c0372358ca83de60453ab1bf6
Author: Paul Harrison <paul@mythqml.net>
Date: 2023-07-09 (Sun, 09 Jul 2023)

Changed paths:
A mythtv/html/translation-util.py

Log Message:
-----------
WebApp: add helper script to check, add, remove, amend strings in the translation JSON files

Example usage

check and keep in sync the translation files
translation-util.py --check

add new string
translation-util.py --add --key="common.test.new" --value="This is a new test string"

remove a string from all translation files
translation-util.py --remove --key="common.test.new"

amend an existing string
translation-util.py --amend --key="common.test.new" --value="This is an amended test string"

list all the keys and strings for the German language file
translation-util.py --listkeys --language=de

Required modules: googletrans and flatten_dict


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits