| Summary: | Localization of "search term" in class RunnerSyntax doesn't work | ||
|---|---|---|---|
| Product: | [Plasma] krunner | Reporter: | Lasse Liehu <lasse.liehu> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Add catalog libplasma to krunner | ||
Created attachment 58937 [details]
Add catalog libplasma to krunner
Agh, forget what I wrote there. Well, this patch works (tested) and was the best place I found not knowing the code base.
Git commit fd7ae565b058e1be75f96b4e23ad2181a05f0d13 by Lasse Liehu. Committed on 15/05/2011 at 20:46. Pushed by lliehu into branch 'KDE/4.6'. Make sure "search term" is localized in krunner BUG:264794 (cherry picked from commit 9ea90f9bf35899b8183c1bac80b3a4c1805542b5) M +1 -0 krunner/main.cpp http://commits.kde.org/kde-workspace/fd7ae565b058e1be75f96b4e23ad2181a05f0d13 Git commit 9ea90f9bf35899b8183c1bac80b3a4c1805542b5 by Lasse Liehu. Committed on 15/05/2011 at 20:46. Pushed by lliehu into branch 'master'. Make sure "search term" is localized in krunner BUG:264794 M +1 -0 krunner/main.cpp http://commits.kde.org/kde-workspace/9ea90f9bf35899b8183c1bac80b3a4c1805542b5 |
Version: unspecified (using KDE 4.6.0) OS: Linux In Plasma::RunnerSyntax::searchTermDescription() (kdelibs/plasma/runnersyntax.cpp): return i18n("search term"); doesn't return the translated string (at least in some cases). The problem is cured if (hackishly) calling KGlobal::locale()->insertCatalog("libplasma") in RunnerSyntax's constructor, so missing catalog seems to be the problem. RunnerSyntax objects are created in runner plugins, so could it be that the plugins don't have the "libplasma" catalog set by default? Reproducible: Always Steps to Reproduce: Can be seen when bringing up krunner's help while using a language other than en_US (x-test or something). "<search term>" doesn't get translated into "<xxsearch termxx>" (x-test) or "<hakusana>" (fi).