Wrong messages in kcm_tp_chat_behavior.po

Chusslove Illich caslav.ilic at gmx.net
Fri Jan 4 10:03:33 UTC 2013


> [: Albert Astals Cid :]
> I'm not sure which UI you use there but maybe using a
> KIntSpinBox+setSuffix works?

In some languages also the first part of that sentence (the label in front
of the spinbox) needs to change according to the number. I have seen this
case handled before by updating both labels with i18ncp() on value change
signal. Something like:

  void slotUpdateFooLabels (int value)
  {
      fooLabel1->setText(i18ncp("Part of 'Show last <N> messages' UI construct",
                                "Show last", "Show last", value));
      fooLabel2->setText(i18ncp("Part of 'Show last <N> messages' UI construct",
                                "message", "messages", value));
  }

Also comment="KDE::DoNotExtract" should be set to strings in the .ui file,
so that these never-used messages are not extracted for translation.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130104/04c49e50/attachment.sig>


More information about the KDE-Telepathy mailing list