Language initialisation
Language initialisation
I am wondering what PM is looking for when it starts? For example, if I edit pref.js to change the language setting, when PM starts it is defaulting to en-US and removing that new language line. I assume that it is initially looking for something in particular, and after not finding it, reverts to en-US.
pref("general.useragent.locale", "ja");
However it only fails with the latest language (ja) that I have added. Changing to any of the other installed languages works ok.
I have WinMerge compared the JA resources with all of the other language resources and cannot find anything missing or out of place.
So the questions is: what is PM looking for at startup that it cannot find?
pref("general.useragent.locale", "ja");
However it only fails with the latest language (ja) that I have added. Changing to any of the other installed languages works ok.
I have WinMerge compared the JA resources with all of the other language resources and cannot find anything missing or out of place.
So the questions is: what is PM looking for at startup that it cannot find?
Re: Language initialisation
I have checked the code over and over and over. Now wondering if I can create a build that logs startup to be able to find what the browser cannot find that makes it default to english.
Tried running the browser from a console using the -safe-mode switch and got the window for safe-mode options which was in Japanese. But even in safe-mode it crashes and restarts in english. So at least I discovered that it is crashing, then changing prefs.js and then restarting, and that may be why running from the console with the -console switch shows no records... closes with the crash and restarts on its own.
Any suggestions?
Tried running the browser from a console using the -safe-mode switch and got the window for safe-mode options which was in Japanese. But even in safe-mode it crashes and restarts in english. So at least I discovered that it is crashing, then changing prefs.js and then restarting, and that may be why running from the console with the -console switch shows no records... closes with the crash and restarts on its own.
Any suggestions?
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Language initialisation
Actually I'm not too sure what you are trying to do...
Are you trying to get the UI in japanese? You need a language pack for that: https://addons.palemoon.org/language-packs/
Apparently japanese isn't there, but you can help out.
Are you trying to get the UI in japanese? You need a language pack for that: https://addons.palemoon.org/language-packs/
Apparently japanese isn't there, but you can help out.
Re: Language initialisation
Language packs are not applicable. The language files, which are quite small, are included in the browser so that they can be selected on install. I had no problems before with many languages, that is, until I added this new one which is causing crash/language flush/restart as described earlier.
So the question remains: what could the browser be checking at startup or failing to load?
There must be language check for it to shutdown, reset prefs.js to default (en) and then restart. Which script could be doing that?
So the question remains: what could the browser be checking at startup or failing to load?
There must be language check for it to shutdown, reset prefs.js to default (en) and then restart. Which script could be doing that?
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Language initialisation
I still don't understand what you are trying to do.
Is it about the UI, or something else?
Why aren't language packs not appliable?
Is it about the UI, or something else?
Why aren't language packs not appliable?
Re: Language initialisation
He doesn't know what he is talking about. Perhaps he assumes we do localized builds like Mozilla does. We don't and never have.. Expecting us to do 20-140 localized builds every release is insane to expect from a project without millions of Google Dollars to burn especially since our fantastic capacity for add-ons already contains the capability of Language Packs.
Remember, locales came first as add-ons long before Mozilla's inflated buget needed to be justified in assembly line build compilation every four weeks.
So to the OP get a clue or get lost. What you are saying ranges from not applicable to not intelligible.
Remember, locales came first as add-ons long before Mozilla's inflated buget needed to be justified in assembly line build compilation every four weeks.
So to the OP get a clue or get lost. What you are saying ranges from not applicable to not intelligible.
Re: Language initialisation
Language packs may suit your game plan, but we need to enable the user to select their language on first start. Not everyone can read English.
As for practicality, we have been running the one browser with 20+ languages for some time and the only issue has been with the recent addition of Japanese. No problem with Chinese, Korean, Russian or any other language that requires Unicode pages.
My question was about the browser start sequence and what it is checking to decide to crash and restart with English as a default? But if you don't know, there is no need to haze the question.
As for practicality, we have been running the one browser with 20+ languages for some time and the only issue has been with the recent addition of Japanese. No problem with Chinese, Korean, Russian or any other language that requires Unicode pages.
My question was about the browser start sequence and what it is checking to decide to crash and restart with English as a default? But if you don't know, there is no need to haze the question.
Re: Language initialisation
Pale Moon is an en-US product. There is no way for a user to switch to a language that hasn't been installed as a Language Pack. We aren't going to change that or bundle them all with the browser as it is thousands and thousands of strings times the number of locales. Tons of bloat for everyone. We have Language Packs, use them.
RESOLVED WONTFIX
RESOLVED WONTFIX
-
- Knows the dark side
- Posts: 4981
- Joined: 2015-12-09, 15:45
Re: Language initialisation
See this thread about deploying a customized installation of Pale Moon using techniques carried over from Firefox 24 and earlier (Moonchild talks about this further down in the replies). Maybe you can create a bundle for each separate language with a pre-installed language pack.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Re: Language initialisation
But there is and we have been using it for a few years now. The sum of 20+ languages is actually not much at all.New Tobin Paradigm wrote: ↑2021-01-08, 06:24There is no way for a user to switch to a language that hasn't been installed as a Language Pack.
But don't worry, I will eventually find the solution to the problem of this additional language.
Re: Language initialisation
How is that relevant? So far I heave received responses from members who seemingly cannot read english. I can only repeat the quest so many times before...
-
- Pale Moon guru
- Posts: 35640
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Language initialisation
It's relevant in several ways, not in the least redist licensing of the browser.
However, without telling us what exactly you are doing and how you are packaging the languages with the browser, there's no way to tell what might be your issue.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Pale Moon guru
- Posts: 35640
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Language initialisation
Of course it hasn't.
But without telling us more, we can't help.
But without telling us more, we can't help.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Language initialisation
There is no mode of operation that describes what you are asking.
-
- Pale Moon guru
- Posts: 35640
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Language initialisation
Without more information I can only -guess- that they are running into the safeguard we put in place to make sure that incompatible/broken language packs don't leave the user with an unusable browser (i.e. when the browser cannot initialize its main window). It will reset the locale to a known-good state in that case. That is by design and entirely to make sure the user isn't left with something completely broken. That does mean however that your "ja" language is broken and can't be used.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Language initialisation
Could be that but if it is it was very poorly explained by them. Whomever they actually ARE.
-
- Knows the dark side
- Posts: 4981
- Joined: 2015-12-09, 15:45
Re: Language initialisation
Wrong response. Start with telling us what exactly you're trying to accomplish and then you'll get to know whether this approach is even the right one.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX