A tumblelog CMS built on AJAX, PHP and MySQL.

gettext.bat 597B

123456789101112131415161718192021222324
  1. dir /a /b /-p /o:gen *.php > sources.txt
  2. cd admin
  3. dir /a /b /-p /o:gen *.php > sources_admin.txt
  4. cd ..
  5. PATH C:\Archivos de programa\poEdit\bin
  6. for /f %%a in ('dir /b languages') do call :add_strings "%%a"
  7. cd admin
  8. del sources_admin.txt
  9. cd ..
  10. del sources.txt
  11. goto :eof
  12. :add_strings
  13. xgettext --keyword=__ --language=PHP --files-from=sources.txt -j --from-code=UTF-8 -d languages/%1/messages
  14. cd admin
  15. xgettext --keyword=__ --language=PHP --files-from=sources_admin.txt -j --from-code=UTF-8 -d ../languages/%1/messages
  16. cd ..
  17. cd languages/%1
  18. msgfmt messages.po
  19. cd ../..