cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seb...@apache.org
Subject [1/5] more localization setup
Date Wed, 05 Mar 2014 17:21:47 GMT
Repository: cloudstack-docs-rn
Updated Branches:
  refs/heads/master 9ec2ce052 -> 39b50ffbf


http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/39b50ffb/utils/settx.sh
----------------------------------------------------------------------
diff --git a/utils/settx.sh b/utils/settx.sh
new file mode 100755
index 0000000..5ff9602
--- /dev/null
+++ b/utils/settx.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+#Licensed to the Apache Software Foundation (ASF) under one
+#or more contributor license agreements.  See the NOTICE file
+#distributed with this work for additional information
+#regarding copyright ownership.  The ASF licenses this file
+#to you under the Apache License, Version 2.0 (the
+#"License"); you may not use this file except in compliance
+#with the License.  You may obtain a copy of the License at
+#http://www.apache.org/licenses/LICENSE-2.0
+#Unless required by applicable law or agreed to in writing,
+#software distributed under the License is distributed on an
+#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#KIND, either express or implied.  See the License for the
+#specific language governing permissions and limitations
+#under the License.
+
+for file in `ls pot | grep .pot`; do
+    resource=`basename $file .pot`
+    echo $resource
+    tx set -t PO --auto-local -r apache-cloudstack-release-notes-rtd.$resource "<lang>/$resource.po"
\
+    --source-lang=en \
+    --source-file "pot/$resource.pot" --execute
+done


Mime
View raw message