commandline parameters for XULRunner localization story

RESOLVED WORKSFORME

Status

Toolkit Graveyard
XULRunner
--
enhancement
RESOLVED WORKSFORME
13 years ago
2 years ago

People

(Reporter: Andreas Otte, Unassigned)

Tracking

Details

(Reporter)

Description

13 years ago
For running XULRunner applications with different locales as a minimum something
like the commandline parameters for this purpose used in firefox are needed: 

-UILocale <locale> 
(Start with <locale> resources as UI Locale)
-contentLocale <locale> 
(Start with <locale> resources as content)

Comment 1

13 years ago
The -UILocale flag should work already, and there is no such thing as a "content
locale" in toolkit apps (the language pack and the region pack are one and the
same).
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 2

13 years ago
Okay, figured it out now. -UILocale <locale> is considered an application
parameter, not a XULRunner parameter, it has to come after the application
ini-file to work. I tried it before the ini-file and XULRunner just returned to
the prompt without doing anything.

-contentLocale <locale>  strangely is a parameter for toolkit applications. Take
a look at mozilla/toolkit/xre/nsAppRunner.cpp.

Thanks

Comment 3

13 years ago
No it's not ;-)

That's old documentation taken from the suite version of nsAppRunner.cpp, and
never cleaned up.
(Assignee)

Updated

2 years ago
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.