diff options
author | Wu Xiaotian <[email protected]> | 2019-10-16 16:50:40 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-11-07 13:20:17 +0100 |
commit | 235e8ed2e122140a8476ba91b365ec92a5103530 (patch) | |
tree | c072b4e510df11c859cbd69953b15cd886e27697 /capplets/display | |
parent | 0470814242979fdf1fe3d78b8e203edf87156bdd (diff) | |
download | mate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.bz2 mate-control-center-235e8ed2e122140a8476ba91b365ec92a5103530.tar.xz |
migrate from intltool to gettext
Diffstat (limited to 'capplets/display')
-rw-r--r-- | capplets/display/Makefile.am | 10 | ||||
-rw-r--r-- | capplets/display/mate-display-properties.desktop.in | 6 | ||||
-rw-r--r-- | capplets/display/org.mate.randr.policy.in | 4 |
3 files changed, 11 insertions, 9 deletions
diff --git a/capplets/display/Makefile.am b/capplets/display/Makefile.am index 058e206d..c5e92882 100644 --- a/capplets/display/Makefile.am +++ b/capplets/display/Makefile.am @@ -37,16 +37,16 @@ polkit_policydir = $(datadir)/polkit-1/actions dist_polkit_policy_DATA = \ org.mate.randr.policy -# You will need a recent intltool or the patch from this bug -# http://bugzilla.gnome.org/show_bug.cgi?id=462312 -@INTLTOOL_POLICY_RULE@ - -@INTLTOOL_DESKTOP_RULE@ +%.policy: %.policy.in + $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ desktopdir = $(datadir)/applications Desktop_in_files = mate-display-properties.desktop.in desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop) +$(desktop_DATA): $(Desktop_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ + AM_CPPFLAGS = $(DISPLAY_CAPPLET_CFLAGS) \ $(MATECC_CAPPLETS_CFLAGS) \ -DSBINDIR="\"$(sbindir)\"" \ diff --git a/capplets/display/mate-display-properties.desktop.in b/capplets/display/mate-display-properties.desktop.in index 59de1d13..8e99251b 100644 --- a/capplets/display/mate-display-properties.desktop.in +++ b/capplets/display/mate-display-properties.desktop.in @@ -1,11 +1,13 @@ [Desktop Entry] -_Name=Displays -_Comment=Change resolution and position of monitors and projectors +Name=Displays +Comment=Change resolution and position of monitors and projectors Exec=mate-display-properties +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! Icon=preferences-desktop-display 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;resolution;position;monitors;display;properties; OnlyShowIn=MATE; diff --git a/capplets/display/org.mate.randr.policy.in b/capplets/display/org.mate.randr.policy.in index 0024d822..880449bb 100644 --- a/capplets/display/org.mate.randr.policy.in +++ b/capplets/display/org.mate.randr.policy.in @@ -14,8 +14,8 @@ <icon_name>mate-display-properties</icon_name> <action id="org.mate.randr.install-system-wide"> - <_description>Install multi-monitor settings for the whole system</_description> - <_message>Authentication is required to install multi-monitor settings for all users</_message> + <description>Install multi-monitor settings for the whole system</description> + <message>Authentication is required to install multi-monitor settings for all users</message> <icon_name>mate-display-properties</icon_name> <defaults> <allow_any>no</allow_any> |