From 3bc6a589425a9be900a3e9c62e6af6d265b006d1 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 11:06:56 +0200 Subject: [PATCH 1/2] add english translations --- blueprints.yaml | 28 ++++++++++++++-------------- blueprints/feed.yaml | 6 +++--- languages.yaml | 11 +++++++++++ 3 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 languages.yaml diff --git a/blueprints.yaml b/blueprints.yaml index 665bef9..3d57c7f 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -21,18 +21,18 @@ form: fields: enabled: type: toggle - label: Plugin status + label: PLUGIN_FEED.ENABLED highlight: 1 default: 0 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool limit: type: range - label: Feed count + label: PLUGIN_FEED.LIMIT validate: type: number min: 10 @@ -40,15 +40,15 @@ form: title: type: text - label: Title + label: PLUGIN_FEED.TITLE description: type: textarea - label: Description + label: PLUGIN_FEED.DESCRIPTION length: type: range - label: Feed Length (0 for full-text feed) + label: PLUGIN_FEED.LENGTH validate: type: number min: 0 @@ -56,23 +56,23 @@ form: enable_json_feed: type: toggle - label: JSON feed support + label: PLUGIN_FEED.ENABLE_JSON_FEED highlight: 0 default: 0 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool show_last_modified: type: toggle - label: Show last modified date - help: If enabled, file modification date will be used for computing "last updated" times in feeds + label: PLUGIN_FEED.SHOW_LAST_MODIFIED.LABEL + help: PLUGIN_FEED.SHOW_LAST_MODIFIED.HELP highlight: 0 default: 0 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool diff --git a/blueprints/feed.yaml b/blueprints/feed.yaml index 1269f39..53e7161 100644 --- a/blueprints/feed.yaml +++ b/blueprints/feed.yaml @@ -8,15 +8,15 @@ form: fields: header.feed.limit: type: text - label: Feed count + label: PLUGIN_FEED.LIMIT default: 10 validate: type: int header.feed.title: type: text - label: Feed title + label: PLUGIN_FEED.TITLE header.feed.description: type: text - label: Feed description + label: PLUGIN_FEED.DESCRIPTION diff --git a/languages.yaml b/languages.yaml new file mode 100644 index 0000000..e9d5fee --- /dev/null +++ b/languages.yaml @@ -0,0 +1,11 @@ +en: + PLUGIN_FEED: + ENABLED: Plugin status + LIMIT: Feed count + TITLE: Feed title + DESCRIPTION: Feed description + LENGTH: Feed length (0 for full-text feed) + ENABLE_JSON_FEED: JSON feed support + SHOW_LAST_MODIFIED: + LABEL: Show last modified date + HELP: If enabled, file modification date will be used for computing "last updated" times in feeds From 0e6e6ec234d75e86995546809420f40761756ff5 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 11:08:59 +0200 Subject: [PATCH 2/2] add german translations --- languages.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/languages.yaml b/languages.yaml index e9d5fee..9025e6a 100644 --- a/languages.yaml +++ b/languages.yaml @@ -9,3 +9,15 @@ en: SHOW_LAST_MODIFIED: LABEL: Show last modified date HELP: If enabled, file modification date will be used for computing "last updated" times in feeds + +de: + PLUGIN_FEED: + ENABLED: Plugin Status + LIMIT: Feed Anzahl + TITLE: Feed Titel + DESCRIPTION: Feed Beschreibung + LENGTH: Feed Länge (0 für vollständigen Feed) + ENABLE_JSON_FEED: JSON Feed Unterstützung + SHOW_LAST_MODIFIED: + LABEL: Letzte Änderung anzeigen + HELP: Wenn aktiviert, wird das Dateiänderungsdatum für die Berechnung von "zuletzt aktualisiert" in Feeds verwendet