Skip to content

Instantly share code, notes, and snippets.

@agborkowski
Created January 29, 2014 04:02
Show Gist options
  • Save agborkowski/8681614 to your computer and use it in GitHub Desktop.
Save agborkowski/8681614 to your computer and use it in GitHub Desktop.
#ci #li3 #g11n #internationalization app done !
#/project/migrations/update.sh
# Search msgid in entire project and export to template
# 1) execute algoritm delivered by framework
cd ../app && li3 g11n extract & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo && sleep 2 && echo && sleep2
echo '# Sync msgid with msgid template :'
echo '# 1) check exists msgid'
echo '# 2) if not exists create new'
echo '# 3) find similars msgid'
echo '# 4) mark rest as unused'
php -f sync_pot_msgid.php
echo '# Sync msgid with msgstr in all languages'
php -f sync_msgid_msgstr.php
echo '#php -f fix_msgid.php - disabled'
echo '# Gooogle translations'
php -f get_translations_google.php
echo '# Generate new translations'
php -f generate.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment