By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1626

Summary: Some cmake-built packages are missing the translations and/or documentation (build ok with autotools)
Product: TDE Reporter: Francois Andriot <albator78>
Component: other (any)Assignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, fatzer2, slavek.banko
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: tdepowersave : add language build
propoused patch for cmake module
propoused patch for tdepowersave
propoused patch for tdepowersave

Description Francois Andriot 2013-08-13 00:29:21 CDT
For example: TDEPowersave.
The "po" subdirectory is not called by the top-level CMakeLists.txt .
Comment 1 Francois Andriot 2013-08-13 00:32:06 CDT
Created attachment 1463 [details]
tdepowersave : add language build

I've noticed that our cmake macro "tde_create_translation" (from TDEMacros.cmake) is inappropriate for this case.

In TDEPowersave, as well as other components, every language has a single file "<language>.po", all located in an unique folder.
The TDE macro expects that "po" files have all the same name, but are located in different subfolder (1 subfolder for each language).
The TDE macro does NOT rename the files when installing.

The attached patch is an incorrect attempt to use the macro.
It results that files are installed with name "<language>.po", e.g. "/opt/trinity/share/locale/fr/LC_MESSAGES/fr.mo", where it should be "/opt/trinity/share/locale/fr/LC_MESSAGES/tdepowersave.mo"

Instead of moving/renaming files in source code, and messing with the autotools build, I think we should have another Cmake macro that handle this case.
Comment 2 Alexander Golubev (Fat-Zer) 2013-08-13 16:51:39 CDT
Created attachment 1464 [details]
propoused patch for cmake module

Here is a propoused patch or cmake module. I've tested it for tdepowersave(all-in-one-dir structure) and konversation(normal translation structure).

tdepowersave also lacks of documentation build support, so I'm updating the bug summary header.
Comment 3 Alexander Golubev (Fat-Zer) 2013-08-13 17:35:54 CDT
Created attachment 1465 [details]
propoused patch for tdepowersave

Here is a patch for tdepowersave to add translation and documentation support.

PS: sorry if I updated the bug summary too fast... may be you want a separate bug to track documentation issues.
Comment 4 Alexander Golubev (Fat-Zer) 2013-08-13 17:39:47 CDT
Created attachment 1466 [details]
propoused patch for tdepowersave
Comment 5 Francois Andriot 2013-08-14 12:12:03 CDT
Your 2 patches work as expected for me.
If there is no objection, I think they can be pushed to GIT.
Comment 6 Slávek Banko 2013-09-16 19:23:44 CDT
Comment on attachment 1464 [details]
propoused patch for cmake module

Pushed to GIT in hash b51b691c.
Comment 7 Slávek Banko 2013-09-19 20:33:42 CDT
Comment on attachment 1463 [details]
tdepowersave : add language build

Superseded by attachment 1466 [details]
Comment 8 Slávek Banko 2013-09-19 20:34:38 CDT
Comment on attachment 1466 [details]
propoused patch for tdepowersave

Guys, it was really nice. The first patch proposed by François, second was from Fat-Zer and the third has already been pushed commit from Darrell. So I did merge and update the remaining part by Fat-Zer patch :)

Pushed to GIT in hash e113ed91.

Thank you to all the participating
Comment 9 Slávek Banko 2013-09-20 00:16:10 CDT
What other modules needs to fix?
Comment 10 Alexander Golubev (Fat-Zer) 2013-09-22 11:00:45 CDT
(In reply to comment #9)
> What other modules needs to fix?

IMO The main idea idea of that bug was it had been impossible to implement the translation support in the sane way unless the patch to shared cmake module was applyed.
Also I don't think there are any other yet because only a few non-core modules were ported to cmake. So this one can be closed for now and reopened as soon as anybody will find other problems.
Comment 11 Slávek Banko 2013-09-22 12:44:29 CDT
Yes, thanks to your patch to shared cmake module I currently fix building translations in kbfx.

This bug for now I close.
Thanks