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

            Bug ID: 416247
           Summary: KLocalizedString::toString not behaving as documented
           Product: frameworks-ki18n
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: caslav.i...@gmx.net
          Reporter: sit...@kde.org
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
Documentation says "If \p languages is empty, original message is returned."
which is not actually what's happening.

OBSERVED RESULT
`label.toString(QStringList());`

returns the localized string when I have LANGUAGE=de

EXPECTED RESULT
Returned value should be the original input string.

ADDITIONAL INFORMATION
The use case is in kinfocenter's about system module, which offers the ability
to copy a textual dump to clipboard when the current system language is not
english (i.e. an auto-untranslate feature if you will). Currently this is
hardcoded but would be nice to just use KLS I suppose.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to