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
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
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
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
>> [: 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
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
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,
>
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