Skip to content

Commit

Permalink
update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Nov 23, 2024
1 parent 4a1a611 commit 773999e
Show file tree
Hide file tree
Showing 23 changed files with 64,347 additions and 20,039 deletions.
3,614 changes: 2,762 additions & 852 deletions locale/cs/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

4,147 changes: 3,023 additions & 1,124 deletions locale/de/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,976 changes: 3,040 additions & 936 deletions locale/es/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,723 changes: 2,870 additions & 853 deletions locale/et/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,633 changes: 2,781 additions & 852 deletions locale/fi/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,940 changes: 3,013 additions & 927 deletions locale/fr_FR/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,671 changes: 2,832 additions & 839 deletions locale/hu/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,668 changes: 2,810 additions & 858 deletions locale/ia/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,985 changes: 3,044 additions & 941 deletions locale/id/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,848 changes: 2,981 additions & 867 deletions locale/it/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,886 changes: 2,956 additions & 930 deletions locale/ja_JP/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,590 changes: 2,733 additions & 857 deletions locale/messages.pot

Large diffs are not rendered by default.

3,728 changes: 2,871 additions & 857 deletions locale/nb_NO/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,655 changes: 2,796 additions & 859 deletions locale/nl/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,611 changes: 2,775 additions & 836 deletions locale/pl/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,945 changes: 3,017 additions & 928 deletions locale/pt/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,934 changes: 3,013 additions & 921 deletions locale/pt_BR/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

4,155 changes: 3,026 additions & 1,129 deletions locale/pt_PT/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,860 changes: 2,982 additions & 878 deletions locale/ru/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,914 changes: 2,994 additions & 920 deletions locale/sv/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,973 changes: 3,018 additions & 955 deletions locale/tr/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

3,919 changes: 3,000 additions & 919 deletions locale/zh_CN/LC_MESSAGES/tauon.po

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion update_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ def main() -> None:
pot_path = Path(locale_folder) / "messages.pot"

print("Generate template")
subprocess.run(["python", "pygettext.py", "t_modules/t_dbus.py", "t_modules/t_extra.py", "t_modules/t_jellyfin.py", "t_modules/t_main.py", "t_modules/t_phazor.py", "t_modules/t_spot.py", "t_modules/t_stream.py", "t_modules/t_tidal.py", "t_modules/t_webserve.py"])

root_dir = "src"
# Collect all .py file paths
py_files = []
for dirpath, _, filenames in os.walk(root_dir):
py_files.extend(os.path.join(dirpath, file) for file in filenames if file.endswith(".py"))
# Run pygettext.py with all .py files as arguments
if py_files:
subprocess.run(["python", "pygettext.py", *py_files], check=True)

print("Copy template")
subprocess.run(["cp", "messages.pot", pot_path])
subprocess.run(["rm", "messages.pot"])
Expand Down

0 comments on commit 773999e

Please sign in to comment.