[Kde-games-devel] Load translations

Yuri Chornoivan yurchor at ukr.net
Mon Nov 9 10:51:34 UTC 2015


написане Mon, 09 Nov 2015 12:45:33 +0200, Frederik Schwarzer  
<schwarzerf at gmail.com>:

> Am I the only one getting 404 errors on almost all of api.KDE.org for  
> days
> now?
> I would like to look thing up there but am not able to. :)

No, you are not the only one. There was a discussion about its  
maintainence in kde-core-devel at .

Best regards,
Yuri

> On Nov 9, 2015 11:13 AM, "Burkhard Lück" <lueck at hube-lueck.de> wrote:
>
>> Am Monday 09 November 2015, 09:06:42 schrieb Frederik Schwarzer:
>> > Am Sonntag, 8. November 2015, 22:52:05 schrieb Albert Astals Cid:
>> > > El Saturday 07 November 2015, a les 01:44:08, Frederik Schwarzer va
>> >
>> > escriure:
>> > > > Hi,
>> > > >
>> > > > in KShisen the translations are not complete. In the settings
>> > > > dialog the kshisen section becomes translated, when _one_or_both_
>> > > > of these are used.
>> > > > CMakeLists.txt:    add_definitions(-DTRANSLATION_DOMAIN="kshisen")
>> > > > main.cpp:    KLocalizedString::setApplicationDomain("kshisen");
>> > > >
>> > > > It does not matter which one I use.
>> > > >
>> > > > The settings section KShisen borrows from libkmahjongg remain
>> > > > untranslated in both cases.
>> > > >
>> > > > Unfortunately
>> > > >
>> > > > http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/c
>> > > > lassKLoca lizedString.html is 404'ed so I cannot read into this
>> > > > tonight.
>> > > >
>> > > > So, does anyone know, which of those we do need for our games?
>> > >
>> > > The second. But it doesn't really matter, since you're saying about
>> > > libkmahjongg that is not a game.
>> > >
>> > > You'll need to be a bit more concise in:
>> > >  * Which string you're seeing untraslated
>> > >  * Which langauge you're using.
>> >
>> > Language: de
>> > The Settings dialog is actually using KMahjonggConfigDialog.
>> > The General tab is a UI file from inside KShisen and the Tiles and
>> > Backgrounds tab are coming from libkmahjongg. Those latter two are not
>> > translated here.
>>
>> KShisen is fully translated here (Language de, recent master from  
>> sources)
>>
>> > I think to remember that in KDE4 we had to load library's catalogs
>> > into applications which used them. Doe we have to do this in KF5 as
>> > well?
>>
>> No, it has to be done inside the library, e. g. for libkdegames the
>> catalog is
>> loaded with:
>> libkdegames/CMakeLists.txt:31:add_definitions(-
>> DTRANSLATION_DOMAIN="libkdegames5")
>>
>> See also
>> http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/
>> prg_guide.html
>>
>> --
>> Burkhard Lück
>>
>> _______________________________________________
>> kde-games-devel mailing list
>> kde-games-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/kde-games-devel


More information about the kde-games-devel mailing list