summaryrefslogtreecommitdiff
path: root/capplets/appearance
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 /capplets/appearance
parent0470814242979fdf1fe3d78b8e203edf87156bdd (diff)
downloadmate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.bz2
mate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.xz
migrate from intltool to gettext
Diffstat (limited to 'capplets/appearance')
-rw-r--r--capplets/appearance/data/Makefile.am9
-rw-r--r--capplets/appearance/data/mate-appearance-properties.desktop.in6
-rw-r--r--capplets/appearance/data/mate-theme-installer.desktop.in6
3 files changed, 13 insertions, 8 deletions
diff --git a/capplets/appearance/data/Makefile.am b/capplets/appearance/data/Makefile.am
index 4941da96..fc78ee53 100644
--- a/capplets/appearance/data/Makefile.am
+++ b/capplets/appearance/data/Makefile.am
@@ -17,15 +17,13 @@ dist_pixmap_DATA = \
mouse-cursor-white.png \
mouse-cursor-white-large.png
-@INTLTOOL_DESKTOP_RULE@
-
desktopdir = $(datadir)/applications
desktop_in_files = \
mate-appearance-properties.desktop.in \
mate-theme-installer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-
-@INTLTOOL_XML_RULE@
+$(desktop_DATA): $(desktop_in_files)
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
xml_in_files = \
mate-theme-package.xml.in
@@ -33,6 +31,9 @@ xml_in_files = \
mimedir = $(datadir)/mime/packages
mime_DATA = $(xml_in_files:.xml.in=.xml)
+$(mime_DATA): $(xml_in_files)
+ $(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+
install-data-hook:
if ENABLE_UPDATE_MIMEDB
$(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime"
diff --git a/capplets/appearance/data/mate-appearance-properties.desktop.in b/capplets/appearance/data/mate-appearance-properties.desktop.in
index b984155a..5dd10d5d 100644
--- a/capplets/appearance/data/mate-appearance-properties.desktop.in
+++ b/capplets/appearance/data/mate-appearance-properties.desktop.in
@@ -1,11 +1,13 @@
[Desktop Entry]
-_Name=Appearance
-_Comment=Customize the look of the desktop
+Name=Appearance
+Comment=Customize the look of the desktop
Exec=mate-appearance-properties %F
+# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Icon=preferences-desktop-theme
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Settings;DesktopSettings;
+# 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;appearance;properties;desktop;customize;look;
OnlyShowIn=MATE;
diff --git a/capplets/appearance/data/mate-theme-installer.desktop.in b/capplets/appearance/data/mate-theme-installer.desktop.in
index 0c9fc718..557b2fde 100644
--- a/capplets/appearance/data/mate-theme-installer.desktop.in
+++ b/capplets/appearance/data/mate-theme-installer.desktop.in
@@ -1,13 +1,15 @@
[Desktop Entry]
-_Name=Theme Installer
-_Comment=Installs themes packages for various parts of the desktop
+Name=Theme Installer
+Comment=Installs themes packages for various parts of the desktop
Exec=mate-appearance-properties -i %u
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=preferences-desktop-theme
Terminal=false
Type=Application
MimeType=application/x-mate-theme-package;
StartupNotify=true
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;MATE;install;desktop;themes;
NoDisplay=true
OnlyShowIn=MATE;