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

Alexander Potashev aspotashev at gmail.com
Tue Jan 14 19:35:36 GMT 2014


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.

-- 
Alexander Potashev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcms-deal-with-commas.png
Type: image/png
Size: 32239 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20140114/fa6d8f04/attachment.png>
-------------- next part --------------
_______________________________________________
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