From f5354df76377627dde56b079c9328b46865033d2 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 30 Oct 2019 20:33:54 +0800 Subject: migrate from intltool to gettext --- applets/clock/Makefile.am | 12 ++--- ...nel.ClockApplet.mate-panel-applet.desktop.in.in | 20 ++++++++ ....mate.panel.ClockApplet.mate-panel-applet.in.in | 19 ------- applets/fish/Makefile.am | 12 ++--- ...anel.FishApplet.mate-panel-applet.desktop.in.in | 19 +++++++ ...g.mate.panel.FishApplet.mate-panel-applet.in.in | 18 ------- applets/notification_area/Makefile.am | 14 +++--- ...ationAreaApplet.mate-panel-applet.desktop.in.in | 19 +++++++ ....NotificationAreaApplet.mate-panel-applet.in.in | 18 ------- applets/wncklet/Makefile.am | 12 ++--- ...e.panel.Wncklet.mate-panel-applet.desktop.in.in | 58 ++++++++++++++++++++++ .../org.mate.panel.Wncklet.mate-panel-applet.in.in | 54 -------------------- 12 files changed, 141 insertions(+), 134 deletions(-) create mode 100644 applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.desktop.in.in delete mode 100644 applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.in.in create mode 100644 applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in delete mode 100644 applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in create mode 100644 applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in.in delete mode 100644 applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.in.in create mode 100644 applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.desktop.in.in delete mode 100644 applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.in.in (limited to 'applets') diff --git a/applets/clock/Makefile.am b/applets/clock/Makefile.am index 3b390974..fb06adb1 100644 --- a/applets/clock/Makefile.am +++ b/applets/clock/Makefile.am @@ -125,8 +125,8 @@ BUILT_SOURCES = \ clock-typebuiltins.h appletdir = $(datadir)/mate-panel/applets -applet_in_files = org.mate.panel.ClockApplet.mate-panel-applet.in -applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) +applet_in_files = org.mate.panel.ClockApplet.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 \ @@ -135,7 +135,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 !CLOCK_INPROCESS servicedir = $(datadir)/dbus-1/services @@ -161,11 +162,10 @@ clock-resources.h: clock.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourc clock_gschemas_in = org.mate.panel.applet.clock.gschema.xml.in gsettings_SCHEMAS = $(clock_gschemas_in:.xml.in=.xml) -@INTLTOOL_XML_NOMERGE_RULE@ @GSETTINGS_RULES@ EXTRA_DIST = \ - org.mate.panel.ClockApplet.mate-panel-applet.in.in \ + org.mate.panel.ClockApplet.mate-panel-applet.desktop.in.in \ $(clock_gschemas_in) \ $(ui_FILES) \ clock.gresource.xml \ @@ -175,7 +175,7 @@ EXTRA_DIST = \ CLEANFILES = \ $(BUILT_SOURCES) \ $(applet_DATA) \ - $(applet_DATA).in \ + $(applet_in_files) \ $(service_DATA) \ $(polkit_DATA) \ $(dbus_services_DATA) \ diff --git a/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.desktop.in.in b/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..cc8a191f --- /dev/null +++ b/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,20 @@ +[Applet Factory] +Id=ClockAppletFactory +InProcess=@IN_PROCESS@ +Location=@LOCATION@ +Name=Clock Applet Factory +Description=Factory for clock applet + +[ClockApplet] +Name=Clock +Description=Get the current time and date +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-clock +MateComponentId=OAFIID:MATE_ClockApplet; +Platforms=X11;Wayland; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=clock +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=clock-applet + diff --git a/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.in.in b/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.in.in deleted file mode 100644 index 5eaf19d1..00000000 --- a/applets/clock/org.mate.panel.ClockApplet.mate-panel-applet.in.in +++ /dev/null @@ -1,19 +0,0 @@ -[Applet Factory] -Id=ClockAppletFactory -InProcess=@IN_PROCESS@ -Location=@LOCATION@ -_Name=Clock Applet Factory -_Description=Factory for clock applet - -[ClockApplet] -_Name=Clock -_Description=Get the current time and date -Icon=mate-panel-clock -MateComponentId=OAFIID:MATE_ClockApplet; -Platforms=X11;Wayland; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=clock -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=clock-applet - 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.desktop.in.in b/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..1df3717e --- /dev/null +++ b/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,19 @@ +[Applet Factory] +Id=FishAppletFactory +InProcess=@IN_PROCESS@ +Location=@LOCATION@ +Name=Wanda Factory +Description=From Whence That Stupid Fish Came + +[FishApplet] +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; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=fish +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=fish-applet-2 diff --git a/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in b/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in deleted file mode 100644 index 92b07c69..00000000 --- a/applets/fish/org.mate.panel.FishApplet.mate-panel-applet.in.in +++ /dev/null @@ -1,18 +0,0 @@ -[Applet Factory] -Id=FishAppletFactory -InProcess=@IN_PROCESS@ -Location=@LOCATION@ -_Name=Wanda Factory -_Description=From Whence That Stupid Fish Came - -[FishApplet] -_Name=Fish -_Description=Display a swimming fish or another animated creature -Icon=mate-panel-fish -MateComponentId=OAFIID:MATE_FishApplet; -Platforms=X11;Wayland; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=fish -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=fish-applet-2 diff --git a/applets/notification_area/Makefile.am b/applets/notification_area/Makefile.am index 57ee0a3b..f7b68110 100644 --- a/applets/notification_area/Makefile.am +++ b/applets/notification_area/Makefile.am @@ -70,8 +70,11 @@ notification_area_applet_CFLAGS = $(AM_CFLAGS) endif appletdir = $(datadir)/mate-panel/applets -applet_in_files = org.mate.panel.NotificationAreaApplet.mate-panel-applet.in -applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) +applet_in_files = org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) + +$(applet_DATA): $(applet_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --keyword Name --keyword Description --template $< -d $(top_srcdir)/po -o $@ $(applet_in_files): $(applet_in_files).in Makefile $(AM_V_GEN)sed \ @@ -80,8 +83,6 @@ $(applet_in_files): $(applet_in_files).in Makefile -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ $< > $@ -@PANEL_INTLTOOL_MATE_PANEL_APPLET_RULE@ - if !NOTIFICATION_AREA_INPROCESS servicedir = $(datadir)/dbus-1/services service_in_files = org.mate.panel.applet.NotificationAreaAppletFactory.service.in @@ -110,11 +111,10 @@ BUILT_SOURCES = \ na-resources.c \ na-resources.h -@INTLTOOL_XML_NOMERGE_RULE@ @GSETTINGS_RULES@ EXTRA_DIST = \ - org.mate.panel.NotificationAreaApplet.mate-panel-applet.in.in \ + org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in.in \ $(notification_area_gschemas_in) \ $(ui_FILES) \ na.gresource.xml \ @@ -122,7 +122,7 @@ EXTRA_DIST = \ CLEANFILES = \ $(applet_DATA) \ - $(applet_DATA).in \ + $(applet_in_files) \ $(service_DATA) \ $(gsettings_SCHEMAS) diff --git a/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in.in b/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..f7652db6 --- /dev/null +++ b/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,19 @@ +[Applet Factory] +Id=NotificationAreaAppletFactory +InProcess=@IN_PROCESS@ +Location=@LOCATION@ +Name=Notification Area Factory +Description=Factory for notification area + +[NotificationArea] +Name=Notification Area +Description=Area where notification icons appear +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-notification-area +MateComponentId=OAFIID:MATE_NotificationAreaApplet;OAFIID:MATE_SystemTrayApplet; +Platforms=X11; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=notification area +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=notification-area-applet diff --git a/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.in.in b/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.in.in deleted file mode 100644 index 9246ac9c..00000000 --- a/applets/notification_area/org.mate.panel.NotificationAreaApplet.mate-panel-applet.in.in +++ /dev/null @@ -1,18 +0,0 @@ -[Applet Factory] -Id=NotificationAreaAppletFactory -InProcess=@IN_PROCESS@ -Location=@LOCATION@ -_Name=Notification Area Factory -_Description=Factory for notification area - -[NotificationArea] -_Name=Notification Area -_Description=Area where notification icons appear -Icon=mate-panel-notification-area -MateComponentId=OAFIID:MATE_NotificationAreaApplet;OAFIID:MATE_SystemTrayApplet; -Platforms=X11; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=notification area -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=notification-area-applet diff --git a/applets/wncklet/Makefile.am b/applets/wncklet/Makefile.am index dc23143f..d9dc7f51 100644 --- a/applets/wncklet/Makefile.am +++ b/applets/wncklet/Makefile.am @@ -49,8 +49,8 @@ wnck_applet_CFLAGS = $(AM_CFLAGS) endif appletdir = $(datadir)/mate-panel/applets -applet_in_files = org.mate.panel.Wncklet.mate-panel-applet.in -applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) +applet_in_files = org.mate.panel.Wncklet.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 \ @@ -59,7 +59,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 !WNCKLET_INPROCESS servicedir = $(datadir)/dbus-1/services @@ -102,16 +103,15 @@ wncklet_gschemas_in = \ endif gsettings_SCHEMAS = $(wncklet_gschemas_in:.xml.in=.xml) -@INTLTOOL_XML_NOMERGE_RULE@ @GSETTINGS_RULES@ EXTRA_DIST = \ - org.mate.panel.Wncklet.mate-panel-applet.in.in \ + org.mate.panel.Wncklet.mate-panel-applet.desktop.in.in \ $(service_in_files) \ $(wncklet_gschemas_in) \ $(ui_FILES) \ wncklet.gresource.xml -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/wncklet/org.mate.panel.Wncklet.mate-panel-applet.desktop.in.in b/applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..490edcc1 --- /dev/null +++ b/applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.desktop.in.in @@ -0,0 +1,58 @@ +[Applet Factory] +Id=WnckletFactory +InProcess=@IN_PROCESS@ +Location=@LOCATION@ +Name=Window Navigation Applet Factory +Description=Factory for the window navigation related applets + +[WindowMenuApplet] +Name=Window Selector +Description=Switch between open windows using a menu +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-window-menu +MateComponentId=OAFIID:MATE_WindowMenuApplet; +Platforms=X11; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=window selector +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=wnck-applet + +[WorkspaceSwitcherApplet] +Name=Workspace Switcher +Description=Switch between workspaces +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-workspace-switcher +MateComponentId=OAFIID:MATE_WorkspaceSwitcherApplet;OAFIID:MATE_PagerApplet; +Platforms=X11; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=workspace switcher +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=wnck-applet + +[WindowListApplet] +Name=Window List +Description=Switch between open windows using buttons +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-window-list +MateComponentId=OAFIID:MATE_TasklistApplet;OAFIID:MATE_WindowListApplet; +Platforms=X11; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=window list +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=wnck-applet + +[ShowDesktopApplet] +Name=Show Desktop +Description=Hide application windows and show the desktop +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=user-desktop +MateComponentId=OAFIID:MATE_ShowDesktopApplet; +Platforms=X11; +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-panel +X-MATE-Bugzilla-Component=Show Desktop Button +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=wnck-applet diff --git a/applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.in.in b/applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.in.in deleted file mode 100644 index b2ff20e7..00000000 --- a/applets/wncklet/org.mate.panel.Wncklet.mate-panel-applet.in.in +++ /dev/null @@ -1,54 +0,0 @@ -[Applet Factory] -Id=WnckletFactory -InProcess=@IN_PROCESS@ -Location=@LOCATION@ -_Name=Window Navigation Applet Factory -_Description=Factory for the window navigation related applets - -[WindowMenuApplet] -_Name=Window Selector -_Description=Switch between open windows using a menu -Icon=mate-panel-window-menu -MateComponentId=OAFIID:MATE_WindowMenuApplet; -Platforms=X11; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=window selector -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=wnck-applet - -[WorkspaceSwitcherApplet] -_Name=Workspace Switcher -_Description=Switch between workspaces -Icon=mate-panel-workspace-switcher -MateComponentId=OAFIID:MATE_WorkspaceSwitcherApplet;OAFIID:MATE_PagerApplet; -Platforms=X11; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=workspace switcher -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=wnck-applet - -[WindowListApplet] -_Name=Window List -_Description=Switch between open windows using buttons -Icon=mate-panel-window-list -MateComponentId=OAFIID:MATE_TasklistApplet;OAFIID:MATE_WindowListApplet; -Platforms=X11; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=window list -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=wnck-applet - -[ShowDesktopApplet] -_Name=Show Desktop -_Description=Hide application windows and show the desktop -Icon=user-desktop -MateComponentId=OAFIID:MATE_ShowDesktopApplet; -Platforms=X11; -X-MATE-Bugzilla-Bugzilla=MATE -X-MATE-Bugzilla-Product=mate-panel -X-MATE-Bugzilla-Component=Show Desktop Button -X-MATE-Bugzilla-Version=@VERSION@ -X-MATE-Bugzilla-OtherBinaries=wnck-applet -- cgit v1.2.1