From 235e8ed2e122140a8476ba91b365ec92a5103530 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 16 Oct 2019 16:50:40 +0800 Subject: migrate from intltool to gettext --- capplets/keybindings/Makefile.am | 7 ++++--- capplets/keybindings/mate-keybinding.desktop.in | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'capplets/keybindings') diff --git a/capplets/keybindings/Makefile.am b/capplets/keybindings/Makefile.am index 022e006f..efa8c919 100644 --- a/capplets/keybindings/Makefile.am +++ b/capplets/keybindings/Makefile.am @@ -16,20 +16,21 @@ mate_keybinding_properties_SOURCES = \ eggaccelerators.c \ eggaccelerators.h -@INTLTOOL_DESKTOP_RULE@ - include $(top_srcdir)/gla11y.mk desktopdir = $(datadir)/applications Desktop_in_files = mate-keybinding.desktop.in desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop) -@INTLTOOL_XML_NOMERGE_RULE@ +$(desktop_DATA): $(Desktop_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ xmldir = $(pkgdatadir)/keybindings xml_in_files = 00-multimedia-key.xml.in 01-desktop-key.xml.in xml_DATA = $(xml_in_files:.xml.in=.xml) +$(xml_DATA): $(xml_in_files) + $(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = mate-keybindings.pc diff --git a/capplets/keybindings/mate-keybinding.desktop.in b/capplets/keybindings/mate-keybinding.desktop.in index d154d342..b67aad9b 100644 --- a/capplets/keybindings/mate-keybinding.desktop.in +++ b/capplets/keybindings/mate-keybinding.desktop.in @@ -1,11 +1,13 @@ [Desktop Entry] -_Name=Keyboard Shortcuts -_Comment=Assign shortcut keys to commands +Name=Keyboard Shortcuts +Comment=Assign shortcut keys to commands Exec=mate-keybinding-properties +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! Icon=preferences-desktop-keyboard-shortcuts Terminal=false Type=Application StartupNotify=true Categories=GTK;Settings;HardwareSettings; +# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Keywords=mate-control-center;MATE;assign;keyboard;shortcuts;keybindings; OnlyShowIn=MATE; -- cgit v1.2.1