[Kde-pim] Double quotes in Comment field for Akonadi agents/resources are required

Alexander Potashev aspotashev at gmail.com
Tue Jan 14 19:59:47 GMT 2014


2014/1/14 Alexander Potashev <aspotashev at gmail.com>:
> Hi,
>
> Many KDE translators run into the following trap in how Akonadi plugin
> loader interprets fields in .desktop files.
>
> When there is a comma in the value for Name of Comment field, then it
> has to be enclosed in double quotes. Otherwise the string is
> considered invalid and is not shown in the UI (the parser probably
> thinks it's a comma-separated list). No other type of quotes works
> (Hello Yuri).
>
> The Name and Comment strings are visible in the resource/agent
> creation dialogs, e.g. when you go to System Settings -> Personal
> Information (Akonadi Resources) and click "Add...". If there are
> commas but no quotes, then the string is not shown at all.
>
> I see two problems here:
>  1. Many translators remove quotes or change their styling, for
> example «» or „”.
>  2. Even if there were no commas in the original, commas may be added
> in a translation and then quotes are necessary.
>
> (This is why I'm CCing kde-pim)
> May be the problem can be fixed in the code, because Comment fields
> with commas in .desktop files for KCM modules do not require quotes.
> See screenshot in the attachment. The string with a comma "User
> information such as password, name and email" comes from
> kcm_useraccount.desktop.

Hi again,

Sorry for lack of examples from me. In desktop_kdepim-runtime.po,
there are two messages that work only because they are doublequoted,
one of them is:
"Resource to manage DAV calendars and address books (CalDAV, GroupDAV)"

If you remove the quotes during translation, or change them to
«Resource to manage DAV calendars and address books (CalDAV,
GroupDAV)», then it won't work. This particular message was fixed
twice, because [... sorry I'm trying to be polite to people and not
say why for that reason...], here is one of the commits:
http://commits.kde.org/kdepim-runtime/171a22b3883858d4d490657098bee58e255af3da

-- 
Alexander Potashev
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list