diff options
author | Jani Välimaa <wally@mageia.org> | 2014-12-26 12:11:17 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2014-12-26 12:11:17 +0200 |
commit | caf470421298232ebc5223f271e9f213d0b1b01f (patch) | |
tree | 99edc541bc2cc3854705fac0e815b4bcc29bc69e | |
parent | 4c17f70422a8ff8e6d155da1adc509b0877844c5 (diff) | |
download | config-caf470421298232ebc5223f271e9f213d0b1b01f.tar config-caf470421298232ebc5223f271e9f213d0b1b01f.tar.gz config-caf470421298232ebc5223f271e9f213d0b1b01f.tar.bz2 config-caf470421298232ebc5223f271e9f213d0b1b01f.tar.xz config-caf470421298232ebc5223f271e9f213d0b1b01f.zip |
Add intltool support for translating .desktop files
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | data/Makefile.am | 42 |
2 files changed, 38 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index cada8bd..1aa6522 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_INIT([mageia-xfce-config], [4.100.5.8], [http://bugs.mageia.org]) AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz]) # Checks for programs. +AC_PROG_INTLTOOL AC_PROG_INSTALL AC_PROG_MKDIR_P @@ -17,5 +18,5 @@ AC_PROG_MKDIR_P # Checks for library functions. -AC_CONFIG_FILES([Makefile data/Makefile]) +AC_CONFIG_FILES([Makefile data/Makefile po/Makefile.in]) AC_OUTPUT diff --git a/data/Makefile.am b/data/Makefile.am index af292e7..8f6fdb8 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,16 +1,10 @@ xfcedir = ${sysconfdir}/xdg - nobase_dist_xfce_DATA = \ menus/xfce-applications.menu \ orage/oragerc \ Thunar/accels.scm \ Thunar/uca.xml \ xfce4/helpers.rc \ - xfce4/panel/launcher-4/terminal-emulator.desktop \ - xfce4/panel/launcher-5/text-editor.desktop \ - xfce4/panel/launcher-6/file-manager.desktop \ - xfce4/panel/launcher-8/web-browser.desktop \ - xfce4/panel/launcher-9/mcc.desktop \ xfce4/panel/whiskermenu-1.rc \ xfce4/panel/xfce4-orageclock-plugin-19.rc \ xfce4/terminal/terminalrc \ @@ -33,3 +27,39 @@ nobase_dist_xfce_DATA = \ xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml \ xfce4/xfconf/xfce-perchannel-xml/xsettings.xml \ xfce4/Xft.xrdb + +terminaldir = $(xfcedir)/xfce4/panel/launcher-4 +terminal_in_files = xfce4/panel/launcher-4/terminal-emulator.desktop.in +terminal_DATA = $(terminal_in_files:.desktop.in=.desktop) + +textdir = $(xfcedir)/xfce4/panel/launcher-5 +text_in_files = xfce4/panel/launcher-5/text-editor.desktop.in +text_DATA = $(text_in_files:.desktop.in=.desktop) + +filedir = $(xfcedir)/xfce4/panel/launcher-6 +file_in_files = xfce4/panel/launcher-6/file-manager.desktop.in +file_DATA = $(file_in_files:.desktop.in=.desktop) + +webdir = $(xfcedir)/xfce4/panel/launcher-8 +web_in_files = xfce4/panel/launcher-8/web-browser.desktop.in +web_DATA = $(web_in_files:.desktop.in=.desktop) + +mccdir = $(xfcedir)/xfce4/panel/launcher-9 +mcc_in_files = xfce4/panel/launcher-9/mcc.desktop.in +mcc_DATA = $(mcc_in_files:.desktop.in=.desktop) + +@INTLTOOL_DESKTOP_RULE@ + +CLEANFILES = \ + $(terminal_DATA) \ + $(text_DATA) \ + $(file_DATA) \ + $(web_DATA) \ + $(mcc_DATA) + +EXTRA_DIST = \ + $(terminal_in_files) \ + $(text_in_files) \ + $(file_in_files) \ + $(web_in_files) \ + $(mcc_in_files) |