Allow for Translations
ClosedPublic

Authored by rizzitello on Jul 13 2017, 8:31 PM.

Details

Summary

Create the Messages.sh file , Add the nessessary CMake parts to generate and use the messages

Diff Detail

Repository
R232 AtCore
Branch
Messages
Lint
No Linters Available
Unit
No Unit Test Coverage
rizzitello created this revision.Jul 13 2017, 8:31 PM
rizzitello retitled this revision from Add Messages.sh file to Add Messages file.Jul 13 2017, 8:33 PM
rizzitello edited the summary of this revision. (Show Details)
rizzitello added a subscriber: Atelier: AtCore.

From a technical point of view, the file is correct, so +1. I can't accept the patch because it depends on your decision (between this and D6651).

I expect D6651 to be abandoned.

ltoscano requested changes to this revision.Jul 13 2017, 8:54 PM

Oh, in order to actually use the translations, you need to also a special macro: ecm_install_po_files_as_qm.
You can see real usage in tier 1 frameworks, (kcoreaddons, kconfig, kbookmarks, etc).
So please add also the necessary part to the cmake file(s) and update the review (and its title).

This revision now requires changes to proceed.Jul 13 2017, 8:54 PM
rizzitello updated this revision to Diff 16679.Jul 13 2017, 9:17 PM
rizzitello edited edge metadata.
  • Add the Ecm Po Qm tools
rizzitello updated this revision to Diff 16680.Jul 13 2017, 9:27 PM
  • Add the Ecm Po Qm tools
rizzitello retitled this revision from Add Messages file to Allow for Translations.Jul 13 2017, 9:29 PM
rizzitello edited the summary of this revision. (Show Details)
ltoscano accepted this revision.Jul 13 2017, 9:57 PM

The translation system work (tested by adding a file po/it/atcore_qt.po with some translated strings, and they are visibile in the UI).

I'm going to accept it; of course you can decide to wait for a second opinion from the rest of your team.

testclient/CMakeLists.txt
14

Unrelated to the patch, but are you sure that you need this find_package again?

This revision is now accepted and ready to land.Jul 13 2017, 9:57 PM
laysrodrigues accepted this revision.Jul 13 2017, 11:41 PM
This revision was automatically updated to reflect the committed changes.