https://bugs.kde.org/show_bug.cgi?id=375385

Wolfgang Rohdewald <wolfg...@rohdewald.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDSINFO
                 CC|                            |wolfg...@rohdewald.de
         Resolution|---                         |WAITINGFORINFO

--- Comment #1 from Wolfgang Rohdewald <wolfg...@rohdewald.de> ---
I  have no idea how to find the correct path for .mo files. Right now
/usr/local/share/locale and /usr/share/locale are hard coded.

Does kf5-config --path locale return the correct path for you?

But - I have not been able to find the source code for kf5-config. Can you give
me a hint?

Please remember that this is Python and there are currently no usable KF5
bindings for Python, so I cannot simply use KF5 classes - I have to simulate
what they do. This will never be perfect, but right now at least it should work
for standard installations.



*qt.pm are a different case:
1. using QLibraryInfo.location(QLibraryInfo.TranslationsPath),
'qtbase_{}.qm'.format(language)))
2. qtpaths does not seem to return that path at all  (see qtpaths --types)
3. kajongg does actually load *.qm but makes no use of them because KDE has
support for many more languages and until now I found no place where kajongg
actually needs them. Will remove loading *.qm. (see commits 9c429f29 and
8b98952)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to