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

List:       kde-i18n-doc
Subject:    Loading translation catalogs from $PWD
From:       Shinjo Park <kde () peremen ! name>
Date:       2016-02-05 23:57:53
Message-ID: 2000681.ujmtsJxin6 () ainazi
[Download RAW message or body]

Hi all,

Recently I launched Kate from the directory where I placed some mo files to 
examine. strace shows Kate loaded system translations catalog, followed by  
translation catalog in the subdirectory of *current working directory*. As a 
result, the translations of Kate had been changed to the messages coming from 
.mo file under $PWD.

Assuming that my $PWD is /home_hdd/psj/playground/mo, strace kate shows like 
this: (snipped only .mo loading from $PWD)

getcwd("/home_hdd/psj/dev/playground/mo", 4098) = 29
open("/home_hdd/psj/dev/playground/mo//ko_KR.eucKR/LC_MESSAGES/kate.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//ko_KR.euckr/LC_MESSAGES/kate.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//ko_KR/LC_MESSAGES/kate.mo", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//ko.eucKR/LC_MESSAGES/kate.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//ko.euckr/LC_MESSAGES/kate.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//ko/LC_MESSAGES/kate.mo", O_RDONLY) = 12

Of course, my $LANG is "ko_KR.UTF-8" so "ko_KR.eucKR" is not used at all (and 
makes no sense for me). This is also partially true for kdelibs4-based apps, 
like Kolourpaint:

getcwd("/home_hdd/psj/dev/playground/mo", 4098) = 29
open("/home_hdd/psj/dev/playground/mo//en_US/LC_MESSAGES/kdelibs4.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home_hdd/psj/dev/playground/mo//en/LC_MESSAGES/kdelibs4.mo", O_RDONLY) 
= -1 ENOENT (No such file or directory)

It looks like other KF5/kdelibs4 apps are doing the same. I am using Kubuntu 
15.10 packages, is it the characteristic/problem of Kubuntu only, or other 
distros have the same problem? Or is this the "undocumented" feature?

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

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