Bug 323675 - Akonadi IMAP resource does not load translations from libkimap.mo
Summary: Akonadi IMAP resource does not load translations from libkimap.mo
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.10
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-18 15:17 UTC by Yuri Chornoivan
Modified: 2013-08-19 11:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Chornoivan 2013-08-18 15:17:39 UTC
I have an Akonadi IMAP resource (gmail account). When connection to IMAP server is lost (due to the machine suspending or Google server failure) I see a notification message in a system tray saying "Connection to server lost." (untranslated) (KDE 4.10).
 
This message is from kdepimlibs/libkimap.po. It is translated into Ukrainian but is never loaded.
 
Searching "libkimap" in the code of kdepim, kdepim-runtime and kdepimlibs in git/master shows nothing but Messages.sh in kdepimlibs.
 
lsof | grep libkimap shows some processes:
 
akonadi_a 12326          yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
akonadi_i 12339          yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
KIMAP::Se 12339 15150    yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
KIMAP::Se 12339 16189    yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
akonadi_m 12347          yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
QProcessM 12347 13779    yurchor  mem       REG                8,5       499592    1063665 /usr/lib64/libkimap.so.4.10.5
 
but lsof | grep libkimap.mo shows nothing.

Reproducible: Always

Steps to Reproduce:
1. Add an Akonadi IMAP resource in a system with non-English locale and translated kdepimlibs/libkimap.po.
2. Broke connection to with server with some method.
Actual Results:  
Notification in the tray "Connection to server lost."  is shown untranslated.

Expected Results:  
Translated notification.

It was suggested by Albert Astals Cid that libkimap should use a KCatalogLoader.

Thanks for fixing this issue.
Comment 1 Daniel Vrátil 2013-08-19 11:52:40 UTC
Git commit 5c1e2c4a5fdfd560d35a3a34818aa8c5bebf4c7a by Dan Vrátil.
Committed on 19/08/2013 at 11:51.
Pushed by dvratil into branch 'KDE/4.11'.

Load KIMAP translations catalog

REVIEW: 112153
FIXED-IN: 4.11.1

M  +1    -0    kimap/CMakeLists.txt
A  +23   -0    kimap/global.cpp     [License: LGPL (v2+)]

http://commits.kde.org/kdepimlibs/5c1e2c4a5fdfd560d35a3a34818aa8c5bebf4c7a