[Kmymoney-devel] [kmymoney4] [Bug 327729] [l10n] Bad French localization on numbers and dates

Thomas Baumgart ipwizard at users.sourceforge.net
Mon Nov 18 22:11:42 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=327729

--- Comment #5 from Thomas Baumgart <ipwizard at users.sourceforge.net> ---
The come from KMyMoney:

void kMyMoneyScheduledDateTbl::addDayPostfix(QString& text)
{
  int d = text.toInt();

  if (d >= 1 && d <= 31) {
    QStringList postfixList =
      i18nc("These are the suffix strings of the days in the calendar view;
please make sure that you keep all the 30 separators (the '-' character) when
translating",
           
"st-nd-rd-th-th-th-th-th-th-th-th-th-th-th-th-th-th-th-th-th-st-nd-rd-th-th-th-th-th-th-th-st").split('-',
QString::KeepEmptyParts);
    if (d <= postfixList.size()) // make sure that an improper translation will
not cause a crash
      text += postfixList[d-1];
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list