Notepad3: Add to Menu Language Selector

Created on 11 Nov 2018  路  19Comments  路  Source: rizonesoft/Notepad3

See example from another notepad:

2018-11-11_21-33-04

configuration enhancement / feature req. regression

Most helpful comment

Please test development beta version _5.19.227.1622_develop.
(For beta channel, see issue #160) or download from my Google Drive.

All 19 comments

I think that an "Administration Tool" with a "Language Selection" is at the top of the "To Do" list. 馃

Why tool for editing Notepad3's advanced settings named as "Administration Tool"?

Hello @alexantr,
The name "Administration Tool" can still evolve into for "example":
"Administration Manager", "Configuration Tool", "Configuration Manager", "Settings Manager", "Settings Preferences", "Preferences Manager", "Customize Tool", "Notepad3 Options" etc...
The Name list is still open. 馃

Is this tool for absolutely all preferences? What about just "Preferences..."?

Currently, I am not involved in this project, but I read somewhere that the main goal is to easily manage the [Settings2] of Notepad3.ini. 馃

What is the the use-case for having a language selector in menu?
In other words: why do someone need to switch the language of a tool often/frequently?

Hello @RaiKoHoff , Ok, you can say, it's a nice to have. 馃槅
But it's really easier to switch to another language (and back) from a Languages Menu that go to Advanced Configuration... to edit the a [Setting2] parameter,

When: eg:

  • your mother language is anther language that the displaying language
  • you will choose another language that the Local Machine or the Fall Back
  • you do not understand very well a translation of a function and you will go to another language to see the original wordings or another translation

I can imagine a "Languages Selector" as a Sub-Menu under "Administration Tool"
But not a menu list in English as above but a menu list aka" NP++" or "PAPPS" in Localized languages.

2019-02-22_072632

The language list could be add ONCE in "common_res.rc".
For readability, I propose to add a language code as suffix at the entry language :eg: "(de-DE) Deutsch", "(hu-HU) Magyar", etc..
The list will be sorted on the language code, but with the (en-US) English (internal default) will stay on top.
Attachement: Langues Selector.txt

Another use-case can be to find the name of an option in English (to find help, submit an error...)

Hello @RaiKoHoff ,

Hereunder another testimony from the site "Notepad3/Support" who pleads for a "Language Selector":

[Rizonesoft] Support
Hi, I very like Notepad3, it's my favorite notepad since years. Now, I use version 5.18.1106.1434. I'd like to know if it is possible to change manually the language UI? My computer is ES-MX, to help me learn spanish, but my softwares are mostly in French. Notepad ask me to help translating in ES-MX, I prefer it in French, if possible. Other computers here are FR-CA, and Notepad3 ask me to help to translate in FR-CA, but FR-FR is OK. I hope my English is not so bad. Thanks for your great software! Jonathan

Perhaps a "temporary solution" is to add in Notepad3.ini [Setting2] the list of all currently available languages:

;PreferredLanguageLocaleName=en-US
;PreferredLanguageLocaleName=af-ZA
;PreferredLanguageLocaleName=be-BY
;PreferredLanguageLocaleName=de-DE
;PreferredLanguageLocaleName=en-GB
;PreferredLanguageLocaleName=es-ES
;PreferredLanguageLocaleName=fr-FR
;PreferredLanguageLocaleName=hu-HU
;PreferredLanguageLocaleName=it-IT
;PreferredLanguageLocaleName=ko-KR
;PreferredLanguageLocaleName=ja-JP
;PreferredLanguageLocaleName=nl-NL
;PreferredLanguageLocaleName=pt-BR
;PreferredLanguageLocaleName=ru-RU
;PreferredLanguageLocaleName=zh-CN

@hpwamr : Yes this would be a first step (go ahead and make the change).
A next step to make a menu entry for a language selector is not too difficult - if one can live with the drawback of (auto-)restarting Notepad3 after changed selection (which needs the current file to be saved and reload after restart, automatically).
To make a language change "on the fly", it needs some "architectural" changes within Notepad3 ... :thinking:.

  • if one can live with the drawback of (auto-)restarting Notepad3 after changed selection

Currently, with the "Notepad3.ini" solution, we have to restart Notepad3 too... 馃
Naturally, "on the fly" as NP++, it's a "dream" solution 馃槂

Please test development beta version _5.19.227.1622_develop.
(For beta channel, see issue #160) or download from my Google Drive.

Looks fine!
Good job 馃憤

@RaiKoHoff
Wonderful, 馃憤
Now I can remove my add in Notepad3.ini 馃

Language Menu refactoring to dynamic build (instead of disabled items):
Please test development beta version _5.19.227.1623_develop.
(For beta channel, see issue #160) or download from my Google Drive.

If you press Alt+F5 and set 'Display message' and then press Ctrl+F7 to open the INI file, I understand that when you change the Language you should have a warning... Am I wrong?

@jczanfona : Notepad3 recognizes that you want to change the settings manually (Ctrl+F7) and disables the "Save Settings" feature. An Exception exists for "Settings2", which are usually written to the .ini-file if they are switched. I disabled this in version _5.19.227.1623 for the preferred language selection.
Maybe we should enable it (also for consistency reasons) ... :thinking:

I think so...

I think I can close this issue. We have nice menu to change language on the fly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexantr picture alexantr  路  29Comments

RaiKoHoff picture RaiKoHoff  路  34Comments

Dothion picture Dothion  路  35Comments

zmx01403137 picture zmx01403137  路  33Comments

ghost picture ghost  路  36Comments