<div class="gmail_quote">2010/8/29 John Layt <span dir="ltr"><<a href="mailto:johnlayt@googlemail.com">johnlayt@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div style="font-family: 'Monospace'; font-size: 10pt; font-weight: 400; font-style: normal;"><div><div></div><div class="h5">
<p style="margin: 0px; text-indent: 0px;">On Thursday 26 August 2010 04:21:29 Andriy Rysin wrote:</p>
<p style="margin: 0px; text-indent: 0px;">> kcm_keyboard in 4.5 has new _run-time_ dependency on iso-codes, otherwise</p>
<p style="margin: 0px; text-indent: 0px;">> the language combo in 'add layout' dialog will show codes instead of</p>
<p style="margin: 0px; text-indent: 0px;">> (translated) language names.</p>
<p style="margin: 0px; text-indent: 0px;">> The question: is there a good/standard way to tell packagers about this</p>
<p style="margin: 0px; text-indent: 0px;">> dependency?</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Shall it be a check with warning in CMakeLists.txt to warn at compile time</p>
<p style="margin: 0px; text-indent: 0px;">> or is there something better?</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Thanks</p>
<p style="margin: 0px; text-indent: 0px;">> Andriy</p>
<p style="margin: 0px; text-indent: 0px;"></p>
</div></div><p style="margin: 0px; text-indent: 0px;">Ooooh, I'm wanting to introduce a runtime dependency on isocodes for kdelibs for Country Regions and Currency Codes, so that will make life easier if you have it all worked out :-)  I'll have a look and see if we can share code.  I assume this works cross-platform on Windows and Mac too?</p>
</div></blockquote><div> </div></div>Hi John<br><br>that would be great if this can be moved/refactored into kdelibs. I think iso-codes integration will be quite useful to a lot of KDE software so kdelibs (I guess somewhere around KLocale classes) would be a good place for it.<br>
I was originally planning to write generic code so it should be fairly easy to move it, though I did not spend too much time polishing it as I had big kxkb refactoring ahead of me at that point so currently there's one common IsoCodes class that I am using for showing languages in kcm_keyboard.<br>
<br>And I don't see why it wouldn't work on other platforms.<br><br>Let me know if you want to talk about it more.<br><br>Thanks,<br>Andriy<br><br>