some modifications
parent
5b426eff0a
commit
fd69f73e66
19
gettext.bat
19
gettext.bat
|
|
@ -1,24 +1,17 @@
|
||||||
dir /a /b /-p /o:gen *.php > sources.txt
|
dir /a /b /-p /s /o:gen *.php > sources_php.txt
|
||||||
cd admin
|
|
||||||
dir /a /b /-p /o:gen *.php > sources_admin.txt
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
PATH C:\Program Files\poEdit\bin
|
||||||
PATH C:\Archivos de programa\poEdit\bin
|
PATH C:\Archivos de programa\poEdit\bin
|
||||||
|
|
||||||
for /f %%a in ('dir /b languages') do call :add_strings "%%a"
|
for /f %%a in ('dir /b languages') do call :add_strings "%%a"
|
||||||
|
|
||||||
cd admin
|
del sources_php.txt
|
||||||
del sources_admin.txt
|
|
||||||
cd ..
|
|
||||||
del sources.txt
|
|
||||||
|
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:add_strings
|
:add_strings
|
||||||
xgettext --keyword=__ --language=PHP --files-from=sources.txt -j --from-code=UTF-8 -d languages/%1/messages
|
xgettext --keyword=__ --language=PHP --package-name=gelatocms --package-version=1.0 --no-location --no-wrap --files-from=sources_php.txt -j --from-code=UTF-8 -d languages/%1/messages
|
||||||
cd admin
|
|
||||||
xgettext --keyword=__ --language=PHP --files-from=sources_admin.txt -j --from-code=UTF-8 -d ../languages/%1/messages
|
|
||||||
cd ..
|
|
||||||
cd languages/%1
|
cd languages/%1
|
||||||
msgfmt messages.po
|
msgfmt messages.po
|
||||||
cd ../..
|
cd ../..
|
||||||
Loading…
Reference in New Issue