[geary/mjog/i18n-fixes-redux: 2/2] po/POTFILES.skip: Skip translating internal plugin descriptors
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/i18n-fixes-redux: 2/2] po/POTFILES.skip: Skip translating internal plugin descriptors
- Date: Wed, 19 Aug 2020 00:50:51 +0000 (UTC)
commit 72b79ece6013a1a0449db52c124d95d722d9450f
Author: Michael Gratton <mike vee net>
Date: Wed Aug 19 10:46:10 2020 +1000
po/POTFILES.skip: Skip translating internal plugin descriptors
These plugins are never presented in the UI, hence should not be
translated.
po/POTFILES.in | 4 ----
po/POTFILES.skip | 4 ++++
src/client/application/application-plugin-manager.vala | 4 +++-
.../desktop-notifications/desktop-notifications.plugin.desktop.in | 2 --
src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in | 2 --
.../plugin/notification-badge/notification-badge.plugin.desktop.in | 2 --
src/client/plugin/special-folders/special-folders.plugin.desktop.in | 2 --
7 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f80f8c15c..6c67a9963 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -109,11 +109,9 @@ src/client/plugin/plugin-info-bar.vala
src/client/plugin/plugin-notification-extension.vala
src/client/plugin/plugin-plugin-base.vala
src/client/plugin/plugin-trusted-extension.vala
-src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
src/client/plugin/desktop-notifications/desktop-notifications.vala
src/client/plugin/email-templates/email-templates.plugin.desktop.in
src/client/plugin/email-templates/email-templates.vala
-src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
src/client/plugin/folder-highlight/folder-highlight.vala
src/client/plugin/mail-merge/mail-merge-csv.vala
src/client/plugin/mail-merge/mail-merge-folder.vala
@@ -125,12 +123,10 @@ src/client/plugin/mail-merge/mail-merge.plugin.desktop.in
src/client/plugin/mail-merge/mail-merge.vala
src/client/plugin/messaging-menu/messaging-menu.plugin.desktop.in
src/client/plugin/messaging-menu/messaging-menu.vala
-src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
src/client/plugin/notification-badge/notification-badge.vala
src/client/plugin/notification-badge/unity-launcher-entry.vala
src/client/plugin/sent-sound/sent-sound.plugin.desktop.in
src/client/plugin/sent-sound/sent-sound.vala
-src/client/plugin/special-folders/special-folders.plugin.desktop.in
src/client/plugin/special-folders/special-folders.vala
src/client/sidebar/sidebar-branch.vala
src/client/sidebar/sidebar-common.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 06aae983f..218be69c9 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -2,4 +2,8 @@
# Please keep this file sorted alphabetically.
_build
build
+src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
+src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
+src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
+src/client/plugin/special-folders/special-folders.plugin.desktop.in
subprojects
diff --git a/src/client/application/application-plugin-manager.vala
b/src/client/application/application-plugin-manager.vala
index c53201656..976471921 100644
--- a/src/client/application/application-plugin-manager.vala
+++ b/src/client/application/application-plugin-manager.vala
@@ -12,7 +12,9 @@ public class Application.PluginManager : GLib.Object {
// Plugins that will be loaded automatically when the client
- // application stats up
+ // application stats up and hence hidden in the UI. Note that the
+ // .plugin files for these should be listed in po/POTFILES.skip,
+ // so translators don't need to bother with them.
private const string[] AUTOLOAD_MODULES = {
"desktop-notifications",
"folder-highlight",
diff --git a/src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
b/src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
index 4681890b6..161d03606 100644
--- a/src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
+++ b/src/client/plugin/desktop-notifications/desktop-notifications.plugin.desktop.in
@@ -1,5 +1,3 @@
[Plugin]
Module=desktop-notifications
-# Translators: This is an internal plugin so this name does not need
-# to be tanslated
Name=Desktop Notifications
diff --git a/src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
b/src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
index 5cd8bb375..60cbec13f 100644
--- a/src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
+++ b/src/client/plugin/folder-highlight/folder-highlight.plugin.desktop.in
@@ -1,5 +1,3 @@
[Plugin]
Module=folder-highlight
-# Translators: This is an internal plugin so this name does not need
-# to be tanslated
Name=Folder Highlight
diff --git a/src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
b/src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
index c3b6e89da..6678af9c1 100644
--- a/src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
+++ b/src/client/plugin/notification-badge/notification-badge.plugin.desktop.in
@@ -1,5 +1,3 @@
[Plugin]
Module=notification-badge
-# Translators: This is an internal plugin so this name does not need
-# to be tanslated.
Name=Notification Badge
diff --git a/src/client/plugin/special-folders/special-folders.plugin.desktop.in
b/src/client/plugin/special-folders/special-folders.plugin.desktop.in
index 901dc045a..4e5e4ff44 100644
--- a/src/client/plugin/special-folders/special-folders.plugin.desktop.in
+++ b/src/client/plugin/special-folders/special-folders.plugin.desktop.in
@@ -1,5 +1,3 @@
[Plugin]
Module=special-folders
-# Translators: This is an internal plugin so this name does not need
-# to be tanslated.
Name=Special Folders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]