Skip to content

Commit

Permalink
lingo: extract backstage strings into lingo to make them translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
YakovL committed Aug 25, 2023
1 parent 3f55d45 commit 7f37311
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ExtensionsExplorerPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***
|Description|checks and reports updates of installed extensions on startup, introduces a macro/backstage button to explore, install and update extensions|
|Version |0.6.3|
|Version |0.6.4|
|Author |Yakov Litvin|
|Source |https://github.com/YakovL/TiddlyWiki_ExtensionsExplorerPlugin/blob/master/ExtensionsExplorerPlugin.js|
|License |[[MIT|https://github.com/YakovL/TiddlyWiki_YL_ExtensionsCollection/blob/master/Common%20License%20(MIT)]]|
Expand Down Expand Up @@ -47,6 +47,8 @@ const centralSourcesListName = "AvailableExtensions"

config.macros.extensionsExplorer = {
lingo: {
backstageButtonLabel: "explore extensions",
backstageButtonTooltip: "See if there are any updates or install new ones",
installButtonLabel: "install",
installButtonPrompt: "get and install this extension",
otherActionsPrompt: "show other actions",
Expand Down Expand Up @@ -325,8 +327,8 @@ config.macros.extensionsExplorer = {
const taskName = "explorePlugins"
config.backstageTasks.push(taskName)
config.tasks[taskName] = {
text: "explore extensions",
tooltip: "see if there's any updates or install new ones",
text: this.lingo.backstageButtonLabel,
tooltip: this.lingo.backstageButtonTooltip,
content: '<<extensionsExplorer>>',
}
},
Expand Down

0 comments on commit 7f37311

Please sign in to comment.