Bug 313798 - 'Print' and 'Create To-do/Reminder' actions always open a dialog in English instead of current language.
Summary: 'Print' and 'Create To-do/Reminder' actions always open a dialog in English i...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.10 pre
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-24 02:12 UTC by André Marcelo Alvarenga
Modified: 2013-01-24 17:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Marcelo Alvarenga 2013-01-24 02:12:23 UTC
I'm using pt_BR language in my system.
When I use 'Print' and 'Create To-do/Reminder' actions, a dialog in English is open.
Works when I use 'Print' in other application and 'New to-do' in KOrganizer.

Reproducible: Always

Steps to Reproduce:
1. Open KMail in your language (not English, of course)
2. Select a message

Print action:
3. Click on 'Print' action in File->Print or Context Menu
4. See Print dialog in English


Create To-do/Reminder action:
3. Message -> Create To-do/Reminder or select in Context Menu
4. The first dialog is ok (translated)
5. Choose 'Attach as link', 'Attach inline' or 'Attach inline without attachments' button
6. See Create To-do/Reminder dialog in English
Comment 1 Burkhard Lück 2013-01-24 05:42:00 UTC
Confirmed for both dialogs.

Strange is that kdepim/incidenceeditor-ng/incidenceeditor.cpp has a line
static const KCatalogLoader loader( "libincidenceeditors" ); which should load the translation catalog together with the library.

cc'ing Albert, who developed the KCatalogLoader
Comment 2 Albert Astals Cid 2013-01-24 17:14:42 UTC
Git commit 05d8e083373f4b166171e077e0023f1af78b8ccf by Albert Astals Cid.
Committed on 24/01/2013 at 18:13.
Pushed by aacid into branch 'KDE/4.10'.

No i18n in the global namespace

You need a kcomponent for i18n to work, and if it's in the global namespace it gets inited before anything can happen

Please do not ignore
"KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work"
in the future
CCMAIL: montel@kde.org

M  +1    -1    messageviewer/translator/translatorutil.cpp
M  +61   -61   messageviewer/translator/translatorutil.h

http://commits.kde.org/kdepim/05d8e083373f4b166171e077e0023f1af78b8ccf
Comment 3 Albert Astals Cid 2013-01-24 17:19:58 UTC
Git commit 4f6c6e073d6a4251d64891f678feabe711d38607 by Albert Astals Cid.
Committed on 24/01/2013 at 18:18.
Pushed by aacid into branch 'KDE/4.10'.

I forgot the i18n here in the previous commit
CCMAIL: montel@kde.org

M  +1    -1    messageviewer/translator/translatorutil.cpp

http://commits.kde.org/kdepim/4f6c6e073d6a4251d64891f678feabe711d38607