Revision: 9285
http://languagetool.svn.sourceforge.net/languagetool/?rev=9285&view=rev
Author: dnaber
Date: 2013-02-03 11:16:52 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
new script to download i18n files from Transifex (similar to the existing
script for LT core anf GUI with the same name)
Added Paths:
-----------
trunk/ltcommunity/i18n_update.sh
Copied: trunk/ltcommunity/i18n_update.sh (from rev 9047,
trunk/JLanguageTool/i18n_update.sh)
===================================================================
--- trunk/ltcommunity/i18n_update.sh (rev 0)
+++ trunk/ltcommunity/i18n_update.sh 2013-02-03 11:16:52 UTC (rev 9285)
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Download latest community website translations from Transifex and copy them
over the existing local files.
+
+# Transifex username and password
+USERNAME=dnaber
+PASSWORD=fixme
+
+rm -I i18n-temp
+mkdir i18n-temp
+cd i18n-temp
+
+# list of languages in the same order as on
https://www.transifex.com/projects/p/languagetool/:
+for lang in en ast be br ca zh da nl eo fr gl de el_GR it pl ru sl es tl uk ro
sk cs sv is lt km pt_PT pt_BR
+do
+ SOURCE=downloaded.tmp
+ # download and hackish JSON cleanup:
+ curl --user $USERNAME:$PASSWORD
https://www.transifex.net/api/2/project/languagetool/resource/community-website/translation/$lang/?file
>$SOURCE
+ TARGET="../grails-app/i18n/messages_${lang}.properties"
+ echo "Moving $SOURCE to $TARGET"
+ mv $SOURCE $TARGET
+done
+
+cd ..
+rm -r i18n-temp
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits