Summary: | Opening balance account is untranslated | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.8.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | All | ||
Latest Commit: | https://commits.kde.org/kmymoney/439f01b5fb53ad16950fda026960a5783d6fbfb7 | Version Fixed In: | 4.8.1,5.0.0 |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 370290 |
Description
Ralf Habacker
2016-10-08 10:21:45 UTC
The root cause is located in mymoneyfile.cpp:56 were the following definition const QString MyMoneyFile::OpeningBalancesPrefix = I18N_NOOP("Opening Balances"); defines a translation, but does not really translate it. Changing const QString MyMoneyFile::OpeningBalancesPrefix = I18N_NOOP("Opening Balances"); to const QString MyMoneyFile::OpeningBalancesPrefix = i18n("Opening Balances"); do not solve the problem, because i18n context seems not to be defined on that initialization stage. There is a refactoring of the related code required. Git commit 439f01b5fb53ad16950fda026960a5783d6fbfb7 by Ralf Habacker. Committed on 25/05/2017 at 12:18. Pushed by habacker into branch '4.8'. Fix 'Opening balance account is untranslated'. Using i18n for assigning a static variable does not work; therefore OpeningBalancesPrefix has been refactored into a static class method which is called on demand. FIXED-IN:4.8.1 M +7 -3 kmymoney/mymoney/mymoneyfile.cpp M +4 -4 kmymoney/mymoney/mymoneyfile.h M +2 -2 kmymoney/mymoney/mymoneyfiletest.cpp https://commits.kde.org/kmymoney/439f01b5fb53ad16950fda026960a5783d6fbfb7 |