Changeset 473

Show
Ignore:
Timestamp:
03/24/06 11:20:46 (3 years ago)
Author:
edmanm
Message:

Add a way to load translations at runtime.

Location:
trunk/src/lang
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/lang/lang.pri

    r468 r473  
     1################################################################# 
     2#  $Id$ 
     3# 
     4#  Vidalia is distributed under the following license: 
     5# 
     6#  Copyright (C) 2006,  Matt Edman, Justin Hipple 
     7# 
     8#  This program is free software; you can redistribute it and/or 
     9#  modify it under the terms of the GNU General Public License 
     10#  as published by the Free Software Foundation; either version 2 
     11#  of the License, or (at your option) any later version. 
     12# 
     13#  This program is distributed in the hope that it will be useful, 
     14#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
     15#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     16#  GNU General Public License for more details. 
     17# 
     18#  You should have received a copy of the GNU General Public License 
     19#  along with this program; if not, write to the Free Software 
     20#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA   
     21#  02110-1301, USA. 
     22################################################################# 
    123 
    224TRANSLATIONS += $$PWD/vidalia_en.ts 
    325 
     26RESOURCES += $$PWD/lang.qrc 
     27 
  • trunk/src/lang/vidalia_en.ts

    r468 r473  
    3838        <translation type="unfinished"></translation> 
    3939    </message> 
     40    <message> 
     41        <source>Hide License</source> 
     42        <translation type="unfinished"></translation> 
     43    </message> 
     44    <message> 
     45        <source>&lt;Not Running&gt;</source> 
     46        <translation type="unfinished"></translation> 
     47    </message> 
    4048</context> 
    4149<context> 
     
    5058    </message> 
    5159    <message> 
    52         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Since:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    53         <translation type="unfinished"></translation> 
    54     </message> 
    55     <message> 
    56         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Jan 26 00:55:07&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    57         <translation type="unfinished"></translation> 
    58     </message> 
    59     <message> 
    6060        <source>Reset</source> 
    6161        <translation type="unfinished"></translation> 
     
    7070    </message> 
    7171    <message> 
    72         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;100&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    73         <translation type="unfinished"></translation> 
    74     </message> 
    75     <message> 
    76         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;% Opaque&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    77         <translation type="unfinished"></translation> 
    78     </message> 
    79     <message> 
    8072        <source>Changes the transparency of the Bandwidth Graph</source> 
    8173        <translation type="unfinished"></translation> 
     
    8779    <message> 
    8880        <source>Cancel</source> 
     81        <translation type="unfinished"></translation> 
     82    </message> 
     83    <message> 
     84        <source>Since:</source> 
     85        <translation type="unfinished"></translation> 
     86    </message> 
     87    <message> 
     88        <source>Jan 1 2000</source> 
     89        <translation type="unfinished"></translation> 
     90    </message> 
     91    <message> 
     92        <source>100</source> 
     93        <translation type="unfinished"></translation> 
     94    </message> 
     95    <message> 
     96        <source>% Opaque</source> 
     97        <translation type="unfinished"></translation> 
     98    </message> 
     99    <message> 
     100        <source>Hide Settings</source> 
    89101        <translation type="unfinished"></translation> 
    90102    </message> 
     
    157169    </message> 
    158170    <message> 
    159         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Address:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    160         <translation type="unfinished"></translation> 
    161     </message> 
    162     <message> 
    163171        <source>Attempts to determine the correct address for your server</source> 
    164172        <translation type="unfinished"></translation> 
     
    173181    </message> 
    174182    <message> 
    175         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;Required Fields&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    176         <translation type="unfinished"></translation> 
    177     </message> 
    178     <message> 
    179183        <source>If selected, clients will not exit the Tor network through your server</source> 
    180184        <translation type="unfinished"></translation> 
     
    193197    </message> 
    194198    <message> 
    195         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Directory Port:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    196         <translation type="unfinished"></translation> 
    197     </message> 
    198     <message> 
    199199        <source>Directory Port Number</source> 
    200200        <translation type="unfinished"></translation> 
    201201    </message> 
    202202    <message> 
    203         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;Server Port:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    204         <translation type="unfinished"></translation> 
    205     </message> 
    206     <message> 
    207203        <source>Port on which users and other servers can communicate with your server</source> 
    208204        <translation type="unfinished"></translation> 
    209205    </message> 
    210206    <message> 
    211         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Contact Info:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    212         <translation type="unfinished"></translation> 
    213     </message> 
    214     <message> 
    215207        <source>Email address at which you may be reached if there is a problem with your server</source> 
    216208        <translation type="unfinished"></translation> 
    217209    </message> 
    218210    <message> 
    219         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;Nickname:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    220         <translation type="unfinished"></translation> 
    221     </message> 
    222     <message> 
    223211        <source>Name of your server</source> 
    224212        <translation type="unfinished"></translation> 
     
    333321    </message> 
    334322    <message> 
    335         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Run as User:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    336         <translation type="unfinished"></translation> 
    337     </message> 
    338     <message> 
    339323        <source>Vidalia will run with this User&apos;s permissions</source> 
    340         <translation type="unfinished"></translation> 
    341     </message> 
    342     <message> 
    343         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Run as Group:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    344324        <translation type="unfinished"></translation> 
    345325    </message> 
     
    395375        <translation type="unfinished"></translation> 
    396376    </message> 
     377    <message> 
     378        <source>Address:</source> 
     379        <translation type="unfinished"></translation> 
     380    </message> 
     381    <message> 
     382        <source>Nickname and Server Port are required</source> 
     383        <translation type="unfinished"></translation> 
     384    </message> 
     385    <message> 
     386        <source>Directory Port:</source> 
     387        <translation type="unfinished"></translation> 
     388    </message> 
     389    <message> 
     390        <source>Server Port:</source> 
     391        <translation type="unfinished"></translation> 
     392    </message> 
     393    <message> 
     394        <source>Contact Info:</source> 
     395        <translation type="unfinished"></translation> 
     396    </message> 
     397    <message> 
     398        <source>Nickname:</source> 
     399        <translation type="unfinished"></translation> 
     400    </message> 
     401    <message> 
     402        <source>Run as User:</source> 
     403        <translation type="unfinished"></translation> 
     404    </message> 
     405    <message> 
     406        <source>Run as Group:</source> 
     407        <translation type="unfinished"></translation> 
     408    </message> 
     409    <message> 
     410        <source>You must specify at least a server nickname and port.</source> 
     411        <translation type="unfinished"></translation> 
     412    </message> 
    397413</context> 
    398414<context> 
     
    407423        <translation type="unfinished"></translation> 
    408424    </message> 
     425    <message> 
     426        <source>Error disconnecting socket. [%1]</source> 
     427        <translation type="unfinished"></translation> 
     428    </message> 
     429    <message> 
     430        <source>Error sending control command. [%1]</source> 
     431        <translation type="unfinished"></translation> 
     432    </message> 
     433    <message> 
     434        <source>Socket disconnected while attempting to read a line of data.</source> 
     435        <translation type="unfinished"></translation> 
     436    </message> 
     437    <message> 
     438        <source>Invalid control reply. [%1]</source> 
     439        <translation type="unfinished"></translation> 
     440    </message> 
    409441</context> 
    410442<context> 
     
    442474    </message> 
    443475    <message> 
    444         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Find:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    445         <translation type="unfinished"></translation> 
    446     </message> 
    447     <message> 
    448476        <source>Find Previous</source> 
    449477        <translation type="unfinished"></translation> 
     
    458486    </message> 
    459487    <message> 
    460         <source>Match entire phrase</source> 
    461         <translation type="unfinished"></translation> 
    462     </message> 
    463     <message> 
    464488        <source>Contents</source> 
    465489        <translation type="unfinished"></translation> 
     
    474498    </message> 
    475499    <message> 
    476         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Searching for:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    477         <translation type="unfinished"></translation> 
    478     </message> 
    479     <message> 
    480500        <source>Found Documents</source> 
    481501        <translation type="unfinished"></translation> 
     
    555575    <message> 
    556576        <source>Text not found in document</source> 
     577        <translation type="unfinished"></translation> 
     578    </message> 
     579    <message> 
     580        <source>Find:</source> 
     581        <translation type="unfinished"></translation> 
     582    </message> 
     583    <message> 
     584        <source>Whole words only</source> 
     585        <translation type="unfinished"></translation> 
     586    </message> 
     587    <message> 
     588        <source>Searching for:</source> 
     589        <translation type="unfinished"></translation> 
     590    </message> 
     591    <message> 
     592        <source>Supplied XML file is not a valid Contents document.</source> 
     593        <translation type="unfinished"></translation> 
     594    </message> 
     595    <message> 
     596        <source>Found %1 results</source> 
    557597        <translation type="unfinished"></translation> 
    558598    </message> 
     
    763803    </message> 
    764804    <message> 
    765         <source>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:Arial; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;% Opaque&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> 
    766         <translation type="unfinished"></translation> 
    767     </message> 
    768     <message> 
    769805        <source>Changes the transparency of the Message Log</source> 
    770806        <translation type="unfinished"></translation> 
     
    9841020        <translation type="unfinished"></translation> 
    9851021    </message> 
     1022    <message> 
     1023        <source>% Opaque</source> 
     1024        <translation type="unfinished"></translation> 
     1025    </message> 
     1026    <message> 
     1027        <source>Messages Shown: %1</source> 
     1028        <translation type="unfinished"></translation> 
     1029    </message> 
     1030    <message> 
     1031        <source>%1 [%2] %3 
     1032</source> 
     1033        <translation type="unfinished"></translation> 
     1034    </message> 
     1035    <message> 
     1036        <source>Hide Settings</source> 
     1037        <translation type="unfinished"></translation> 
     1038    </message> 
     1039</context> 
     1040<context> 
     1041    <name>TorProcess</name> 
     1042    <message> 
     1043        <source>&quot;%1&quot; is not an executable.</source> 
     1044        <translation type="unfinished"></translation> 
     1045    </message> 
     1046    <message> 
     1047        <source>Process %1 failed to stop. [%2]</source> 
     1048        <translation type="unfinished"></translation> 
     1049    </message> 
     1050    <message> 
     1051        <source>Failed to start</source> 
     1052        <translation type="unfinished"></translation> 
     1053    </message> 
     1054    <message> 
     1055        <source>Crashed</source> 
     1056        <translation type="unfinished"></translation> 
     1057    </message> 
     1058    <message> 
     1059        <source>Timed out</source> 
     1060        <translation type="unfinished"></translation> 
     1061    </message> 
     1062    <message> 
     1063        <source>Write error</source> 
     1064        <translation type="unfinished"></translation> 
     1065    </message> 
     1066    <message> 
     1067        <source>Read error</source> 
     1068        <translation type="unfinished"></translation> 
     1069    </message> 
     1070    <message> 
     1071        <source>Unknown error</source> 
     1072        <translation type="unfinished"></translation> 
     1073    </message> 
    9861074</context> 
    9871075</TS>