Revision: 6094
http://languagetool.svn.sourceforge.net/languagetool/?rev=6094&view=rev
Author: dnaber
Date: 2011-12-22 18:56:42 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------
simplify i18n API call (also works around a temporary bug at transifex)
Modified Paths:
--------------
trunk/JLanguageTool/i18n_update.sh
Modified: trunk/JLanguageTool/i18n_update.sh
===================================================================
--- trunk/JLanguageTool/i18n_update.sh 2011-12-22 18:43:40 UTC (rev 6093)
+++ trunk/JLanguageTool/i18n_update.sh 2011-12-22 18:56:42 UTC (rev 6094)
@@ -13,9 +13,8 @@
do
SOURCE=downloaded.tmp
# download and hackish JSON cleanup:
- curl --user $USERNAME:$PASSWORD
https://www.transifex.net/api/2/project/languagetool/resource/messagesbundleproperties/translation/$lang/
\
- | grep "\"content\"" | sed 's/ "content": "//' | sed -e 's/",$//' |
sed -e 's/\\n/\n/g' | sed -e 's/\\\\/\\/g' \
- | sed -e 's/\\"/"/g' >$SOURCE
+ curl --user $USERNAME:$PASSWORD
https://www.transifex.net/api/2/project/languagetool/resource/messagesbundleproperties/translation/$lang/?file
>$SOURCE
+ recode latin1..utf8 $SOURCE
TARGET="../src/java/org/languagetool/MessagesBundle_${lang}.properties"
SOURCE2=downloaded.tmp.ascii
native2ascii $SOURCE >$SOURCE2
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs