Translations, suggestion box, UX
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
2025-03-03 00:47:38 +01:00
parent 9f187afc22
commit 9361bc0363
17 changed files with 1515 additions and 135 deletions

19
update_translations.bat Normal file
View File

@@ -0,0 +1,19 @@
@echo off
setlocal enabledelayedexpansion
:: Create POT file
del locales\messages.pot 2>nul
for %%f in (*.py) do (
if not exist locales\messages.pot (
xgettext -d messages -o locales\messages.pot "%%f"
) else (
xgettext -d messages -o locales\messages.pot --join-existing "%%f"
)
)
:: Update PO files
for /D %%d in (locales\*) do (
if exist "%%d\LC_MESSAGES\messages.po" (
msgmerge --update "%%d\LC_MESSAGES\messages.po" locales\messages.pot
)
)