Override translations for “Create Request”
It is possible to override some translations on the Tenant Site. The below example describes how to replace the standard “CREATE REQUEST” text with your own custom text.
NOTE: Using the following override technology will make the method described in the Operations Guide to rename “Resource” obsolete. If you still want to rename “Resources” this can be done using the method described here.
To override “CREATE REQUEST” with a custom translation, perform the following steps:
- Login to the server(s) running the Windows Azure Pack Tenant Site
- Open a PowerShell prompt as Administrator
- Run the following command: Unprotect-MgmtSvcConfiguration -Namespace TenantSite
- Open the IIS Manager
- Navigate to MgmtSvc-TenantSite
- Open Application Settings
- Click the Add command in the right-hand panel
- Enter the following values:
- Name: RequestManagement.TranslationOverrides
- Value: {'LangOverride': [{'Id': 'MenuItemCreateRequestDisplayName','Translations': [{'Code': 'en-US','DisplayName': 'Create Super Request'}]}]}
- Open a PowerShell prompt as Administrator
- Run the following command: Protect-MgmtSvcConfiguration -Namespace TenantSite
- Refresh browser
Below is an example of overriding multiple translations in a couple of languages. The example overrides the tab name “Resources” (only visible when using Resource Management) and the “CREATE REQUEST” text seen in the previous example.
{ 'LangOverride':[ { 'Id':'MenuItemCreateRequestDisplayName', 'Translations':[ { 'Code':'en-US', 'DisplayName':'Create Super Request' }, { 'Code':'de-DE', 'DisplayName':'German Translation' } ] }, { 'Id':'ApplicationName', 'Translations':[ { 'Code':'en-US', 'DisplayName':'Stuff' }, { 'Code':'de-DE', 'DisplayName':'German Translation' } ] } ] } |
After compiling the overrides in json format, run it through tool or manually remove all line breaks and whitespaces before adding it to the Tenant Site application settings.
{'LangOverride':[{'Id':'MenuItemCreateRequestDisplayName','Translations':[{'Code':'en-US','DisplayName':'Create Super Request'},{'Code':'de-DE','DisplayName':'German Translation'}]},{'Id':'ApplicationName','Translations':[{'Code':'en-US','DisplayName':'Stuff'},{'Code':'de-DE','DisplayName':'German Translation'}]}]}
Comments
0 comments
Please sign in to leave a comment.