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

List:       kde-panel-devel
Subject:    Re: Review Request 123131: Port kio_man away from kdelibs4support
From:       "Albert Astals Cid" <aacid () kde ! org>
Date:       2015-04-05 13:22:20
Message-ID: 20150405132220.13102.4991 () mimi ! kde ! org
[Download RAW message or body]

--===============2437818066195184210==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit



> On mar. 25, 2015, 9:54 p.m., Lukáš Tinkl wrote:
> > man/kio_man.cpp, line 242
> > <https://git.reviewboard.kde.org/r/123131/diff/1/?file=356605#file356605line242>
> > 
> > Not correct, this returns only user configured list of languages, whereas it \
> > previously returned the full list.
> 
> Nick Shaforostoff wrote:
> please see https://projects.kde.org/projects/kde/kdesdk/lokalize/repository/revisions/master/entry/src/common/languagelistmodel.cpp \
> for the ways to get a list of all languages (there is a KDE-way and Qt-way) 
> Alex Richardson wrote:
> So if I parse this correctly the KDE way is: \
> `KConfig(QLatin1String("locale/kf5_all_languages"), KConfig::NoGlobals, \
> QStandardPaths::GenericDataLocation).groupList()`? Should there be something in \
> KI18n or is this sufficiently rare that we can just add "@deprecated use \
> `KConfig(QLatin1String("locale/kf5_all_languages"), KConfig::NoGlobals, \
> QStandardPaths::GenericDataLocation).groupList()` instead" to \
> KLocale::languageList()? 
> David Faure wrote:
> Sounds to me like it should be a method in ki18n, it's a bit too arcane to be \
> maintainable. 
> Alex Richardson wrote:
> Seems like it's not the right replacement:
> 
> No special env vars set:
> ```
> KLocale::global()->languageList()  ("de", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("pt_BR", "nds", "kk", "ga", \
> "mr", "km", "ko", "en_US", "ca", "gl", "is", "it", "el", "nb", "tr", "ro", "pl", \
> "es", "et", "en_GB", "eu", "ja", "ru", "nl", "cs", "nn", "pt", "ar", "ug", "hi", \
> "lt", "da", "lv", "uk", "zh_CN", "zh_TW", "fi", "de", "sk", "hr", "sl", "hu", "bg", \
> "fr", "ca@valencia", "sv") QLocale().uiLanguages() = ("de-DE")
> KConfig(kf5_all_languages).groupsList() = ("ca@valencia", "ln", "de", "tw", "lo", \
> "ty", "lt", "lv", "ug", "uk", "pt_BR", "dz", "mg", "mh", "mi", "ur", "mk", "ml", \
> "mn", "mo", "uz", "mr", "ms", "mt", "el", "en", "crh", "eo", "my", "be@latin", \
> "es", "et", "eu", "vi", "na", "nb", "nd", "ne", "vo", "ng", "fa", "nl", "nn", \
> "csb", "nr", "fi", "fj", "sr@ijekavian", "nv", "wa", "fo", "ny", "fr", "oc", "fy", \
> "wo", "ga", "sr@latin", "hne", "om", "gd", "or", "os", "gl", "uz@cyrillic", "gn", \
> "gu", "xh", "gv", "zh_HK", "pa", "nso", "pi", "ha", "pl", "he", "hi", "mai", "ps", \
> "pt", "ho", "hr", "hu", "yi", "hy", "hz", "yo", "ia", "id", "ie", "aa", "ik", "ab", \
> "qu", "ae", "za", "io", "af", "nds", "is", "ven", "it", "iu", "zh", "am", "ar", \
> "as", "ja", "sr@ijekavianlatin", "x-test", "ay", "zu", "az", "rn", "ro", "en_US", \
> "ba", "ru", "be", "rw", "bg", "bh", "bi", "jv", "bn", "sa", "bo", "sc", "sd", "br", \
> "se", "bs", "sg", "si", "ka", "sk", "sl", "zh_CN", "sm", "ast", "sn", "so", "sq", \
> "ki", "sr", 
 "bn_IN", "ca", "ss", "kk", "st", "kl", "su", "km", "sv", "kn", "ce", "sw", "ko", \
"ch", "ks", "rom", "ku", "kv", "kw", "ta", "co", "ky", "zh_TW", "te", "cs", "tg", \
"cu", "th", "cv", "ti", "hsb", "la", "lb", "tk", "cy", "tn", "to", "en_GB", "li", \
"tr", "da", "ts", "tt", "dsb")
> ```
> 
> With LANGUAGE="de_DE"
> 
> ```
> KLocale::global()->languageList()  ("de", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("sv", "pt_BR", \
> "ca@valencia", "kk", "ga", "mr", "km", "ko", "en_US", "nds", "ca", "gl", "is", \
> "it", "el", "nb", "tr", "ro", "en_GB", "pl", "es", "et", "eu", "ja", "ru", "nl", \
> "cs", "nn", "pt", "ar", "ug", "hi", "lt", "da", "zh_CN", "zh_TW", "lv", "uk", "fi", \
> "de", "sk", "hr", "sl", "hu", "bg", "fr") QLocale().uiLanguages() = ("de-DE")
> KConfig(kf5_all_languages).groupsList() = (...)
> ```
> 
> With LANGUAGE="en_GB:de_DE"
> ```
> KLocale::global()->languageList()  ("en_GB", "de", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("ga", "nds", "kk", "mr", \
> "km", "ko", "ca", "gl", "pt_BR", "is", "it", "el", "nb", "tr", "ro", "en_US", "pl", \
> "es", "et", "eu", "ja", "ru", "nl", "cs", "nn", "pt", "ar", "en_GB", "ug", "hi", \
> "lt", "da", "lv", "uk", "fi", "de", "sk", "hr", "sl", "hu", "bg", "fr", \
> "ca@valencia", "zh_CN", "zh_TW", "sv") QLocale().uiLanguages() = ("en-GB", "de-DE")
> ```
> 
> With LANGUAGE="de_DE:en_GB"
> ```
> KLocale::global()->languageList()  ("en_GB", "de", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("mr", "km", "ko", "nds", \
> "en_GB", "ca", "gl", "is", "it", "el", "nb", "tr", "ro", "pl", "es", "et", "eu", \
> "ja", "ru", "nl", "cs", "nn", "zh_CN", "zh_TW", "pt", "ar", "ca@valencia", "ug", \
> "hi", "lt", "da", "lv", "uk", "fi", "de", "sk", "hr", "sl", "hu", "bg", "pt_BR", \
> "fr", "sv", "en_US", "ga", "kk") QLocale().uiLanguages() = ("de-DE", "en-GB")
> KConfig(kf5_all_languages).groupsList() = (...)
> ```
> This one is very confusing, why is en_GB still the highest priority according to \
> KLocale::global()->languageList()? Maybe it is reading some config file where I set \
> that? 
> With LANGUAGE="fr_FR"
> 
> ```
> KLocale::global()->languageList()  ("de", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("et", "eu", "ja", "ru", \
> "nl", "cs", "nn", "pt", "en_GB", "ar", "ca@valencia", "ug", "hi", "lt", "da", "lv", \
> "uk", "fi", "de", "sk", "hr", "sl", "zh_CN", "zh_TW", "hu", "bg", "fr", "sv", \
> "nds", "ga", "kk", "mr", "km", "ko", "pt_BR", "ca", "gl", "en_US", "is", "it", \
> "el", "nb", "tr", "ro", "pl", "es") QLocale().uiLanguages() = ("fr-FR")
> ```
> 
> Even more confusion, LANGUAGE now has no effect on \
> KLocale::global()->languageList() 
> With LANG=fr_FR
> ```
> KLocale::global()->languageList()  ("fr", "en_US")
> KLocalizedString::availableApplicationTranslations() = ("sk", "hr", "sl", "hu", \
> "bg", "pt_BR", "fr", "sv", "en_US", "kk", "ga", "km", "mr", "ko", "en_GB", "ca", \
> "gl", "is", "it", "el", "nb", "tr", "ro", "pl", "es", "et", "eu", "ja", "ru", "nl", \
> "cs", "nn", "zh_CN", "zh_TW", "pt", "ar", "ca@valencia", "nds", "ug", "hi", "lt", \
> "da", "lv", "uk", "fi", "de") QLocale().uiLanguages() = ("fr-FR")
> ```
> 
> LANG seems to work where LANGUAGE doesn't.
> 
> 
> I have no idea what's going on here, I need some feedback from someone with more \
> I18N experience. 
> However, QLocale().uiLanguages() seems to be almost the right replacement if we \
> append en_US and convert it from de-DE to de_DE. However, the order is not the \
> same... 
> Albert Astals Cid wrote:
> Given kf5_all_languages is part of kdelibs4support, making code in ki18n breaks \
> tiering, so a -1 from my side to David's comment. 
> David Faure wrote:
> Ah, then another implementation is needed. Proving even more that ki18n should \
> provide a way to list available translations, since it's definitely not a trivial \
> issue.

ki18n already has such method (availableApplicationTranslations), i'm not sure that \
is what we want here though.

Can someone clarify what we exactly want in here? all languages? all languages this \
ki18n-using application is translated too?


- Albert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123131/#review78048
-----------------------------------------------------------


On mar. 25, 2015, 9:17 p.m., Alex Richardson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123131/
> -----------------------------------------------------------
> 
> (Updated mar. 25, 2015, 9:17 p.m.)
> 
> 
> Review request for KDE Frameworks, Plasma and Martin Koller.
> 
> 
> Repository: kio-extras
> 
> 
> Description
> -------
> 
> Port kio_man away from kdelibs4support
> 
> 
> Diffs
> -----
> 
> CMakeLists.txt 02ae89f2524324f758450ad368f64849e39b2f7d 
> man/CMakeLists.txt cb4585a289d3f69b8a16429ce87bfce115d1cc27 
> man/kio_man.cpp e8cf2d70c50c4c20adbb5a81a6213175d397b76e 
> man/kmanpart.cpp 3af7fc182806e8b89297e8de884ce611c827e881 
> man/man2html.cpp 3c493ba334bce890b450d7b11ab00c6e783708d4 
> 
> Diff: https://git.reviewboard.kde.org/r/123131/diff/
> 
> 
> Testing
> -------
> 
> man view in kdevelop5 works
> 
> Not sure about the `KLocale::global()->languageList();` -> \
> `QLocale().uiLanguages();` change though so I would like some feedback. 
> 
> Thanks,
> 
> Alex Richardson
> 
> 


--===============2437818066195184210==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/123131/">https://git.reviewboard.kde.org/r/123131/</a>
  </td>
    </tr>
   </table>
   <br />










<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On març 25th, 2015, 9:54 p.m. UTC, <b>Lukáš \
Tinkl</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  


<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="https://git.reviewboard.kde.org/r/123131/diff/1/?file=356605#file356605line242" \
style="color: black; font-weight: bold; text-decoration: \
underline;">man/kio_man.cpp</a>  <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
">QStringList MANProtocol::manDirectories()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">242</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span \
class="n">QStringList</span> <span class="n">languages</span> <span \
class="o">=</span> <span class="n">QLocale</span><span class="p">().</span><span \
class="n">uiLanguages</span><span class="p">();</span></pre></td>  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Not \
correct, this returns only user configured list of languages, whereas it previously \
returned the full list.</p></pre>  </blockquote>



 <p>On març 25th, 2015, 10:30 p.m. UTC, <b>Nick Shaforostoff</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">please see \
https://projects.kde.org/projects/kde/kdesdk/lokalize/repository/revisions/master/entry/src/common/languagelistmodel.cpp \
for the ways to get a list of all languages (there is a KDE-way and Qt-way)</p></pre> \
</blockquote>





 <p>On març 25th, 2015, 11:30 p.m. UTC, <b>Alex Richardson</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">So if \
I parse this correctly the KDE way is: <code style="text-rendering: inherit;color: \
#4444cc;padding: 0;white-space: normal;margin: 0;line-height: \
inherit;">KConfig(QLatin1String("locale/kf5_all_languages"), KConfig::NoGlobals, \
QStandardPaths::GenericDataLocation).groupList()</code>? Should there be something in \
KI18n or is this sufficiently rare that we can just add "@deprecated use <code \
style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: \
0;line-height: inherit;">KConfig(QLatin1String("locale/kf5_all_languages"), \
KConfig::NoGlobals, QStandardPaths::GenericDataLocation).groupList()</code> instead" \
to KLocale::languageList()?</p></pre>  </blockquote>





 <p>On abril 4th, 2015, 8:49 a.m. UTC, <b>David Faure</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Sounds to me like it should be a method in ki18n, it's a bit too arcane to \
be maintainable.</p></pre>  </blockquote>





 <p>On abril 4th, 2015, 1:10 p.m. UTC, <b>Alex Richardson</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Seems \
like it's not the right replacement:</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">No special env vars \
set:</p> <p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;"><div class="codehilite" style="background: \
#f8f8f8"><pre style="line-height: 125%">KLocale::global()-&gt;languageList()  \
(&quot;de&quot;, &quot;en_US&quot;) \
KLocalizedString::availableApplicationTranslations() = (&quot;pt_BR&quot;, \
&quot;nds&quot;, &quot;kk&quot;, &quot;ga&quot;, &quot;mr&quot;, &quot;km&quot;, \
&quot;ko&quot;, &quot;en_US&quot;, &quot;ca&quot;, &quot;gl&quot;, &quot;is&quot;, \
&quot;it&quot;, &quot;el&quot;, &quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, \
&quot;pl&quot;, &quot;es&quot;, &quot;et&quot;, &quot;en_GB&quot;, &quot;eu&quot;, \
&quot;ja&quot;, &quot;ru&quot;, &quot;nl&quot;, &quot;cs&quot;, &quot;nn&quot;, \
&quot;pt&quot;, &quot;ar&quot;, &quot;ug&quot;, &quot;hi&quot;, &quot;lt&quot;, \
&quot;da&quot;, &quot;lv&quot;, &quot;uk&quot;, &quot;zh_CN&quot;, &quot;zh_TW&quot;, \
&quot;fi&quot;, &quot;de&quot;, &quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, \
&quot;hu&quot;, &quot;bg&quot;, &quot;fr&quot;, &quot;ca@valencia&quot;, \
&quot;sv&quot;) QLocale().uiLanguages() = (&quot;de-DE&quot;)
KConfig(kf5_all_languages).groupsList() = (&quot;ca@valencia&quot;, &quot;ln&quot;, \
&quot;de&quot;, &quot;tw&quot;, &quot;lo&quot;, &quot;ty&quot;, &quot;lt&quot;, \
&quot;lv&quot;, &quot;ug&quot;, &quot;uk&quot;, &quot;pt_BR&quot;, &quot;dz&quot;, \
&quot;mg&quot;, &quot;mh&quot;, &quot;mi&quot;, &quot;ur&quot;, &quot;mk&quot;, \
&quot;ml&quot;, &quot;mn&quot;, &quot;mo&quot;, &quot;uz&quot;, &quot;mr&quot;, \
&quot;ms&quot;, &quot;mt&quot;, &quot;el&quot;, &quot;en&quot;, &quot;crh&quot;, \
&quot;eo&quot;, &quot;my&quot;, &quot;be@latin&quot;, &quot;es&quot;, &quot;et&quot;, \
&quot;eu&quot;, &quot;vi&quot;, &quot;na&quot;, &quot;nb&quot;, &quot;nd&quot;, \
&quot;ne&quot;, &quot;vo&quot;, &quot;ng&quot;, &quot;fa&quot;, &quot;nl&quot;, \
&quot;nn&quot;, &quot;csb&quot;, &quot;nr&quot;, &quot;fi&quot;, &quot;fj&quot;, \
&quot;sr@ijekavian&quot;, &quot;nv&quot;, &quot;wa&quot;, &quot;fo&quot;, \
&quot;ny&quot;, &quot;fr&quot;, &quot;oc&quot;, &quot;fy&quot;, &quot;wo&quot;, \
&quot;ga&quot;, &quot;sr@lati  n&quot;, &quot;hne&quot;, &quot;om&quot;, \
&quot;gd&quot;, &quot;or&quot;, &quot;os&quot;, &quot;gl&quot;, \
&quot;uz@cyrillic&quot;, &quot;gn&quot;, &quot;gu&quot;, &quot;xh&quot;, \
&quot;gv&quot;, &quot;zh_HK&quot;, &quot;pa&quot;, &quot;nso&quot;, &quot;pi&quot;, \
&quot;ha&quot;, &quot;pl&quot;, &quot;he&quot;, &quot;hi&quot;, &quot;mai&quot;, \
&quot;ps&quot;, &quot;pt&quot;, &quot;ho&quot;, &quot;hr&quot;, &quot;hu&quot;, \
&quot;yi&quot;, &quot;hy&quot;, &quot;hz&quot;, &quot;yo&quot;, &quot;ia&quot;, \
&quot;id&quot;, &quot;ie&quot;, &quot;aa&quot;, &quot;ik&quot;, &quot;ab&quot;, \
&quot;qu&quot;, &quot;ae&quot;, &quot;za&quot;, &quot;io&quot;, &quot;af&quot;, \
&quot;nds&quot;, &quot;is&quot;, &quot;ven&quot;, &quot;it&quot;, &quot;iu&quot;, \
&quot;zh&quot;, &quot;am&quot;, &quot;ar&quot;, &quot;as&quot;, &quot;ja&quot;, \
&quot;sr@ijekavianlatin&quot;, &quot;x-test&quot;, &quot;ay&quot;, &quot;zu&quot;, \
&quot;az&quot;, &quot;rn&quot;, &quot;ro&quot;, &quot;en_US&quot;, &quot;ba&quot;, \
&quot  ;ru&quot;, &quot;be&quot;, &quot;rw&quot;, &quot;bg&quot;, &quot;bh&quot;, \
&quot;bi&quot;, &quot;jv&quot;, &quot;bn&quot;, &quot;sa&quot;, &quot;bo&quot;, \
&quot;sc&quot;, &quot;sd&quot;, &quot;br&quot;, &quot;se&quot;, &quot;bs&quot;, \
&quot;sg&quot;, &quot;si&quot;, &quot;ka&quot;, &quot;sk&quot;, &quot;sl&quot;, \
&quot;zh_CN&quot;, &quot;sm&quot;, &quot;ast&quot;, &quot;sn&quot;, &quot;so&quot;, \
&quot;sq&quot;, &quot;ki&quot;, &quot;sr&quot;, &quot;bn_IN&quot;, &quot;ca&quot;, \
&quot;ss&quot;, &quot;kk&quot;, &quot;st&quot;, &quot;kl&quot;, &quot;su&quot;, \
&quot;km&quot;, &quot;sv&quot;, &quot;kn&quot;, &quot;ce&quot;, &quot;sw&quot;, \
&quot;ko&quot;, &quot;ch&quot;, &quot;ks&quot;, &quot;rom&quot;, &quot;ku&quot;, \
&quot;kv&quot;, &quot;kw&quot;, &quot;ta&quot;, &quot;co&quot;, &quot;ky&quot;, \
&quot;zh_TW&quot;, &quot;te&quot;, &quot;cs&quot;, &quot;tg&quot;, &quot;cu&quot;, \
&quot;th&quot;, &quot;cv&quot;, &quot;ti&quot;, &quot;hsb&quot;, &quot;la&quot;, \
&quot;lb&quot;, &quot;tk&quot;  , &quot;cy&quot;, &quot;tn&quot;, &quot;to&quot;, \
&quot;en_GB&quot;, &quot;li&quot;, &quot;tr&quot;, &quot;da&quot;, &quot;ts&quot;, \
&quot;tt&quot;, &quot;dsb&quot;) </pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">With LANGUAGE="de_DE"</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><div \
class="codehilite" style="background: #f8f8f8"><pre style="line-height: \
125%">KLocale::global()-&gt;languageList()  (&quot;de&quot;, &quot;en_US&quot;) \
KLocalizedString::availableApplicationTranslations() = (&quot;sv&quot;, \
&quot;pt_BR&quot;, &quot;ca@valencia&quot;, &quot;kk&quot;, &quot;ga&quot;, \
&quot;mr&quot;, &quot;km&quot;, &quot;ko&quot;, &quot;en_US&quot;, &quot;nds&quot;, \
&quot;ca&quot;, &quot;gl&quot;, &quot;is&quot;, &quot;it&quot;, &quot;el&quot;, \
&quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, &quot;en_GB&quot;, &quot;pl&quot;, \
&quot;es&quot;, &quot;et&quot;, &quot;eu&quot;, &quot;ja&quot;, &quot;ru&quot;, \
&quot;nl&quot;, &quot;cs&quot;, &quot;nn&quot;, &quot;pt&quot;, &quot;ar&quot;, \
&quot;ug&quot;, &quot;hi&quot;, &quot;lt&quot;, &quot;da&quot;, &quot;zh_CN&quot;, \
&quot;zh_TW&quot;, &quot;lv&quot;, &quot;uk&quot;, &quot;fi&quot;, &quot;de&quot;, \
&quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, &quot;hu&quot;, &quot;bg&quot;, \
&quot;fr&quot;) QLocale().uiLanguages() = (&quot;de-DE&quot;)
KConfig(kf5_all_languages).groupsList() = (...)
</pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">With LANGUAGE="en_GB:de_DE"</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><div \
class="codehilite" style="background: #f8f8f8"><pre style="line-height: \
125%">KLocale::global()-&gt;languageList()  (&quot;en_GB&quot;, &quot;de&quot;, \
&quot;en_US&quot;) KLocalizedString::availableApplicationTranslations() = \
(&quot;ga&quot;, &quot;nds&quot;, &quot;kk&quot;, &quot;mr&quot;, &quot;km&quot;, \
&quot;ko&quot;, &quot;ca&quot;, &quot;gl&quot;, &quot;pt_BR&quot;, &quot;is&quot;, \
&quot;it&quot;, &quot;el&quot;, &quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, \
&quot;en_US&quot;, &quot;pl&quot;, &quot;es&quot;, &quot;et&quot;, &quot;eu&quot;, \
&quot;ja&quot;, &quot;ru&quot;, &quot;nl&quot;, &quot;cs&quot;, &quot;nn&quot;, \
&quot;pt&quot;, &quot;ar&quot;, &quot;en_GB&quot;, &quot;ug&quot;, &quot;hi&quot;, \
&quot;lt&quot;, &quot;da&quot;, &quot;lv&quot;, &quot;uk&quot;, &quot;fi&quot;, \
&quot;de&quot;, &quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, &quot;hu&quot;, \
&quot;bg&quot;, &quot;fr&quot;, &quot;ca@valencia&quot;, &quot;zh_CN&quot;, \
&quot;zh_TW&quot;, &quot;sv&quot;) QLocale().uiLanguages() = (&quot;en-GB&quot;, \
&quot;de-DE&quot;) </pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">With LANGUAGE="de_DE:en_GB"</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><div \
class="codehilite" style="background: #f8f8f8"><pre style="line-height: \
125%">KLocale::global()-&gt;languageList()  (&quot;en_GB&quot;, &quot;de&quot;, \
&quot;en_US&quot;) KLocalizedString::availableApplicationTranslations() = \
(&quot;mr&quot;, &quot;km&quot;, &quot;ko&quot;, &quot;nds&quot;, &quot;en_GB&quot;, \
&quot;ca&quot;, &quot;gl&quot;, &quot;is&quot;, &quot;it&quot;, &quot;el&quot;, \
&quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, &quot;pl&quot;, &quot;es&quot;, \
&quot;et&quot;, &quot;eu&quot;, &quot;ja&quot;, &quot;ru&quot;, &quot;nl&quot;, \
&quot;cs&quot;, &quot;nn&quot;, &quot;zh_CN&quot;, &quot;zh_TW&quot;, &quot;pt&quot;, \
&quot;ar&quot;, &quot;ca@valencia&quot;, &quot;ug&quot;, &quot;hi&quot;, \
&quot;lt&quot;, &quot;da&quot;, &quot;lv&quot;, &quot;uk&quot;, &quot;fi&quot;, \
&quot;de&quot;, &quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, &quot;hu&quot;, \
&quot;bg&quot;, &quot;pt_BR&quot;, &quot;fr&quot;, &quot;sv&quot;, &quot;en_US&quot;, \
&quot;ga&quot;, &quot;kk&quot;) QLocale().uiLanguages() = (&quot;de-DE&quot;, \
&quot;en-GB&quot;) KConfig(kf5_all_languages).groupsList() = (...)
</pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">This one is very confusing, why is en_GB still the \
highest priority according to KLocale::global()-&gt;languageList()? Maybe it is \
reading some config file where I set that?</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">With \
LANGUAGE="fr_FR"</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;"><div class="codehilite" \
style="background: #f8f8f8"><pre style="line-height: \
125%">KLocale::global()-&gt;languageList()  (&quot;de&quot;, &quot;en_US&quot;) \
KLocalizedString::availableApplicationTranslations() = (&quot;et&quot;, \
&quot;eu&quot;, &quot;ja&quot;, &quot;ru&quot;, &quot;nl&quot;, &quot;cs&quot;, \
&quot;nn&quot;, &quot;pt&quot;, &quot;en_GB&quot;, &quot;ar&quot;, \
&quot;ca@valencia&quot;, &quot;ug&quot;, &quot;hi&quot;, &quot;lt&quot;, \
&quot;da&quot;, &quot;lv&quot;, &quot;uk&quot;, &quot;fi&quot;, &quot;de&quot;, \
&quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, &quot;zh_CN&quot;, &quot;zh_TW&quot;, \
&quot;hu&quot;, &quot;bg&quot;, &quot;fr&quot;, &quot;sv&quot;, &quot;nds&quot;, \
&quot;ga&quot;, &quot;kk&quot;, &quot;mr&quot;, &quot;km&quot;, &quot;ko&quot;, \
&quot;pt_BR&quot;, &quot;ca&quot;, &quot;gl&quot;, &quot;en_US&quot;, &quot;is&quot;, \
&quot;it&quot;, &quot;el&quot;, &quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, \
&quot;pl&quot;, &quot;es&quot;) QLocale().uiLanguages() = (&quot;fr-FR&quot;)
</pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Even more confusion, LANGUAGE now has no effect on \
KLocale::global()-&gt;languageList()</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">With LANG=fr_FR</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;"><div class="codehilite" style="background: #f8f8f8"><pre \
style="line-height: 125%">KLocale::global()-&gt;languageList()  (&quot;fr&quot;, \
&quot;en_US&quot;) KLocalizedString::availableApplicationTranslations() = \
(&quot;sk&quot;, &quot;hr&quot;, &quot;sl&quot;, &quot;hu&quot;, &quot;bg&quot;, \
&quot;pt_BR&quot;, &quot;fr&quot;, &quot;sv&quot;, &quot;en_US&quot;, &quot;kk&quot;, \
&quot;ga&quot;, &quot;km&quot;, &quot;mr&quot;, &quot;ko&quot;, &quot;en_GB&quot;, \
&quot;ca&quot;, &quot;gl&quot;, &quot;is&quot;, &quot;it&quot;, &quot;el&quot;, \
&quot;nb&quot;, &quot;tr&quot;, &quot;ro&quot;, &quot;pl&quot;, &quot;es&quot;, \
&quot;et&quot;, &quot;eu&quot;, &quot;ja&quot;, &quot;ru&quot;, &quot;nl&quot;, \
&quot;cs&quot;, &quot;nn&quot;, &quot;zh_CN&quot;, &quot;zh_TW&quot;, &quot;pt&quot;, \
&quot;ar&quot;, &quot;ca@valencia&quot;, &quot;nds&quot;, &quot;ug&quot;, \
&quot;hi&quot;, &quot;lt&quot;, &quot;da&quot;, &quot;lv&quot;, &quot;uk&quot;, \
&quot;fi&quot;, &quot;de&quot;) QLocale().uiLanguages() = (&quot;fr-FR&quot;)
</pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">LANG seems to work where LANGUAGE doesn't.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">I have no idea what's going on here, I need some feedback from someone with \
more I18N experience.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">However, QLocale().uiLanguages() seems \
to be almost the right replacement if we append en_US and convert it from de-DE to \
de_DE. However, the order is not the same...</p></pre>  </blockquote>





 <p>On abril 4th, 2015, 6:03 p.m. UTC, <b>Albert Astals Cid</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Given \
kf5_all_languages is part of kdelibs4support, making code in ki18n breaks tiering, so \
a -1 from my side to David's comment.</p></pre>  </blockquote>





 <p>On abril 5th, 2015, 9:08 a.m. UTC, <b>David Faure</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Ah, \
then another implementation is needed. Proving even more that ki18n should provide a \
way to list available translations, since it's definitely not a trivial \
issue.</p></pre>  </blockquote>







</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">ki18n \
already has such method (availableApplicationTranslations), i&#39;m not sure that is \
what we want here though.

Can someone clarify what we exactly want in here? all languages? all languages this \
ki18n-using application is translated too?</pre> <br />




<p>- Albert</p>


<br />
<p>On març 25th, 2015, 9:17 p.m. UTC, Alex Richardson wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for KDE Frameworks, Plasma and Martin Koller.</div>
<div>By Alex Richardson.</div>


<p style="color: grey;"><i>Updated mar. 25, 2015, 9:17 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kio-extras
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Port kio_man away from kdelibs4support</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">man view in kdevelop5 works</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Not \
sure about the <code style="text-rendering: inherit;color: #4444cc;padding: \
0;white-space: normal;margin: 0;line-height: \
inherit;">KLocale::global()-&gt;languageList();</code> -&gt; <code \
style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: \
0;line-height: inherit;">QLocale().uiLanguages();</code> change though so I would \
like some feedback.</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>CMakeLists.txt <span style="color: \
grey">(02ae89f2524324f758450ad368f64849e39b2f7d)</span></li>

 <li>man/CMakeLists.txt <span style="color: \
grey">(cb4585a289d3f69b8a16429ce87bfce115d1cc27)</span></li>

 <li>man/kio_man.cpp <span style="color: \
grey">(e8cf2d70c50c4c20adbb5a81a6213175d397b76e)</span></li>

 <li>man/kmanpart.cpp <span style="color: \
grey">(3af7fc182806e8b89297e8de884ce611c827e881)</span></li>

 <li>man/man2html.cpp <span style="color: \
grey">(3c493ba334bce890b450d7b11ab00c6e783708d4)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/123131/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>







  </div>
 </body>
</html>


--===============2437818066195184210==--


[Attachment #3 (text/plain)]

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


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

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