Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/AIFDR/inasafe

  • Loading branch information...
commit 4b35af93210be1c1812e681966740174429e387a 2 parents 989db2f + 4462695
@ismailsunni ismailsunni authored
Showing with 74 additions and 1 deletion.
  1. +51 −0 .tx/config
  2. +23 −1 scripts/create-transifex-resources.sh
View
51 .tx/config
@@ -5,306 +5,357 @@ host = https://www.transifex.com
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/postprocessors.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/postprocessors.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/postprocessors.po
type = PO
[inasafe.user-docs-faq]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/faq.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/faq.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/faq.po
type = PO
[inasafe.user-docs-CategorisedHazardBuildingImpactFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardBuildingImpactFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardBuildingImpactFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardBuildingImpactFunction.po
type = PO
[inasafe.user-docs-ITBFatalityFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/ITBFatalityFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/ITBFatalityFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/ITBFatalityFunction.po
type = PO
[inasafe.user-docs-FloodEvacuationFunctionVectorHazard]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunctionVectorHazard.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunctionVectorHazard.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunctionVectorHazard.po
type = PO
[inasafe.user-docs-FloodBuildingImpactFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/FloodBuildingImpactFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/FloodBuildingImpactFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/FloodBuildingImpactFunction.po
type = PO
[inasafe.user-docs-FloodRoadImpactFunctionExperimental]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/FloodRoadImpactFunctionExperimental.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/FloodRoadImpactFunctionExperimental.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/FloodRoadImpactFunctionExperimental.po
type = PO
[inasafe.user-docs-FloodEvacuationFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/FloodEvacuationFunction.po
type = PO
[inasafe.user-docs-VolcanoPolygonHazardPopulation]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/VolcanoPolygonHazardPopulation.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/VolcanoPolygonHazardPopulation.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/VolcanoPolygonHazardPopulation.po
type = PO
[inasafe.user-docs-EarthquakeBuildingImpactFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/EarthquakeBuildingImpactFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/EarthquakeBuildingImpactFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/EarthquakeBuildingImpactFunction.po
type = PO
[inasafe.user-docs-VolcanoBuildingImpact]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/VolcanoBuildingImpact.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/VolcanoBuildingImpact.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/VolcanoBuildingImpact.po
type = PO
[inasafe.user-docs-PadangEarthquakeBuildingDamageFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/PadangEarthquakeBuildingDamageFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/PadangEarthquakeBuildingDamageFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/PadangEarthquakeBuildingDamageFunction.po
type = PO
[inasafe.user-docs-CategorisedHazardPopulationImpactFunction]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardPopulationImpactFunction.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardPopulationImpactFunction.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_function_docs/CategorisedHazardPopulationImpactFunction.po
type = PO
[inasafe.user-docs-inasafe-projects]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/inasafe_projects.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/inasafe_projects.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/inasafe_projects.po
type = PO
[inasafe.user-docs-index]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/index.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/index.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/index.po
type = PO
[inasafe.user-docs-using-qgis]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/using-qgis.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/using-qgis.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/using-qgis.po
type = PO
[inasafe.user-docs-impact-functions]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_functions.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_functions.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_functions.po
type = PO
[inasafe.user-docs-getting-involved]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/getting_involved.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/getting_involved.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/getting_involved.po
type = PO
[inasafe.user-docs-known-issues]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/known_issues.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/known_issues.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/known_issues.po
type = PO
[inasafe.user-docs-keywords]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/keywords.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/keywords.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/keywords.po
type = PO
[inasafe.user-docs-dock]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/dock.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/dock.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/dock.po
type = PO
[inasafe.user-docs-install]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/install.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/install.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/install.po
type = PO
[inasafe.user-docs-screenshots]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/screenshots.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/screenshots.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/screenshots.po
type = PO
[inasafe.user-docs-options]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/options.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/options.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/options.po
type = PO
[inasafe.user-docs-impact-functions-doc]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/impact_functions_doc.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/impact_functions_doc.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/impact_functions_doc.po
type = PO
[inasafe.user-docs-changelog]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/changelog.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/changelog.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/changelog.po
type = PO
[inasafe.user-docs-data-types]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/data_types.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/data_types.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/data_types.po
type = PO
[inasafe.user-docs-postprocessors]
file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/postprocessors.po
source_file = docs/i18n/en/LC_MESSAGES/user-docs/postprocessors.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/user-docs/postprocessors.po
type = PO
[inasafe.developer-docs-faq]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/faq.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/faq.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/faq.po
type = PO
[inasafe.developer-docs-coding-standards]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/coding_standards.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/coding_standards.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/coding_standards.po
type = PO
[inasafe.developer-docs-index]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/index.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/index.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/index.po
type = PO
[inasafe.developer-docs-version-control]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/version_control.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/version_control.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/version_control.po
type = PO
[inasafe.developer-docs-irc]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/irc.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/irc.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/irc.po
type = PO
[inasafe.developer-docs-platform-linux]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/platform_linux.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/platform_linux.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/platform_linux.po
type = PO
[inasafe.developer-docs-maintaining-documentation]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/maintaining_documentation.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/maintaining_documentation.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/maintaining_documentation.po
type = PO
[inasafe.developer-docs-i18n]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/i18n.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/i18n.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/i18n.po
type = PO
[inasafe.developer-docs-jenkins-ci]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/jenkins_ci.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/jenkins_ci.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/jenkins_ci.po
type = PO
[inasafe.developer-docs-realtime]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/realtime.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/realtime.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/realtime.po
type = PO
[inasafe.developer-docs-preparing-test-builds]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/preparing_test_builds.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/preparing_test_builds.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/preparing_test_builds.po
type = PO
[inasafe.developer-docs-preparing-a-release]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/preparing_a_release.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/preparing_a_release.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/preparing_a_release.po
type = PO
[inasafe.developer-docs-profiling]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/profiling.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/profiling.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/profiling.po
type = PO
[inasafe.developer-docs-todo]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/todo.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/todo.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/todo.po
type = PO
[inasafe.developer-docs-logging]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/logging.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/logging.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/logging.po
type = PO
[inasafe.developer-docs-jenkins-ci-windows-slave]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/jenkins_ci_windows_slave.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/jenkins_ci_windows_slave.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/jenkins_ci_windows_slave.po
type = PO
[inasafe.developer-docs-platform-windows]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/platform_windows.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/platform_windows.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/platform_windows.po
type = PO
[inasafe.developer-docs-postprocessors]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/postprocessors.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/postprocessors.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/postprocessors.po
type = PO
[inasafe.developer-docs-bug-reporting]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/bug_reporting.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/bug_reporting.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/bug_reporting.po
type = PO
[inasafe.tutorial-docs-index]
file_filter = docs/i18n/<lang>/LC_MESSAGES/tutorial-docs/index.po
source_file = docs/i18n/en/LC_MESSAGES/tutorial-docs/index.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/tutorial-docs/index.po
type = PO
[inasafe.tutorial-docs-tutorial]
file_filter = docs/i18n/<lang>/LC_MESSAGES/tutorial-docs/tutorial.po
source_file = docs/i18n/en/LC_MESSAGES/tutorial-docs/tutorial.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/tutorial-docs/tutorial.po
type = PO
[inasafe.developer-docs-impact-function-tutorial]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/impact_function_tutorial.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/impact_function_tutorial.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/impact_function_tutorial.po
type = PO
[inasafe.developer-docs-writing-impact-functions]
file_filter = docs/i18n/<lang>/LC_MESSAGES/developer-docs/writing_impact_functions.po
source_file = docs/i18n/en/LC_MESSAGES/developer-docs/writing_impact_functions.po
source_lang = en
+trans.id = docs/i18n/id/LC_MESSAGES/developer-docs/writing_impact_functions.po
type = PO
[inasafe.safe_qgis]
View
24 scripts/create-transifex-resources.sh
@@ -12,6 +12,8 @@
# Sphinx documentation first
#
+LOCALES=id
+
for ITEM in user-docs developer-docs tutorial-docs
do
for POFILE in `find docs/i18n/en/LC_MESSAGES/${ITEM}/ -type f -name '*.po'`
@@ -23,11 +25,31 @@ do
# name when registering the resource
BASE=`basename $GENERICFILE .po`
BASE=`echo $BASE | sed 's/_/-/g' | sed 's/ /-/g'`
+ RESOURCE=inasafe.${ITEM}-$BASE
# Register each po file as a transifex resource (an individual translatable file)
- tx set -t PO --auto-local -r inasafe.${ITEM}-$BASE \
+ tx set -t PO --auto-local -r $RESOURCE \
"$GENERICFILE" \
--source-lang en \
--execute
+ # now register the languate translations for the localised po file against
+ # this resources.
+ for LOCALE in $LOCALES
+ do
+ LOCALEFILE=`echo $POFILE | sed "s/\/en\//\/$LOCALE\//g"`
+ set -x
+ tx set -r $RESOURCE -l $LOCALE "$LOCALEFILE"
+ set +x
+ done
+ # When we are done in this block we should have created a section in the
+ # .tx/config file that looks like this:
+ #
+ #
+ # [inasafe.user-docs-faq]
+ # file_filter = docs/i18n/<lang>/LC_MESSAGES/user-docs/faq.po
+ # source_file = docs/i18n/en/LC_MESSAGES/user-docs/faq.po
+ # source_lang = en
+ # trans.id = docs/i18n/id/LC_MESSAGES/user-docs/faq.po
+ # type = PO
done
done
Please sign in to comment.
Something went wrong with that request. Please try again.