diff --git a/dashboard-ui/librarypathmapping.html b/dashboard-ui/librarypathmapping.html index acdce7df77..77b953c7ca 100644 --- a/dashboard-ui/librarypathmapping.html +++ b/dashboard-ui/librarypathmapping.html @@ -38,7 +38,7 @@
-
${LabelFromHelp}
+

diff --git a/dashboard-ui/scripts/librarypathmapping.js b/dashboard-ui/scripts/librarypathmapping.js index 0daab1fe75..127c4a2920 100644 --- a/dashboard-ui/scripts/librarypathmapping.js +++ b/dashboard-ui/scripts/librarypathmapping.js @@ -115,8 +115,12 @@ $(document).on('pageinit', "#libraryPathMappingPage", function () { + var page = this; + $('.libraryPathMappingForm').off('submit', onSubmit).on('submit', onSubmit); + page.querySelector('.labelFromHelp').innerHTML = Globalize.translate('LabelFromHelp', 'D:\\Movies'); + }).on('pageshow', "#libraryPathMappingPage", function () { Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/strings/html/server.json b/dashboard-ui/strings/html/server.json index e6c1211400..42fdfe5760 100644 --- a/dashboard-ui/strings/html/server.json +++ b/dashboard-ui/strings/html/server.json @@ -499,7 +499,6 @@ "HeaderFrom": "From", "HeaderTo": "To", "LabelFrom": "From:", - "LabelFromHelp": "Example: D:\\Movies (on the server)", "LabelTo": "To:", "LabelToHelp": "Example: \\\\MyServer\\Movies (a path clients can access)", "ButtonAddPathSubstitution": "Add Substitution", diff --git a/dashboard-ui/strings/javascript/javascript.json b/dashboard-ui/strings/javascript/javascript.json index 0c1712a3a4..7ac9a44238 100644 --- a/dashboard-ui/strings/javascript/javascript.json +++ b/dashboard-ui/strings/javascript/javascript.json @@ -48,6 +48,7 @@ "ButtonIdentify": "Identify", "HeaderIdentifyItem": "Identify Item", "LabelRecurringDonationCanBeCancelledHelp": "Recurring donations can be cancelled at any time from within your PayPal account.", + "LabelFromHelp": "Example: {0} (on the server)", "HeaderMyMedia": "My Media", "ButtonRemoveFromCollection": "Remove from Collection", "LabelAutomaticUpdateLevel": "Automatic update level:",