[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] Load translations
From:       Frederik Schwarzer <schwarzerf () gmail ! com>
Date:       2015-11-09 10:45:33
Message-ID: CALQqwR6kFFFymBEdYsABVeUZmQ3mDd28O86LS6OXeCn8t2sTug () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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. :)
On Nov 9, 2015 11:13 AM, "Burkhard Lück" <lueck@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@kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
>

[Attachment #5 (text/html)]

<p dir="ltr">Am I the only one getting 404 errors on almost all of <a \
href="http://api.KDE.org">api.KDE.org</a> for days now?<br> I would like to look \
thing up there but am not able to. :)</p> <div class="gmail_quote">On Nov 9, 2015 \
11:13 AM, &quot;Burkhard Lück&quot; &lt;<a \
href="mailto:lueck@hube-lueck.de">lueck@hube-lueck.de</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Am Monday 09 November 2015, \
09:06:42 schrieb Frederik Schwarzer:<br> &gt; Am Sonntag, 8. November 2015, 22:52:05 \
schrieb Albert Astals Cid:<br> &gt; &gt; El Saturday 07 November 2015, a les \
01:44:08, Frederik Schwarzer va<br> &gt;<br>
&gt; escriure:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; in KShisen the translations are not complete. In the settings<br>
&gt; &gt; &gt; dialog the kshisen section becomes translated, when _one_or_both_<br>
&gt; &gt; &gt; of these are used.<br>
&gt; &gt; &gt; CMakeLists.txt:      \
add_definitions(-DTRANSLATION_DOMAIN=&quot;kshisen&quot;)<br> &gt; &gt; &gt; \
main.cpp:      KLocalizedString::setApplicationDomain(&quot;kshisen&quot;);<br> &gt; \
&gt; &gt;<br> &gt; &gt; &gt; It does not matter which one I use.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The settings section KShisen borrows from libkmahjongg remain<br>
&gt; &gt; &gt; untranslated in both cases.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Unfortunately<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; <a href="http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/c" \
rel="noreferrer" target="_blank">http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/c</a><br>
 &gt; &gt; &gt; lassKLoca lizedString.html is 404&#39;ed so I cannot read into \
this<br> &gt; &gt; &gt; tonight.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; So, does anyone know, which of those we do need for our games?<br>
&gt; &gt;<br>
&gt; &gt; The second. But it doesn&#39;t really matter, since you&#39;re saying \
about<br> &gt; &gt; libkmahjongg that is not a game.<br>
&gt; &gt;<br>
&gt; &gt; You&#39;ll need to be a bit more concise in:<br>
&gt; &gt;   * Which string you&#39;re seeing untraslated<br>
&gt; &gt;   * Which langauge you&#39;re using.<br>
&gt;<br>
&gt; Language: de<br>
&gt; The Settings dialog is actually using KMahjonggConfigDialog.<br>
&gt; The General tab is a UI file from inside KShisen and the Tiles and<br>
&gt; Backgrounds tab are coming from libkmahjongg. Those latter two are not<br>
&gt; translated here.<br>
<br>
KShisen is fully translated here (Language de, recent master from sources)<br>
<br>
&gt; I think to remember that in KDE4 we had to load library&#39;s catalogs<br>
&gt; into applications which used them. Doe we have to do this in KF5 as<br>
&gt; well?<br>
<br>
No, it has to be done inside the library, e. g. for libkdegames the catalog is<br>
loaded with:<br>
libkdegames/CMakeLists.txt:31:add_definitions(-<br>
DTRANSLATION_DOMAIN=&quot;libkdegames5&quot;)<br>
<br>
See also<br>
<a href="http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/
prg_guide.html" rel="noreferrer" \
target="_blank">http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/<br> \
prg_guide.html</a><br> <br>
--<br>
Burkhard Lück<br>
<br>
_______________________________________________<br>
kde-games-devel mailing list<br>
<a href="mailto:kde-games-devel@kde.org">kde-games-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-games-devel" rel="noreferrer" \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-games-devel</a><br> \
</blockquote></div>


[Attachment #6 (text/plain)]

_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic