[eog] plugins: Revert renaming of .plugin files



commit 6e00b0c2aba3247279cfef3a42ff03ba1e931542
Author: Felix Riemann <friemann gnome org>
Date:   Thu Dec 30 00:00:56 2021 +0100

    plugins: Revert renaming of .plugin files
    
    A part of e1e6a83a was renaming the .plugin.desktop.in files to just
    .plugin.in. While merging translations works, extracting the translatable
    strings does not as gettext doesn't recognize the ".plugin" extension.

 .../{fullscreen.plugin.in => fullscreen.plugin.desktop.in}         | 0
 plugins/meson.build                                                | 7 +++++--
 plugins/reload/{reload.plugin.in => reload.plugin.desktop.in}      | 0
 .../{statusbar-date.plugin.in => statusbar-date.plugin.desktop.in} | 0
 4 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/fullscreen/fullscreen.plugin.in b/plugins/fullscreen/fullscreen.plugin.desktop.in
similarity index 100%
rename from plugins/fullscreen/fullscreen.plugin.in
rename to plugins/fullscreen/fullscreen.plugin.desktop.in
diff --git a/plugins/meson.build b/plugins/meson.build
index fea407a5..83f77aa4 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -17,11 +17,14 @@ foreach plugin: plugins
     install_dir: eog_pluginsdir,
   )
 
+
   # FIXME: Remove `args` parameter when gettext acquires plugin support.
   #        http://lists.gnu.org/archive/html/bug-gettext/2017-06/msg00001.html
+  # NOTE:  We need to keep the .desktop suffix on the source file to be able
+  #        to extract translatable strings. .plugin is not recognized.
   i18n.merge_file(
-    input: f'@plugin@/@plugin  plugin in',
-    output: '@BASENAME@',
+    input: f'@plugin@/@plugin  plugin desktop in',
+    output: f'@plugin@.plugin',
     po_dir: po_dir,
     type: 'desktop',
     args: ['--keyword=Name', '--keyword=Description'],
diff --git a/plugins/reload/reload.plugin.in b/plugins/reload/reload.plugin.desktop.in
similarity index 100%
rename from plugins/reload/reload.plugin.in
rename to plugins/reload/reload.plugin.desktop.in
diff --git a/plugins/statusbar-date/statusbar-date.plugin.in 
b/plugins/statusbar-date/statusbar-date.plugin.desktop.in
similarity index 100%
rename from plugins/statusbar-date/statusbar-date.plugin.in
rename to plugins/statusbar-date/statusbar-date.plugin.desktop.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]