Translations, suggestion box, UX
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
This commit is contained in:
19
update_translations.bat
Normal file
19
update_translations.bat
Normal 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
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user