summaryrefslogtreecommitdiff
path: root/applets/fish
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-30 20:33:54 +0800
committerraveit65 <[email protected]>2019-11-11 23:18:35 +0100
commitf5354df76377627dde56b079c9328b46865033d2 (patch)
treee49277e64f87be43bbb3ea1008f3f56916f743e0 /applets/fish
parent1614cec077ab369640b24ff73045bf470ca93683 (diff)
downloadmate-panel-f5354df76377627dde56b079c9328b46865033d2.tar.bz2
mate-panel-f5354df76377627dde56b079c9328b46865033d2.tar.xz
migrate from intltool to gettext
Diffstat (limited to 'applets/fish')
-rw-r--r--applets/fish/Makefile.am12
-rw-r--r--applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in (renamed from applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in)9
2 files changed, 11 insertions, 10 deletions
diff --git a/applets/fish/Makefile.am b/applets/fish/Makefile.am
index d9a894f5..6b823e09 100644
--- a/applets/fish/Makefile.am
+++ b/applets/fish/Makefile.am
@@ -40,8 +40,8 @@ fish_applet_CFLAGS = $(AM_CFLAGS)
endif
appletdir = $(datadir)/mate-panel/applets
-applet_in_files = org.mate.panel.FishApplet.mate-panel-applet.in
-applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet)
+applet_in_files = org.mate.panel.FishApplet.mate-panel-applet.desktop.in
+applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
$(applet_in_files): $(applet_in_files).in Makefile
$(AM_V_GEN)sed \
@@ -50,7 +50,8 @@ $(applet_in_files): $(applet_in_files).in Makefile
-e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
$< > $@
-@PANEL_INTLTOOL_MATE_PANEL_APPLET_RULE@
+$(applet_DATA): $(applet_in_files)
+ $(AM_V_GEN) $(MSGFMT) --desktop --keyword Name --keyword Description --template $< -d $(top_srcdir)/po -o $@
if !FISH_INPROCESS
servicedir = $(datadir)/dbus-1/services
@@ -87,18 +88,17 @@ BUILT_SOURCES = \
fish_gschemas_in = org.mate.panel.applet.fish.gschema.xml.in
gsettings_SCHEMAS = $(fish_gschemas_in:.xml.in=.xml)
-@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
EXTRA_DIST = \
wanda.svg \
$(fishbitmaps_DATA) \
- org.mate.panel.FishApplet.mate-panel-applet.in.in \
+ org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in \
$(service_in_files) \
$(ui_FILES) \
fish.gresource.xml \
$(fish_gschemas_in)
-CLEANFILES = $(BUILT_SOURCES) $(applet_DATA) $(applet_DATA).in $(service_DATA) $(gsettings_SCHEMAS)
+CLEANFILES = $(BUILT_SOURCES) $(applet_DATA) $(applet_in_files) $(service_DATA) $(gsettings_SCHEMAS)
-include $(top_srcdir)/git.mk
diff --git a/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in b/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in
index 92b07c69..1df3717e 100644
--- a/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in
+++ b/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in
@@ -2,12 +2,13 @@
Id=FishAppletFactory
InProcess=@IN_PROCESS@
Location=@LOCATION@
-_Name=Wanda Factory
-_Description=From Whence That Stupid Fish Came
+Name=Wanda Factory
+Description=From Whence That Stupid Fish Came
[FishApplet]
-_Name=Fish
-_Description=Display a swimming fish or another animated creature
+Name=Fish
+Description=Display a swimming fish or another animated creature
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=mate-panel-fish
MateComponentId=OAFIID:MATE_FishApplet;
Platforms=X11;Wayland;