~indicator-applet-developers/indicator-session/trunk.16.10

« back to all changes in this revision

Viewing changes to po/CMakeLists.txt

  • Committer: Rodney Dawes
  • Date: 2017-02-07 21:04:44 UTC
  • mto: This revision was merged to the branch mainline in revision 483.
  • Revision ID: rodney.dawes@canonical.com-20170207210444-0xl2144yuefyi37r
Use intltool support from cmake-extras.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include (Translations)
2
 
add_translations_directory ("${GETTEXT_PACKAGE}")
3
 
add_translations_catalog ("${GETTEXT_PACKAGE}" ../src/ ../src/dbus-backend)
 
1
find_package(Intltool REQUIRED)
 
2
 
 
3
intltool_update_potfile(
 
4
    KEYWORDS "_" "_:1,2" "N_" "N_:1,2"
 
5
    GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
 
6
    COPYRIGHT_HOLDER "Canonical Ltd."
 
7
)
 
8
 
 
9
intltool_install_translations(
 
10
    ALL
 
11
    GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
 
12
)