Re: Getting the current UI locale from C++

2013-08-29 Thread Fabrice Desré
Hi Henri, On Thu, 29 Aug 2013 10:12:05 +0300, Henri Sivonen wrote: > How do I get the language code for the currently active UI language pack > from within Gecko C++ code in a way that works across desktop, Android, > B2G and Metro? A c++ version of could work: let chrome = Cc["@mozilla.org/chr

Re: Getting the current UI locale from C++

2013-08-29 Thread Axel Hecht
On 8/29/13 3:17 PM, Anne van Kesteren wrote: On Thu, Aug 29, 2013 at 1:48 PM, Axel Hecht wrote: I'll read up on the other thread, and I still think the approach is wrong here, sorry. You'll have to explain that more fully I think. This is the current approach. However the current approach le

Re: Getting the current UI locale from C++

2013-08-29 Thread Anne van Kesteren
On Thu, Aug 29, 2013 at 1:48 PM, Axel Hecht wrote: > I'll read up on the other thread, and I still think the approach is wrong > here, sorry. You'll have to explain that more fully I think. This is the current approach. However the current approach leads to all kinds of bugs because localization

Re: Getting the current UI locale from C++

2013-08-29 Thread Axel Hecht
On 8/29/13 12:03 PM, Henri Sivonen wrote: On Thu, Aug 29, 2013 at 10:12 AM, Henri Sivonen wrote: How do I get the language code for the currently active UI language pack from within Gecko C++ code in a way that works across desktop, Android, B2G and Metro? On IRC, I was pointed to https://mxr

Re: Getting the current UI locale from C++

2013-08-29 Thread Henri Sivonen
On Thu, Aug 29, 2013 at 10:12 AM, Henri Sivonen wrote: > How do I get the language code for the currently active UI language > pack from within Gecko C++ code in a way that works across desktop, > Android, B2G and Metro? On IRC, I was pointed to https://mxr.mozilla.org/comm-central/source/mozilla