You can teach Notepad++ to speak your mother tongue: just download english.xml and translate it into your language.
Choosing your translation
When some localisation is selected from the Settings -> Preferences -> General main list, Notepad++ translates its user interface to this language. When using the installer, you are asked to choose a language. The default is english.
You can also use the command line to override this choice using the -L<language code> switch. The language codes are actually locale codes with one or two levels. The supported list is as follows:
- Some codes are equivalent. When listed explicitly, they are separated by commas.
- Usually, when a second level locale is not specifically supported, it collapses to its first level. For instance, the code "es-ve" will collapse to "es" for standard spanish. Yet "es-ar" has its own entry for Argentinian, so it does not collapse.
- Currently thee is no code to switch rto english.xml or english_customizable.xml.
|Language .xml file name||Code|
|chinese||zh-tw, zh-hk, zh-sg|
|korean||ko, ko-kp, ko-kr|
General notes for translators:
- All the English words in the 'name' attribute should be translated.
- All the numbers which are not in the 'name' attribute (the attributes 'id', 'order', 'posX' and 'posY') should NOT be changed.
- & in the Tag Menu is &, it takes effect (draw a underline on a letter) when user pushes the Alt key. So it's up to you to change its position, it depends on the menu convention of your language.
- Try not to make your translations longer than the English captions, since the controls in dialogs won’t be resized dynamically. Since the english language tends to be terse, some margin has been set aside for longer translations - when possible.
The translation of 'Paste' in French is 'Coller', so the XML Tag translation from English to French should be:
<Item id="42005" name="&Paste"/>
<Item id="42005" name="C&oller"/>
assuming the & is correclty placed. This depends on language conventions and menu contents.
How to test your translation:
- Rename english.xml to nativeLang.xml
- Click Start->Run to have the run box, type %APPDATA%\Notepad++ in it and Enter. An opened directory window will appear. If the Notepad++ Install Folder is elsewhere, that is the path you should enter.
- Copy nativeLang.xml into the opened directory.
- Exit Notepad++ then relaunch it.
Removing nativeLang.xml will restore the English version. If there was a mistake in the localisation file, and that the mnu system was missing entries as a result, this action may bring them back.
In order to enable RTL mode in Notepad++, you need to add RTL="yes" to the Native-Langue node, resulting in:
Using the "no" value or omitting the attribute will set Notepad++ to use LTR mode (default). Note that the Scintilla component can be set to LTR or RTL independently from Notepad++, but it will default to the type of the language.