applyTranslation(QString)

Parent Previous Next

TW.app.applyTranslation(QString locale)


Supply a two character string for the language locale

Changes all the Menus and settings to the designated locale if available in TeXworks.


http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes


Look for the column "639-1"


In TeXworks, "en" - English is available by default.


And as of July 2011 - these languages are already available.


 

Code

Language

Other Information

af

Afrikaans


ar

Arabic


ca

Catalan


cs

Czech


de

German


en

English

Euro style (UK) (Tw default)

es

Spanish

Castilian

fa

Persian

Farsi or "Pârsi" (local name)

fo

Faroese *


fr

French


it

Italian


ja

Japanese


ko

Korean


nl

Dutch

Nederlands, Vlaams

pl

Polish


pt_BR

Portuguese

Brazilian

ru

Russian


sl

Slovene


tr

Turkish


zh_CN

Chinese (Simplified)

Zhongwén

       

* "Support for Faroese is currently limited to Tw-specific strings. I.e., the installer doesn't include Faroese (as Inno setup doesn't provide appropriate language files), and Qt doesn't support it, either (so Qt stuff like the default "OK", "Cancel", "Save", ... buttons etc. won't be translated)." - Stefan Löffler


For TeXworks specific information on translating the interface see: http://code.google.com/p/texworks/wiki/Translating



Examples:


TW.app.applyTranslation("fr");


Changes all the Menus and settings to French.


TW.app.applyTranslation("en");


Changes all the Menus and settings to English.

Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator