GUI Charset for localization
-
In non-latin languagies (Arabic, Chinese, Cyrillic) may be need use charset=UTF-8 for correct symbol display
/usr/local/www/head.inc
may be replace as
if isset($g['gui_charset']) echo ""; else echo ""; ?>And globals variable $g['gui_charset'], if need, can be defined as $g['gui_charset'] = "UTF-8";
What are your opinions?
-
-
What are your opinions?
IMO, UTF-8 should be really the default pretty much everywhere. :D
I do not know all the specifics of the GUI, so the question to the Guru
I want to make it more user-friendly localization mechanism -
I want to make it more user-friendly localization mechanism
Well yes, there is no reason for the encoding to default to things like ISO-8859-1, nor any reason for similar workarounds. IOW, instead of the suggested, make it:
- + -
dvserg,
Take a look at this commit, this is the Turkish Language, but the updates made should make it easier for other languages as well:
WebGUI Auto Codeset and Language Dynamics & pfSense.pot updates
It is not just /usr/local/www/head.inc that needs to be changed.
-
I think this approach is not the right
To add a new language requires changing the system functions.
Perhaps it is best to search pfsense.mo files, compiling a list of languages on it.
And MO Files Management (add / delete / replace) possible make as separate package as my old package for 2.0.х
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy