cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [36/50] [abbrv] git commit: updated refs/heads/internallb to 4c22c91
Date Tue, 30 Apr 2013 00:47:35 GMT
CLOUDSTACK-2138 - Add Arabic L10N, fix a issue with sed on OSX, detab some lines


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8e5186da
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8e5186da
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8e5186da

Branch: refs/heads/internallb
Commit: 8e5186daf1ffdf6a8c011dd803bd7b7094af1654
Parents: 4ebe046
Author: Milamber <milamber@apache.org>
Authored: Mon Apr 29 12:40:13 2013 +0100
Committer: Milamber <milamber@apache.org>
Committed: Mon Apr 29 12:40:13 2013 +0100

----------------------------------------------------------------------
 tools/transifex/sync-transifex-ui.sh |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8e5186da/tools/transifex/sync-transifex-ui.sh
----------------------------------------------------------------------
diff --git a/tools/transifex/sync-transifex-ui.sh b/tools/transifex/sync-transifex-ui.sh
index 5fb4e57..daba88d 100755
--- a/tools/transifex/sync-transifex-ui.sh
+++ b/tools/transifex/sync-transifex-ui.sh
@@ -17,7 +17,7 @@
 # under the License.
 
 SRCLANG=en
-LIST_LANG="ca de_DE es fr_FR it_IT ja ko_KR nb_NO pt_BR ru_RU zh_CN"
+LIST_LANG="ar ca de_DE es fr_FR it_IT ja ko_KR nb_NO pt_BR ru_RU zh_CN"
 
 DIRECTORY_RESOURCES="../../client/WEB-INF/classes/resources"
 WORKDIR="./work-dir"
@@ -49,8 +49,8 @@ doUploadL10NLangs()
         for CODELANG in ${LIST_LANG} ; do
                 if [ -f "${DIRECTORY_RESOURCES}/messages_${CODELANG}.properties" ]; then
                         native2ascii -reverse -encoding UTF-8 ${DIRECTORY_RESOURCES}/messages_${CODELANG}.properties
${WORKDIR}/messages_${CODELANG}.properties
-                        sed -i "s/\\\\\\\'/'/g" ${WORKDIR}/messages_${CODELANG}.properties
-        		tx set -r ${ARGUMENTS} -l ${CODELANG} ${WORKDIR}/messages_${CODELANG}.properties
+                        sed -i"" "s/\\\\\\\'/'/g" ${WORKDIR}/messages_${CODELANG}.properties
+                        tx set -r ${ARGUMENTS} -l ${CODELANG} ${WORKDIR}/messages_${CODELANG}.properties
                         tx push -t -r ${ARGUMENTS} -l ${CODELANG}
                 else   
                         echo "Warning: the resource file for language ${CODELANG} doesn't
exist."
@@ -64,8 +64,8 @@ doDownloadL10NLangs()
         for CODELANG in ${LIST_LANG} ; do
                 if [ -f "${DIRECTORY_RESOURCES}/messages_${CODELANG}.properties" ]; then
                         native2ascii -reverse -encoding UTF-8 ${DIRECTORY_RESOURCES}/messages_${CODELANG}.properties
${WORKDIR}/messages_${CODELANG}.properties
-                        sed -i "s/\\\\\\\'/'/g" ${WORKDIR}/messages_${CODELANG}.properties
-        		tx set -r ${ARGUMENTS} -l ${CODELANG} ${WORKDIR}/messages_${CODELANG}.properties
+                        sed -i"" "s/\\\\\\\'/'/g" ${WORKDIR}/messages_${CODELANG}.properties
+                        tx set -r ${ARGUMENTS} -l ${CODELANG} ${WORKDIR}/messages_${CODELANG}.properties
                 else   
                         echo "Warning: the resource file for language ${CODELANG} doesn't
exist."
                 fi
@@ -92,11 +92,11 @@ doUploadSourceLang()
         # Source language
         if [ -f ${DIRECTORY_RESOURCES}/messages.properties ]; then
                 native2ascii -reverse -encoding UTF-8 ${DIRECTORY_RESOURCES}/messages.properties
${WORKDIR}/messages.properties
-                sed -i "s/\\\\\\\'/'/g" ${WORKDIR}/messages.properties
+                sed -i"" "s/\\\\\\\'/'/g" ${WORKDIR}/messages.properties
                 tx set --source -r ${ARGUMENTS} -l ${SRCLANG} ${WORKDIR}/messages.properties
                 tx push -s -r ${ARGUMENTS} 
         else
-		echo "Warning: the source language doesn't exist!"
+                echo "Warning: the source language doesn't exist!"
         fi
 }
 
@@ -110,8 +110,8 @@ doDownloadSourceLang()
                 grep -v "^#" ${WORKDIR}/messages.properties.tmp1 | sort -f | uniq | sed "s/'/\\\\\\\\\'/g"
> ${WORKDIR}/messages.properties.tmp2
                 echo "$AL2_STRING" | cat - ${WORKDIR}/messages.properties.tmp2 > ${DIRECTORY_RESOURCES}/messages.properties
         else
-		echo "Warning: the source language hasn't been retrieve!"
-	fi
+                echo "Warning: the source language hasn't been retrieve!"
+        fi
 }
 
 if [ $# -ne 2 ]; then
@@ -119,7 +119,7 @@ if [ $# -ne 2 ]; then
 else
         COMMAND="$1"
         ARGUMENTS="$2"
-	doMakeWdir
+        doMakeWdir
 fi
 
 case "$COMMAND" in


Mime
View raw message