Merge lp:~renatofilho/mediaplayer-app/fix-1382317 into lp:mediaplayer-app/rtm-14.09

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Bill Filler
Approved revision: 269
Merged at revision: 269
Proposed branch: lp:~renatofilho/mediaplayer-app/fix-1382317
Merge into: lp:mediaplayer-app/rtm-14.09
Diff against target: 47 lines (+24/-6)
1 file modified
po/CMakeLists.txt (+24/-6)
To merge this branch: bzr merge lp:~renatofilho/mediaplayer-app/fix-1382317
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+240875@code.launchpad.net

This proposal supersedes a proposal from 2014-11-05.

Commit message

Fixed cmake script to generate the necessary translations for desktop file.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:303
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~renatofilho/mediaplayer-app/fix-1382317/+merge/240757/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/mediaplayer-app-ci/242/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/6490
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/4305
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-utopic-amd64-ci/50
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-utopic-armhf-ci/50
        deb: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-utopic-armhf-ci/50/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-utopic-i386-ci/50
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/6077
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/7742
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/7742/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/15489
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/3656
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4699
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4699/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/mediaplayer-app-ci/242/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote : Posted in a previous version of this proposal

Is your branch in sync with latest trunk? YES

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator? YES

Did you successfully run all tests found in your component's Test Plan on device or emulator? YES

If you changed the UI, was the change specified/approved by design? NO UI CHANGED

If you changed UI labels, did you update the pot file? NO LABEL CHANGED

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP? NO PACKAGE CHANGE

268. By Bill Filler

update translations

269. By Renato Araujo Oliveira Filho

Fixed cmake script to generate the necessary translations for desktop file.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/CMakeLists.txt'
2--- po/CMakeLists.txt 2014-06-16 14:08:17 +0000
3+++ po/CMakeLists.txt 2014-11-10 17:50:21 +0000
4@@ -5,11 +5,12 @@
5 set(DOMAIN mediaplayer-app)
6 set(POT_FILE ${DOMAIN}.pot)
7 file(GLOB PO_FILES *.po)
8-file(GLOB_RECURSE I18N_SRCS RELATIVE ${CMAKE_SOURCE_DIR}
9+file(GLOB_RECURSE I18N_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
10 ${CMAKE_SOURCE_DIR}/src/*.qml)
11-list(APPEND I18N_SRCS data/${DESKTOP_FILE}.in.in)
12 list(SORT I18N_SRCS)
13-message("Found ${I18N_SRCS}")
14+
15+file(RELATIVE_PATH DESKTOP_FILE_IN_IN ${CMAKE_CURRENT_SOURCE_DIR}
16+ ${CMAKE_SOURCE_DIR}/data/${DESKTOP_FILE}.in.in)
17
18 foreach(PO_FILE ${PO_FILES})
19 get_filename_component(LANG ${PO_FILE} NAME_WE)
20@@ -25,7 +26,24 @@
21 add_custom_target(${POT_FILE} ALL
22 COMMENT "Generating translation template"
23 COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini
24- --srcdir=${CMAKE_SOURCE_DIR} data/${DESKTOP_FILE}.in.in
25- COMMAND ${XGETTEXT_EXECUTABLE} --c++ --qt --add-comments=TRANSLATORS --keyword=tr --keyword=tr:1,2 -D ${CMAKE_SOURCE_DIR} -s -p ${CMAKE_CURRENT_SOURCE_DIR} -o mediaplayer-app.pot ${I18N_SRCS}
26- )
27+ --srcdir=${CMAKE_CURRENT_SOURCE_DIR} ${DESKTOP_FILE_IN_IN}
28+ COMMAND ${XGETTEXT_EXECUTABLE} -o ${POT_FILE}
29+ --c++ --qt --add-comments=TRANSLATORS
30+ --keyword=tr --keyword=tr:1,2 --keyword=N_
31+ --package-name=${DOMAIN}
32+ --copyright-holder='Canonical Ltd.'
33+ -s -p ${CMAKE_CURRENT_SOURCE_DIR}
34+ -D ${CMAKE_CURRENT_SOURCE_DIR} ${I18N_SRCS}
35+ -D ${CMAKE_CURRENT_BINARY_DIR} ${DESKTOP_FILE_IN_IN}.h
36+ )
37+
38+ add_custom_target(translations
39+ COMMENT "Updating translation files"
40+ )
41+ add_dependencies(translations ${POT_FILE})
42+ foreach(PO_FILE ${PO_FILES})
43+ add_custom_command(TARGET translations
44+ COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} ${PO_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${POT_FILE} -o ${PO_FILE}
45+ )
46+ endforeach(PO_FILE)
47 endif()

Subscribers

People subscribed via source and target branches