Re: Finding local translations?

2016-04-10 Thread Boudewijn Rempt
On Sun, 10 Apr 2016, Boudewijn Rempt wrote: On Sun, 10 Apr 2016, David Faure wrote: On Saturday 09 April 2016 22:21:59 Chusslove Illich wrote: KCatalog::catalogLocaleDir should first execute when the first translation call happens Maybe krita has some global static with an i18n() call in

Re: Finding local translations?

2016-04-10 Thread Boudewijn Rempt
On Sat, 9 Apr 2016, Chusslove Illich wrote: [: Boudewijn Rempt :] However, KCatalog::catalogLocaleDir is run before the main runs, and uses QStandardPaths to find the location of the translations. That's before the XDG_DATA_DIRS environment variable is set. [: Alexander Potashev :] You can

Re: Finding local translations?

2016-04-10 Thread Boudewijn Rempt
On Sun, 10 Apr 2016, David Faure wrote: On Saturday 09 April 2016 22:21:59 Chusslove Illich wrote: KCatalog::catalogLocaleDir should first execute when the first translation call happens Maybe krita has some global static with an i18n() call in it then. Bad idea! I recommend a breakpoint in

Re: Finding local translations?

2016-04-10 Thread David Faure
On Saturday 09 April 2016 22:21:59 Chusslove Illich wrote: > KCatalog::catalogLocaleDir should first > execute when the first translation call happens Maybe krita has some global static with an i18n() call in it then. Bad idea! I recommend a breakpoint in KCatalog::catalogLocaleDir to find out

Re: Finding local translations?

2016-04-09 Thread Chusslove Illich
>> [: Boudewijn Rempt :] >> However, KCatalog::catalogLocaleDir is run before the main runs, and uses >> QStandardPaths to find the location of the translations. That's before >> the XDG_DATA_DIRS environment variable is set. > > [: Alexander Potashev :] > You can use a wrapper application that

Re: Finding local translations?

2016-04-09 Thread Alexander Potashev
2016-04-07 12:56 GMT+03:00 Boudewijn Rempt : > However, KCatalog::catalogLocaleDir is run before the main runs, > and uses QStandardPaths to find the location of the translations. > That's before the XDG_DATA_DIRS environment variable is set. You can use a wrapper application

Re: Finding local translations?

2016-04-09 Thread David Faure
On Thursday 07 April 2016 11:56:59 Boudewijn Rempt wrote: > > In other words, the translations are located relative to the > application binary. I add these locations to the XDG_DATA_DIRS > environment variable in my main. > > However, KCatalog::catalogLocaleDir is run before the main runs, >

Finding local translations?

2016-04-07 Thread Boudewijn Rempt
I'm trying to make translations work for Krita. On starting the application, I want to check what the user's system language is and what the override language from the language selection dialog is. The problem is that the translations are located here: Windows The translations are in