Skip to content

Commit

Permalink
Localize provider command text
Browse files Browse the repository at this point in the history
  • Loading branch information
tyaginidhi committed Oct 3, 2023
1 parent a51fa24 commit 70b71b8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 2 additions & 0 deletions l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"Edit the site": "Edit the site",
"Be careful making changes. Anyone can see the changes you make immediately. Choose Edit the site to make edits, or close the editor tab to cancel without editing.": "Be careful making changes. Anyone can see the changes you make immediately. Choose Edit the site to make edits, or close the editor tab to cancel without editing.",
"You are editing a live, public site ": "You are editing a live, public site ",
"Preview site": "Preview site",
"Open in Power Pages": "Open in Power Pages",
"Opening preview site...": "Opening preview site...",
"Microsoft wants your feeback": "Microsoft wants your feeback",
"Check the URL and verify the parameters are correct": "Check the URL and verify the parameters are correct",
Expand Down
12 changes: 6 additions & 6 deletions loc/translations-export/vscode-powerplatform.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<trans-unit id="++CODE++bda6bda1e902d120a7f4515ceac8546c3112e3cb9351df1d8b9713b8f86e0370">
<source xml:lang="en">One or more attribute names have been changed or removed. Contact your admin.</source>
</trans-unit>
<trans-unit id="++CODE++9c1a3ec7947746271d8596f2a428139e20ff14d48e87d4631a3fc17004c170f9">
<source xml:lang="en">Open in Power Pages</source>
</trans-unit>
<trans-unit id="++CODE++dac0ee62a5197a3722a9e7e9e851e80504cced8a13ce8b17842d78e8313578c2">
<source xml:lang="en">Opening preview site...</source>
</trans-unit>
Expand Down Expand Up @@ -211,6 +214,9 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<source xml:lang="en">Preparing pac CLI (v{0})...</source>
<note>{0} represents the version number</note>
</trans-unit>
<trans-unit id="++CODE++f6412ced721a26ac3e3cb55d3ff713d8403c3dfc2efa0cff07b48478bdd57555">
<source xml:lang="en">Preview site</source>
</trans-unit>
<trans-unit id="++CODE++7a6098eb5ff2c2401890216bb502ce6583ff7bddc99e62f8751551eab45ae1b4">
<source xml:lang="en">Profile Kind: {0}</source>
<note>The {0} represents the profile type (Admin vs Dataverse)</note>
Expand Down Expand Up @@ -298,9 +304,6 @@ To learn more, visit [Prevent accidental overwrites](command:powerplatform-walkt
<note>This is a Markdown formatted string, and the formatting must persist across translations.
The fifth line should be '[TRANSLATION HERE](command:powerplatform-walkthrough.saveConflict-learn-more).', keeping brackets and the text in the parentheses unmodified</note>
</trans-unit>
<trans-unit id="microsoft-powerplatform-portals.navigation-loop.backToStudio.title">
<source xml:lang="en">Back to Studio</source>
</trans-unit>
<trans-unit id="pacCLI.authPanel.clearAuthProfile.title">
<source xml:lang="en">Clear Auth Profiles</source>
</trans-unit>
Expand Down Expand Up @@ -416,9 +419,6 @@ The second line should be '[TRANSLATION HERE](command:powerplatform-walkthrough.
<trans-unit id="microsoft-powerapps-portals.preview-show.title">
<source xml:lang="en">PowerApps Portal -&gt; Show preview</source>
</trans-unit>
<trans-unit id="microsoft-powerplatform-portals.navigation-loop.previewSite.title">
<source xml:lang="en">Preview Power Pages site</source>
</trans-unit>
<trans-unit id="pacCLI.envAndSolutionsPanel.refresh.title">
<source xml:lang="en">Refresh</source>
</trans-unit>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@
"commands": [
{
"command": "powerpages.powerPagesFileExplorer.powerPagesRuntimePreview",
"title": "%microsoft-powerplatform-portals.navigation-loop.previewSite.title%",
"title": "Preview site",
"when": "never"
},
{
"command": "powerpages.powerPagesFileExplorer.backToStudio",
"title": "%microsoft-powerplatform-portals.navigation-loop.backToStudio.title%",
"title": "Open in Power Pages",
"when": "never"
},
{
Expand Down
2 changes: 0 additions & 2 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,5 @@
"The fifth line should be '[TRANSLATION HERE](command:powerplatform-walkthrough.saveConflict-learn-more).', keeping brackets and the text in the parentheses unmodified"
]
},
"microsoft-powerplatform-portals.navigation-loop.backToStudio.title": "Back to Studio",
"microsoft-powerplatform-portals.navigation-loop.previewSite.title": "Preview Power Pages site",
"microsoft-powerplatform-portals.navigation-loop.powerPagesFileExplorer.title": "POWER PAGES ACTIONS"
}
8 changes: 4 additions & 4 deletions src/web/client/webViews/powerPagesNavigationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ export class PowerPagesNavigationProvider implements vscode.TreeDataProvider<Pow

getNodes(label?: string): PowerPagesNode[] {
const nodes: PowerPagesNode[] = [];
const previewPowerPage = new PowerPagesNode('Preview site',
const previewPowerPage = new PowerPagesNode(vscode.l10n.t("Preview site"),
{
command: 'powerpages.powerPagesFileExplorer.powerPagesRuntimePreview',
title: '',
title: vscode.l10n.t("Preview site"),
arguments: []
},
'powerPages.svg');
const backToStudio = new PowerPagesNode('Open in Power Pages',
const backToStudio = new PowerPagesNode(vscode.l10n.t("Open in Power Pages"),
{
command: 'powerpages.powerPagesFileExplorer.backToStudio',
title: '',
title: vscode.l10n.t("Open in Power Pages"),
arguments: []
},
'backToStudio.svg');
Expand Down

0 comments on commit 70b71b8

Please sign in to comment.