How to set the locale to change the language of the file dialogs?

64 views
Skip to first unread message

Achim Feldmann

unread,
Oct 18, 2012, 9:39:47 AM10/18/12
to node-...@googlegroups.com
How to set the locale to change the language of the file dialogs?
I tried to set in package.json as follows:

   ...
   "main": "index.html",
   "locale": "de_DE"
   ...


Zhao Cheng

unread,
Oct 18, 2012, 9:33:11 PM10/18/12
to node-...@googlegroups.com
File dialogs' language is determined by current locale, there's no way
to change it without changing current locale, and node-webkit will not
support changing the locale it uses.
--
Cheng
Intel Open Source Technology Center

Achim Feldmann

unread,
Oct 19, 2012, 4:24:09 AM10/19/12
to node-...@googlegroups.com
First thanks for you immediate response and your work on node-webkit!

My current locale is set to german. When I open file dialogs in chrome (Mac OX X 10.8.2) (e.g. here http://www.html5rocks.com/de/tutorials/file/dndfiles/) the dialogs controls (save,open buttons,..) are in german language. 
When I launch my node-webkit app from iTerm and open a file dialog, its language is englisch.

macbookjo:~/Development/_projects$ locale
LANG="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_ALL=

Maybe the locale is right after packing the app?
What am i doing wrong? Thanks again!

Zhao Cheng

unread,
Oct 21, 2012, 9:12:21 PM10/21/12
to node-...@googlegroups.com
It seems to be a bug of node-webkit, I've created an issue for this,
thanks for reporting:
https://github.com/rogerwang/node-webkit/issues/103

On Fri, Oct 19, 2012 at 4:24 PM, Achim Feldmann <joafe...@gmail.com> wrote:
> First thanks for you immediate response and your work on node-webkit!
>
> My current locale is set to german. When I open file dialogs in chrome (Mac
> OX X 10.8.2) (e.g. here
> http://www.html5rocks.com/de/tutorials/file/dndfiles/) the dialogs controls
> (save,open buttons,..) are in german language.
> When I launch my node-webkit app from iTerm and open a file dialog, its
> language is englisch.
>
> macbookjo:~/Development/_projects$ locale
> LANG="de_DE.UTF-8"
> LC_COLLATE="de_DE.UTF-8"
> LC_CTYPE="de_DE.UTF-8"
> LC_MESSAGES="de_DE.UTF-8"
> LC_MONETARY="de_DE.UTF-8"
> LC_NUMERIC="de_DE.UTF-8"
> LC_TIME="de_DE.UTF-8"
> LC_ALL=
>
> Maybe the locale is right after packing the app?
> What am i doing wrong? Thanks again!


Reply all
Reply to author
Forward
0 new messages