🔀 Merge pull request #71 from ACH1980/master
Check for correct path in compile.sh
This commit is contained in:
commit
49581a18e8
1 changed files with 11 additions and 5 deletions
8
locales/compile.sh
Normal file → Executable file
8
locales/compile.sh
Normal file → Executable file
|
@ -1,11 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script compiles the unobot.po file for all languages.
|
# This script compiles the unobot.po file for all languages.
|
||||||
|
|
||||||
|
if [ ${PWD##*/} = "locales" ];
|
||||||
|
then
|
||||||
function compile {
|
function compile {
|
||||||
cd './'$1'/LC_MESSAGES/'
|
cd './'$1'/LC_MESSAGES/'
|
||||||
msgfmt unobot.po -o unobot.mo
|
msgfmt unobot.po -o unobot.mo
|
||||||
cd ../../
|
cd ../../
|
||||||
}
|
};
|
||||||
|
else
|
||||||
|
echo 'Only execute this in the "locales" directory'
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
# Deutsch
|
# Deutsch
|
||||||
compile de_DE
|
compile de_DE
|
||||||
|
|
Loading…
Reference in a new issue