mirror of https://github.com/tasks/tasks
Deleting deprecated androidxml2po script. Using a2po with appropriate template names for api and android projects.
parent
5d2afe5e08
commit
4b5419cc30
@ -1,407 +0,0 @@
|
||||
# Translations template for PROJECT.
|
||||
# Copyright (C) 2012 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2012-02-29 17:17-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"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 1.0dev\n"
|
||||
|
||||
#. ==================================================== Generic Units ==
|
||||
#, c-format
|
||||
msgctxt "DUt_years:quantity=other"
|
||||
msgid "%d Years"
|
||||
msgstr ""
|
||||
|
||||
#. ==================================================== Generic Units ==
|
||||
msgctxt "DUt_years:quantity=one"
|
||||
msgid "1 Year"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_months:quantity=other"
|
||||
msgid "%d Months"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_months:quantity=one"
|
||||
msgid "1 Month"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_weeks:quantity=other"
|
||||
msgid "%d Weeks"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_weeks:quantity=one"
|
||||
msgid "1 Week"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_days:quantity=other"
|
||||
msgid "%d Days"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_days:quantity=one"
|
||||
msgid "1 Day"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_weekdays:quantity=other"
|
||||
msgid "%d Weekdays"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_weekdays:quantity=one"
|
||||
msgid "1 Weekday"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_hours:quantity=other"
|
||||
msgid "%d Hours"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_hours:quantity=one"
|
||||
msgid "1 Hour"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_minutes:quantity=other"
|
||||
msgid "%d Minutes"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_minutes:quantity=one"
|
||||
msgid "1 Minute"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_seconds:quantity=other"
|
||||
msgid "%d Seconds"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_seconds:quantity=one"
|
||||
msgid "1 Second"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_hoursShort:quantity=other"
|
||||
msgid "%d Hrs"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_hoursShort:quantity=one"
|
||||
msgid "1 Hr"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_minutesShort:quantity=other"
|
||||
msgid "%d Min"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_minutesShort:quantity=one"
|
||||
msgid "1 Min"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "DUt_secondsShort:quantity=other"
|
||||
msgid "%d Sec"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "DUt_secondsShort:quantity=one"
|
||||
msgid "1 Sec"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "Ntasks:quantity=other"
|
||||
msgid "%d tasks"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "Ntasks:quantity=one"
|
||||
msgid "1 task"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgctxt "Npeople:quantity=other"
|
||||
msgid "%d people"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "Npeople:quantity=one"
|
||||
msgid "1 person"
|
||||
msgstr ""
|
||||
|
||||
#. today
|
||||
msgctxt "today"
|
||||
msgid "Today"
|
||||
msgstr ""
|
||||
|
||||
#. tomorrow
|
||||
msgctxt "tomorrow"
|
||||
msgid "Tomorrow"
|
||||
msgstr ""
|
||||
|
||||
#. today
|
||||
msgctxt "yesterday"
|
||||
msgid "Yesterday"
|
||||
msgstr ""
|
||||
|
||||
#. tomorrow abbreviated
|
||||
msgctxt "tmrw"
|
||||
msgid "Tmrw"
|
||||
msgstr ""
|
||||
|
||||
#. today abbreviated
|
||||
msgctxt "yest"
|
||||
msgid "Yest"
|
||||
msgstr ""
|
||||
|
||||
#. ================================================== Generic Dialogs ==
|
||||
#. confirmation dialog title
|
||||
msgctxt "DLG_confirm_title"
|
||||
msgid "Confirm?"
|
||||
msgstr ""
|
||||
|
||||
#. question dialog title
|
||||
msgctxt "DLG_question_title"
|
||||
msgid "Question:"
|
||||
msgstr ""
|
||||
|
||||
#. information dialog title
|
||||
msgctxt "DLG_information_title"
|
||||
msgid "Information"
|
||||
msgstr ""
|
||||
|
||||
#. error dialog title
|
||||
msgctxt "DLG_error_title"
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
|
||||
#. general dialog save
|
||||
msgctxt "DLG_save"
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#. general dialog yes
|
||||
msgctxt "DLG_yes"
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#. general dialog no
|
||||
msgctxt "DLG_no"
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#. general dialog close
|
||||
msgctxt "DLG_close"
|
||||
msgid "Close"
|
||||
msgstr ""
|
||||
|
||||
#. general dialog done
|
||||
msgctxt "DLG_done"
|
||||
msgid "Done"
|
||||
msgstr ""
|
||||
|
||||
#. error dialog (%s => error message)
|
||||
#, c-format
|
||||
msgctxt "DLG_error"
|
||||
msgid ""
|
||||
"Oops, looks like an error occurred! Here's what happened:\n"
|
||||
"\n"
|
||||
"%s"
|
||||
msgstr ""
|
||||
|
||||
#. error dialog (no message indicated)
|
||||
msgctxt "DLG_error_generic"
|
||||
msgid "Oops, looks like an error occurred!"
|
||||
msgstr ""
|
||||
|
||||
#. Progress dialog shown when doing something slow
|
||||
msgctxt "DLG_wait"
|
||||
msgid "Please wait..."
|
||||
msgstr ""
|
||||
|
||||
#. ====================================================== SyncProvider ==
|
||||
#. Sync Notification: message when sync service active
|
||||
msgctxt "SyP_progress"
|
||||
msgid "Synchronizing your tasks..."
|
||||
msgstr ""
|
||||
|
||||
#. Sync Notification: toast when sync activated from activity
|
||||
msgctxt "SyP_progress_toast"
|
||||
msgid "Synchronizing..."
|
||||
msgstr ""
|
||||
|
||||
#. Sync Label: used in menu to denote synchronization
|
||||
msgctxt "SyP_label"
|
||||
msgid "Synchronization"
|
||||
msgstr ""
|
||||
|
||||
#. Error msg when io exception
|
||||
msgctxt "SyP_ioerror"
|
||||
msgid "Connection Error! Check your Internet connection."
|
||||
msgstr ""
|
||||
|
||||
#. ================================================== SyncPreferences ==
|
||||
#. Status Group Label
|
||||
msgctxt "sync_SPr_group_status"
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: log in
|
||||
msgctxt "sync_status_loggedout"
|
||||
msgid "Not Logged In!"
|
||||
msgstr ""
|
||||
|
||||
#. Status: ongoing
|
||||
msgctxt "sync_status_ongoing"
|
||||
msgid "Sync Ongoing..."
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: success status (%s -> last sync date). Keep it short!
|
||||
#, c-format
|
||||
msgctxt "sync_status_success"
|
||||
msgid ""
|
||||
"Last Sync:\n"
|
||||
"%s"
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: failure status (%s -> last attempted sync date)
|
||||
#, c-format
|
||||
msgctxt "sync_status_failed"
|
||||
msgid "Failed On: %s"
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: error status (%s -> last sync date)
|
||||
#, c-format
|
||||
msgctxt "sync_status_errors"
|
||||
msgid "Sync w/ Errors: %s"
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: error subtitle (%s -> last successful sync date)
|
||||
#, c-format
|
||||
msgctxt "sync_status_failed_subtitle"
|
||||
msgid "Last Successful Sync: %s"
|
||||
msgstr ""
|
||||
|
||||
#. Sync Status: never sync'd
|
||||
msgctxt "sync_status_never"
|
||||
msgid "Never Synchronized!"
|
||||
msgstr ""
|
||||
|
||||
#. Options Group Label
|
||||
msgctxt "sync_SPr_group_options"
|
||||
msgid "Options"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Synchronization Interval Title
|
||||
msgctxt "sync_SPr_interval_title"
|
||||
msgid "Background Sync"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Synchronization Interval Description (when disabled)
|
||||
msgctxt "sync_SPr_interval_desc_disabled"
|
||||
msgid "Background synchronization is disabled"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Synchronization Interval Description (%s => setting)
|
||||
#, c-format
|
||||
msgctxt "sync_SPr_interval_desc"
|
||||
msgid "Currently set to: %s"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Background Wifi Title
|
||||
msgctxt "sync_SPr_bgwifi_title"
|
||||
msgid "Wifi Only Setting"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Background Wifi Description (enabled)
|
||||
msgctxt "sync_SPr_bgwifi_desc_enabled"
|
||||
msgid "Background synchronization only happens when on Wifi"
|
||||
msgstr ""
|
||||
|
||||
#. Preference: Background Wifi Description (disabled)
|
||||
msgctxt "sync_SPr_bgwifi_desc_disabled"
|
||||
msgid "Background synchronization will always occur"
|
||||
msgstr ""
|
||||
|
||||
#. Actions Group Label
|
||||
msgctxt "sync_SPr_group_actions"
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
#. Synchronize Now Button
|
||||
msgctxt "sync_SPr_sync"
|
||||
msgid "Synchronize Now!"
|
||||
msgstr ""
|
||||
|
||||
#. Synchronize Now Button if not logged in
|
||||
msgctxt "sync_SPr_sync_log_in"
|
||||
msgid "Log In & Synchronize!"
|
||||
msgstr ""
|
||||
|
||||
#. Sync: Prefix string before logged in identifier
|
||||
msgctxt "sync_SPr_logged_in_prefix"
|
||||
msgid "Logged in as:"
|
||||
msgstr ""
|
||||
|
||||
#. Sync: Clear Data Title
|
||||
msgctxt "sync_SPr_forget"
|
||||
msgid "Log Out"
|
||||
msgstr ""
|
||||
|
||||
#. Sync: Clear Data Description
|
||||
msgctxt "sync_SPr_forget_description"
|
||||
msgid "Clears all synchronization data"
|
||||
msgstr ""
|
||||
|
||||
#. confirmation dialog for sync log out
|
||||
msgctxt "sync_forget_confirm"
|
||||
msgid "Log out / clear synchronization data?"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:0"
|
||||
msgid "disable"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:1"
|
||||
msgid "every fifteen minutes"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:2"
|
||||
msgid "every thirty minutes"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:3"
|
||||
msgid "every hour"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:4"
|
||||
msgid "every three hours"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:5"
|
||||
msgid "every six hours"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:6"
|
||||
msgid "every twelve hours"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:7"
|
||||
msgid "every day"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:8"
|
||||
msgid "every three days"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "sync_SPr_interval_entries:9"
|
||||
msgid "every week"
|
||||
msgstr ""
|
||||
|
||||
@ -1,149 +0,0 @@
|
||||
#!/bin/bash
|
||||
###############################################################################
|
||||
#
|
||||
# Wrapper for xml2po for android and launchpad: Import .xml's from .po's,
|
||||
# or export/update .po's from string.xml's. Provide a string with value
|
||||
# "translator-credits" for Launchpad.
|
||||
#
|
||||
# Copyright (C) 2009 pjv, modified by Tim Su <tim@todoroo.com>
|
||||
#
|
||||
# This file is part of OpenIntents Androidxml2po.
|
||||
#
|
||||
# OpenIntents Androidxml2po is free software: you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# OpenIntents Androidxml2po is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with OpenIntents Androidxml2po. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
###############################################################################
|
||||
# Using this file:
|
||||
#
|
||||
# 1. check out android supported locales:
|
||||
# http://developer.android.com/sdk/android-2.2.html#locs
|
||||
# 2. update your translations folder
|
||||
# 3. update the po_lang and res_lang strings
|
||||
|
||||
if [ ! -e /usr/bin/gettext ]; then
|
||||
echo "WARNING: gettext not detected - try apt-get install gettext"
|
||||
fi
|
||||
|
||||
# Set the languages here (po -> name of .po file. res -> name of res folder)
|
||||
po_lang=( "ca" "cs" "da" "de" "es" "fr" "he" "it" "ja" "ko" "nb" "nl" "pl" "pt" "pt_BR" "ru" "sv" "th" "tr" "zh_CN" "zh_TW")
|
||||
res_lang=("ca" "cs" "da" "de" "es" "fr" "he" "it" "ja" "ko" "nb" "nl" "pl" "pt" "pt-rBR" "ru" "sv" "th" "tr" "zh-rCN" "zh-rTW")
|
||||
|
||||
#Change the dirs where the files are located.
|
||||
launchpad_po_files_dir="translations"
|
||||
launchpad_pot_file_dir="translations"
|
||||
|
||||
folder="astrid"
|
||||
if [ "$2" != "" ]; then
|
||||
echo "Operating on folder $2"
|
||||
folder="$2"
|
||||
fi
|
||||
android_xml_files_res_dir="${folder}/res/values"
|
||||
|
||||
#Change the typical filenames.
|
||||
android_xml_filenames="strings"
|
||||
#Location of xml2po
|
||||
xml2po="`dirname $0`/xml2po.py"
|
||||
catxml="`dirname $0`/catxml"
|
||||
|
||||
function cat_all_xml() {
|
||||
${catxml} "${android_xml_files_res_dir}"/"${resource_file}"-*.xml api/res/values/${resource_file}*.xml \
|
||||
../astrid-plugins/astrid-power-pack/res/values/${resource_file}*.xml \
|
||||
> "${launchpad_pot_file_dir}/${resource_file}".xml
|
||||
}
|
||||
|
||||
function import_po2xml
|
||||
{
|
||||
for resource_file in $android_xml_filenames; do
|
||||
echo "Concatenating strings into single XML"
|
||||
${catxml} "${android_xml_files_res_dir}"/"${resource_file}"*.xml > "${launchpad_pot_file_dir}/${resource_file}".xml
|
||||
echo "Importing .xml from .pot: $resource_file"
|
||||
for (( i=0 ; i<${#po_lang[*]} ; i=i+1 )); do
|
||||
echo " Importing .xml from .po for "${resource_file}-${po_lang[i]}""
|
||||
mkdir -p "${android_xml_files_res_dir}"-"${res_lang[i]}"
|
||||
${xml2po} -a -l "${po_lang[i]}" -p "${launchpad_po_files_dir}/${resource_file}"-"${po_lang[i]}".po \
|
||||
"${launchpad_pot_file_dir}"/"${resource_file}".xml > "${android_xml_files_res_dir}"-"${res_lang[i]}"/"${resource_file}".xml
|
||||
done
|
||||
done
|
||||
rm -f .xml2po.mo
|
||||
sed -i 's/\\\\/\\/g' ${android_xml_files_res_dir}-*/*
|
||||
}
|
||||
|
||||
function export_xml2po
|
||||
{
|
||||
for resource_file in $android_xml_filenames; do
|
||||
echo "Concatenating strings into single XML"
|
||||
cat_all_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"
|
||||
|
||||
for (( i=0 ; i<${#po_lang[*]} ; i=i+1 )); do
|
||||
echo " Exporting .xml to updated .po for "${resource_file}-${po_lang[i]}
|
||||
${xml2po} -a \
|
||||
-r "${android_xml_files_res_dir}"-"${res_lang[i]}"/"${resource_file}".xml \
|
||||
"${launchpad_pot_file_dir}"/"${resource_file}".xml > \
|
||||
"${launchpad_po_files_dir}/${resource_file}"-"${po_lang[i]}".po
|
||||
msguniq "${launchpad_po_files_dir}/${resource_file}"-"${po_lang[i]}".po -o "${launchpad_po_files_dir}/${resource_file}"-"${po_lang[i]}".po
|
||||
done
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
function export_pot
|
||||
{
|
||||
for resource_file in $android_xml_filenames; do
|
||||
echo "Concatenating strings into single XML"
|
||||
cat_all_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. (NOTE: SUPER BROKEN)"
|
||||
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."
|
||||
}
|
||||
|
||||
###Main
|
||||
while [ "$1" != "" ]; do
|
||||
case $1 in
|
||||
-i | --po2xml | --import ) shift
|
||||
import_po2xml
|
||||
exit
|
||||
;;
|
||||
-e | --xml2po | --export ) export_xml2po
|
||||
exit
|
||||
;;
|
||||
-t | --pot ) export_pot
|
||||
exit
|
||||
;;
|
||||
-h | --help ) usage
|
||||
exit
|
||||
;;
|
||||
* ) usage
|
||||
exit 1
|
||||
esac
|
||||
shift
|
||||
done
|
||||
usage
|
||||
|
||||
Loading…
Reference in New Issue