Review Request 122937: Preserve translation domain when merging KXmlGui files

Chusslove Illich caslav.ilic at gmx.net
Sat Mar 14 11:46:59 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122937/
-----------------------------------------------------------

Review request for KDE Frameworks, David Faure and Lasse Liehu.


Repository: kxmlgui


Description
-------

When two .rc documents that specify different translation domains are merged, only one of the two domains will appear in the merged document. This breaks translation of text elements under the dropped domain. To fix it, the top domain attribute (or the application domain) should be propagated to each text element before merging. Then, at the moment of translation, the local domain attribute should take priority over the top attribute (or the application domain).

This fix also works if the merged document is written out and later loaded. Hence the local translation domain attribute is added to schemas as well.

Reference bug report: https://bugs.kde.org/show_bug.cgi?id=342976


Diffs
-----

  src/kedittoolbar.cpp 40c8bd6 
  src/kpartgui.dtd 587cd8e 
  src/ktoolbar.cpp f79a149 
  src/kxmlgui.xsd bca02f1 
  src/kxmlguibuilder.cpp d4cfa7a 
  src/kxmlguiclient.cpp 12d3f44 

Diff: https://git.reviewboard.kde.org/r/122937/diff/


Testing
-------

Tested an application that previously had an untranslated menu title due to this issue, now it is translated.


Thanks,

Chusslove Illich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150314/1dd09559/attachment.html>


More information about the Kde-frameworks-devel mailing list