chore: move around some scripts
This commit is contained in:
parent
26547f8671
commit
ae9cb663c6
10 changed files with 4 additions and 18 deletions
|
@ -240,10 +240,11 @@ need to take.
|
|||
First grab the built project from Crowdin, and then grab out the translation to add/update. For this example, let's take
|
||||
German.
|
||||
|
||||
Pop this file in the `processTranslations/in` directory and then run the `processTranslations.bat` or
|
||||
`processTranslations.sh` file to fix them up and output them into the `processTranslations/out` directory.
|
||||
Pop this file in the `scripts/processTranslations/in` directory and then run the `scripts/processTranslations.bat` or
|
||||
`scripts/processTranslations.sh` file to fix them up and output them into the `scripts/processTranslations/out`
|
||||
directory.
|
||||
|
||||
Now take the converted files from the `processTranslations/out` directory and put them in the
|
||||
Now take the converted files from the `scripts/processTranslations/out` directory and put them in the
|
||||
`src\main\resources\assets\lang` directory.
|
||||
|
||||
Now open `src\main\java\com\atlauncher\data\Language.java` and in the static block at the top, add in the language:
|
||||
|
|
1
scripts/.gitignore
vendored
1
scripts/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
.files-to-extract
|
|
@ -1,7 +0,0 @@
|
|||
cd ../src/main/java/com/atlauncher
|
||||
dir *.java /b/s > ../../../../../scripts/.files-to-extract
|
||||
cd ../../../../../scripts/
|
||||
|
||||
xgettext -D ../ --keyword=GetText.tr -f .files-to-extract -L Java --from-code utf-8 --force-po --add-comments="#. " --omit-header -o ../src/main/resources/assets/lang/template.pot
|
||||
|
||||
del .files-to-extract
|
|
@ -1,7 +0,0 @@
|
|||
find ../src/main/java/com/atlauncher/ -name '*.java' | sed -n 's|^../||p' > .files-to-extract
|
||||
xgettext -D ../ --keyword=GetText.tr -f .files-to-extract -L Java --from-code utf-8 --force-po --add-comments="#. " --omit-header -o ../src/main/resources/assets/lang/template.pot
|
||||
sed -i 's|^#. #.|#.|p' ../src/main/resources/assets/lang/template.pot
|
||||
uniq ../src/main/resources/assets/lang/template.pot temp
|
||||
rm -f ../src/main/resources/assets/lang/template.pot
|
||||
mv temp ../src/main/resources/assets/lang/template.pot
|
||||
rm .files-to-extract
|
Loading…
Reference in a new issue