summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-16 16:50:40 +0800
committerraveit65 <[email protected]>2019-11-07 13:20:17 +0100
commit235e8ed2e122140a8476ba91b365ec92a5103530 (patch)
treec072b4e510df11c859cbd69953b15cd886e27697 /shell
parent0470814242979fdf1fe3d78b8e203edf87156bdd (diff)
downloadmate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.bz2
mate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.xz
migrate from intltool to gettext
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile.am12
-rw-r--r--shell/matecc.desktop.in8
-rw-r--r--shell/matecc.directory.desktop.in6
-rw-r--r--shell/matecc.directory.in5
4 files changed, 18 insertions, 13 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 5d87e4aa..e2f81ba8 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -19,17 +19,19 @@ mate_control_center_LDADD = \
sysdir = $(datadir)/applications
sys_in_files = matecc.desktop.in
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
-@INTLTOOL_DESKTOP_RULE@
+$(sys_DATA): $(sys_in_files)
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
directorydir = $(datadir)/desktop-directories
-directory_in_files = matecc.directory.in
-directory_DATA = $(directory_in_files:.directory.in=.directory)
-@INTLTOOL_DIRECTORY_RULE@
+directory_in_files = matecc.directory.desktop.in
+directory_DATA = $(directory_in_files:.directory.desktop.in=.directory)
+$(directory_DATA): $(directory_in_files)
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
menudir = $(sysconfdir)/xdg/menus
menu_DATA = matecc.menu
-EXTRA_DIST = $(sys_in_files) matecc.directory.in matecc.menu
+EXTRA_DIST = $(sys_in_files) matecc.directory.desktop.in matecc.menu
DISTCLEANFILES = $(sys_DATA) matecc.directory
diff --git a/shell/matecc.desktop.in b/shell/matecc.desktop.in
index 9b1b4c22..c0d6d40a 100644
--- a/shell/matecc.desktop.in
+++ b/shell/matecc.desktop.in
@@ -1,12 +1,14 @@
[Desktop Entry]
-_Name=Control Center
-_GenericName=The MATE configuration tool
-_Comment=Configure MATE settings
+Name=Control Center
+GenericName=The MATE configuration tool
+Comment=Configure MATE settings
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=preferences-desktop
Exec=mate-control-center
Terminal=false
Type=Application
StartupNotify=false
Categories=GTK;Settings;
+# 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;configuration;tool;destop;preferences;
OnlyShowIn=MATE;
diff --git a/shell/matecc.directory.desktop.in b/shell/matecc.directory.desktop.in
new file mode 100644
index 00000000..003f4507
--- /dev/null
+++ b/shell/matecc.directory.desktop.in
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Control Center
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
+Icon=mate-settings
+Type=Directory
+
diff --git a/shell/matecc.directory.in b/shell/matecc.directory.in
deleted file mode 100644
index d95757b7..00000000
--- a/shell/matecc.directory.in
+++ /dev/null
@@ -1,5 +0,0 @@
-[Desktop Entry]
-_Name=Control Center
-Icon=mate-settings
-Type=Directory
-