[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Should an application uses framework translations if it is not itself translated?
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2014-04-22 15:55:57
Message-ID: lj63eg$4uc$1 () ger ! gmane ! org
[Download RAW message or body]

Burkhard Lück wrote:

> Am Dienstag, 22. April 2014, 17:06:11 schrieb Aurélien Gâteau:
>> While working on KI18n-translated frameworks, I discovered KI18n does not
>> translate any string if the application itself is not translated.
> 
> What exactly is the definition of "application itself is not translated"
> here?
> 
> * Zero translated messages in the application catalog i. e. no application
> catalog (.mo file) installed?
> 
> * Does one translated message in an application catalog with e.g. a few
> hundred messages make this application already translated, because a
> catalog (.mo file) is installed?

Just checked the code. An application is considered not translated in a 
language if there is no $lang/LC_MESSAGES/$appname.mo file.

I bumped into this situation while running test programs: KIconThemes (my 
guinea pig for KI18n work) provides a few manual test programs like 
kicondialogtest or kiconbuttontest. Those programs show KIconThemes dialog 
boxess but they won't be translated because the test programs themselves do 
not have an installed .mo file.

Chusslove suggested manually setting the catalog name to ki18n5 in the test 
files. That should work around the issue but it is one more thing to add to 
all test programs. I'd rather have translations which work out of the box 
for test programs just like they work out of the box with real (translated) 
applications.

Aurélien

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic