Follow

Override Tenant Site Translations (KB1205)

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:

  1. Login to the server(s) running the Windows Azure Pack Tenant Site
  2. Open a PowerShell prompt as Administrator
  3. Run the following command: Unprotect-MgmtSvcConfiguration -Namespace TenantSite
  4. Open the IIS Manager
  5. Navigate to MgmtSvc-TenantSite
  6. Open Application Settings
  7. Click the Add command in the right-hand panel
  8. Enter the following values:
    • Name: RequestManagement.TranslationOverrides
    • Value: {'LangOverride': [{'Id': 'MenuItemCreateRequestDisplayName','Translations': [{'Code': 'en-US','DisplayName': 'Create Super Request'}]}]}
  9. Open a PowerShell prompt as Administrator
  10. Run the following command: Protect-MgmtSvcConfiguration -Namespace TenantSite
  11. Refresh browser

KB1205.png

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'}]}]}

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments