Merge lp:~charlesk/indicator-session/lp-1318980-fix-translation-install-dir into lp:indicator-session/14.04

Proposed by Charles Kerr
Status: Superseded
Proposed branch: lp:~charlesk/indicator-session/lp-1318980-fix-translation-install-dir
Merge into: lp:indicator-session/14.04
Diff against target: 12 lines (+1/-1)
1 file modified
cmake/Translations.cmake (+1/-1)
To merge this branch: bzr merge lp:~charlesk/indicator-session/lp-1318980-fix-translation-install-dir
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
In Pending
Review via email: mp+220462@code.launchpad.net

This proposal has been superseded by a proposal from 2014-11-03.

Commit message

Install translations into the correct directories.

Description of the change

(This is identical to the indicator-location change at https://code.launchpad.net/~charlesk/indicator-location/lp-1318980-fix-translation-install-dir/+merge/220458)

Copy indicator-datetime/cmake/Translations.cmake into this package so that .mo files will be installed into the correct directory.

After applying this patch, "cmake -DCMAKE_INSTALL_PREFIX=/tmp/test-install" + "make install" looks like:

-- Installing: /tmp/test-install/share/locale/sc/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/ur/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/si/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/lv/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/ro/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/pt/LC_MESSAGES/indicator-session.mo
-- Installing: /tmp/test-install/share/locale/gu/LC_MESSAGES/indicator-session.mo

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/Translations.cmake'
2--- cmake/Translations.cmake 2013-07-02 00:26:11 +0000
3+++ cmake/Translations.cmake 2014-05-21 14:10:32 +0000
4@@ -10,7 +10,7 @@
5 add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_OUTPUT} ${PO_INPUT})
6
7 install (FILES ${MO_OUTPUT} DESTINATION
8- ${CMAKE_INSTALL_LOCALEDIR}/LC_MESSAGES
9+ ${CMAKE_INSTALL_LOCALEDIR}/${PO_INPUT_BASE}/LC_MESSAGES
10 RENAME ${NLS_PACKAGE}.mo)
11 endforeach (PO_INPUT ${PO_FILES})
12 endmacro(add_translations_directory)

Subscribers

People subscribed via source and target branches