KDE4 proposal: Paths in i18n strings
Jarosław Staniek
js at iidea.pl
Mon Jul 3 15:11:02 BST 2006
Frans Englich wrote:
> On Monday 03 July 2006 08:00, Jarosław Staniek wrote:
>> Hello,
>> This is a result of my discussion with Chusslove Illich
>> <caslav.ilic at gmx.net> on paths for i18n strings:
>>
>> http://kexi-project.org/wiki/wikiview/index.php?KDE4TODOs_PathsInI18n
>
> Nice. I have been thinking about this as well, although from a slightly
> different perspective:
>
> In many scenarios, especially the more technical ones, one needs to
> display identifiers and names in i18n'd text. My big issue with doing that
> is consistency. Should one use double quotes around the terms? Or single
> quotes? No quotes at all? Etc.
>
> To make KLocalizedString aware of types like QDir seems to solve the
> problem of paths, but how does one achieve the same improvement for other
> strings? What is it people generally inserting with %N, and what can be
> done for making it consistent?
>
> I'm thinking of something like an enum that tells what kind of "role"
> or "type" a certain insert-string has. Although I don't know how that
> should play together with the i18n calls.
For these cases what about something as simple as: %'N' ? If only translators
can stand "User '%1' joines", they'd most likely stand "User %'1' joined" as
well (?)
The string would then be so nicely displayed as "Dołączył użytkownik ,,%1''"
in Polish :) (note ,,'' characters)
As an option, translators would even not be FORCED to see %1 changed to %'1',
as scripty+KDE locale machinery could silently maintain the knowledge about
'' internally.
--
regards / pozdrawiam,
Jaroslaw Staniek / OpenOffice Polska
Sponsored by OpenOffice Polska to work on
* Kexi & KOffice: http://www.kexi-project.org | http://koffice.org/kexi
* KDE3 & KDE4 Libraries For Developing MS Windows Applications:
http://www.kdelibs.com/wiki
See also:
* Kexi For MS Windows: http://kexi.pl/wiki/index.php/Kexi_for_MS_Windows
* Kexi Support: http://www.kexi-project.org/support.html
More information about the kde-core-devel
mailing list