created a quick tool to just export the .pot file for launchpad, and just did so

pull/14/head
Tim Su 14 years ago
parent ed85a3e43c
commit 7be9dcc778

@ -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
;;

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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

Loading…
Cancel
Save