moved the script and converted a few translated files
svn:r22661
This commit is contained in:
parent
237f4ab156
commit
8aafb09e87
|
@ -1,57 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Author: Runa A. Sandvik, <runa.sandvik@gmail.com>
|
|
||||||
# For The Tor Project, Inc.
|
|
||||||
#
|
|
||||||
# This is Free Software (GPLv3)
|
|
||||||
# http://www.gnu.org/licenses/gpl-3.0.txt
|
|
||||||
#
|
|
||||||
# This script will convert translated po files back to xml. Before
|
|
||||||
# running the script, checkout the translation directory from
|
|
||||||
# https://svn.torproject.org.
|
|
||||||
#
|
|
||||||
|
|
||||||
### Start config ###
|
|
||||||
|
|
||||||
# Location of the translated files, i.e. the path to the orbot
|
|
||||||
# directory in the translation module. Do not add the trailing slash.
|
|
||||||
translated=""
|
|
||||||
|
|
||||||
# Location of the orbot directory, i.e. the original English xml file.
|
|
||||||
# Do not add the trailing slash.
|
|
||||||
xml=""
|
|
||||||
|
|
||||||
### End config ###
|
|
||||||
|
|
||||||
# Find po files to convert.
|
|
||||||
po=`find $translated -type f -name \*.po`
|
|
||||||
|
|
||||||
# For every po found, create and/or update the translated manpage.
|
|
||||||
for file in $po ; do
|
|
||||||
|
|
||||||
# Get the basename of the file we are dealing with.
|
|
||||||
pofile=`basename $file`
|
|
||||||
|
|
||||||
# Strip the file for its original extension and add .xml.
|
|
||||||
xmlfile="${pofile%.*}.xml"
|
|
||||||
|
|
||||||
# Figure out which language we are dealing with.
|
|
||||||
lang=`dirname $file | sed "s#$translated/##"`
|
|
||||||
|
|
||||||
# The translated document is written if 80% or more of the po
|
|
||||||
# file has been translated. Also, po4a-translate will only write
|
|
||||||
# the translated document if 80% or more has been translated.
|
|
||||||
# However, it will delete the translated txt if less than 80%
|
|
||||||
# has been translated. To avoid having our current, translated
|
|
||||||
# xml files deleted, convert the po to a temp xml first. If this
|
|
||||||
# file was actually written, rename it to xml.
|
|
||||||
|
|
||||||
# Convert translated po to xml.
|
|
||||||
po4a-translate -f xml -m "$xml/values/$xmlfile" -p "$file" -l "$xml/values-$lang/tmp-$xmlfile" --master-charset utf-8 -L utf-8
|
|
||||||
|
|
||||||
# Check to see if the file was written. If yes, rename it.
|
|
||||||
if [ -e "$xml/values-$lang/tmp-$xmlfile" ]
|
|
||||||
then
|
|
||||||
mv "$xml/values-$lang/tmp-$xmlfile" "$xml/values-$lang/$xmlfile"
|
|
||||||
fi
|
|
||||||
done
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">Orbot</string>
|
||||||
|
<string name="app_version">0.0.8</string>
|
||||||
|
<string name="internal_web_url">http://orbot/</string>
|
||||||
|
<string name="default_web_url">http://check.torproject.org</string>
|
||||||
|
<string name="secure_default_web_url">https://check.torproject.org</string>
|
||||||
|
<string name="tor_check_api_url">https://check.torproject.org/?TorButton=true</string>
|
||||||
|
<string name="control_permission_label">start and stop Tor</string>
|
||||||
|
<string name="tor_proxy_service_process">torproxyservice</string>
|
||||||
|
|
||||||
|
<string name="status_starting_up">Orbot startar...</string>
|
||||||
|
<string name="status_activated">Uppkopplad till Tor nätverket</string>
|
||||||
|
<string name="status_disabled">"Orbot är inaktiverad</string>
|
||||||
|
<string name="status_shutting_down">Orbot avslutas</string>
|
||||||
|
|
||||||
|
<string name="tor_process_connecting">Startar Tor...</string>
|
||||||
|
<string name="tor_process_connecting_step2">verifierar kontroll uppkopplingen...</string>
|
||||||
|
<string name="tor_process_connecting_step3">klar.</string>
|
||||||
|
<string name="tor_process_connecting_step4">väntar.</string>
|
||||||
|
|
||||||
|
<string name="not_anonymous_yet">VARNING: Din trafik är inte anonym än! Vänligen konfigurera dina apps att använda HTTP proxy 127.0.0.1:8118 eller SOCKS4A/5 proxy 127.0.0.1:9050</string>
|
||||||
|
<string name="menu_home">Hem</string>
|
||||||
|
<string name="menu_browse">Browse</string>
|
||||||
|
<string name="menu_settings">Inställningar</string>
|
||||||
|
<string name="menu_log">Logg</string>
|
||||||
|
<string name="menu_info">Hjälp</string>
|
||||||
|
<string name="menu_apps">Apps</string>
|
||||||
|
<string name="menu_start">Start</string>
|
||||||
|
<string name="menu_stop">Stopp</string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<string name="button_help">Hjälp</string>
|
||||||
|
<string name="button_close">Stäng</string>
|
||||||
|
<string name="button_about">Om</string>
|
||||||
|
|
||||||
|
<string name="help_text_1">Orbot behöver olika inställningar beroende på vilken Android utgåva det körs på.
|
||||||
|
Besök https://www.torproject.org/docs/android.html för den senaste informationen.</string>
|
||||||
|
|
||||||
|
<string name="help_text_2">For non-rooted Android 1.x devices (G1, MyTouch3G, Hero): Please use the "ProxySurf" browser available in the Android Market, and set
|
||||||
|
the HTTP Proxy to 127.0.0.1 and port 8118, for HTTP traffic only (HTTP/S will not work).</string>
|
||||||
|
|
||||||
|
<string name="help_text_3">För chatt/IM, pröva "Beem" från Android Market, och ställ in SOCKS5 proxy till 127.0.0.1 / port 9050.</string>
|
||||||
|
|
||||||
|
<string name="help_text_4">For Android 2.x devices, you MUST ROOT your device in order for Orbot to work transparently, as there is no browser that will work for non-root devices. Otherwise, the "Beem" app will allow
|
||||||
|
you to set the SOCKS5 proxy to 127.0.0.1 and port 9050. You should also enable SSL to protect your username and password.</string>
|
||||||
|
|
||||||
|
<string name="help_text_5">If you root your device, whether it is 1.x or 2.x based, Orbot can transparently proxy any applicatons you select
|
||||||
|
and all DNS requests. This includes the built-in Browser, Gmail, YouTube and Maps, as well as any third-party app.</string>
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in New Issue