diff --git a/bin/androidxml2po.bash b/bin/androidxml2po.bash index 4d3e18dc0..4cfe99bf5 100755 --- a/bin/androidxml2po.bash +++ b/bin/androidxml2po.bash @@ -95,11 +95,24 @@ function export_xml2po } +function export_pot +{ + for resource_file in $android_xml_filenames; do + echo "Concatenating strings into single XML" + ${catxml} "${android_xml_files_res_dir}"/"${resource_file}"-*.xml ../astridApi/res/values/${resource_file}*.xml > "${launchpad_pot_file_dir}/${resource_file}".xml + echo "Exporting .xml to .pot: $resource_file" + ${xml2po} -a -l en -o \ + "${launchpad_pot_file_dir}/${resource_file}".pot \ + "${launchpad_pot_file_dir}/${resource_file}.xml" + done + +} function usage { echo "Wrapper for xml2po for android and launchpad." echo "Usage: androidxml2po -i Import .xml's from .po's. Updates the .xml's." echo " androidxml2po -e Export/update .po's from string.xml's. Overwrites the .pot and merges the .po's." + echo " androidxml2po -t Export/update .pot file" echo "Set variables correctly inside. Provide a string with value "translator-credits" for Launchpad." echo "" echo "Copyright 2009 by pjv. Licensed under GPLv3." @@ -115,6 +128,9 @@ while [ "$1" != "" ]; do -e | --xml2po | --export ) export_xml2po exit ;; + -t | --pot ) export_pot + exit + ;; -h | --help ) usage exit ;; diff --git a/translations/strings.pot b/translations/strings.pot index abe4b8891..3db31eaa1 100644 --- a/translations/strings.pot +++ b/translations/strings.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-11-09 17:28-0800\n" +"POT-Creation-Date: 2010-11-10 17:59-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -586,13 +586,13 @@ msgid "Week before due" msgstr "" #. Add Ons tab when no add-ons found -#: translations/strings.xml:401( name="TEA_no_addons") -msgid "No Add-ons Found!" +#: translations/strings.xml:401( name="TEA_addons_text") +msgid "Looking for more features?" msgstr "" #. Add Ons button #: translations/strings.xml:404( name="TEA_addons_button") -msgid "Get Some Add-ons" +msgid "Get the Power Pack!" msgstr "" #. Introduction Window title