A tumblelog CMS built on AJAX, PHP and MySQL.

gettext.bat 478B

1234567891011121314151617
  1. dir /a /b /-p /s /o:gen *.php > sources_php.txt
  2. PATH C:\Program Files\poEdit\bin
  3. PATH C:\Archivos de programa\poEdit\bin
  4. for /f %%a in ('dir /b languages') do call :add_strings "%%a"
  5. del sources_php.txt
  6. goto :eof
  7. :add_strings
  8. 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
  9. cd languages/%1
  10. msgfmt messages.po
  11. cd ../..