Localization export/import between development and production system
Best Answers
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭We do not have any pre-existing tools available to do so, but it is possible to export/import via SQL. The localization keys are all stored in the DisplayString table in the ServiceManagement database.
The individual commands are something like this...
To Select All Localization KeysSELECT LocalizationKey,DisplayStringOverrideFROM [DisplayString]WHERE (LocaleID='Locale') AND LocalizationKey IS NOT NULLORDER BY LocalizationKey
To Insert a New KeyINSERT INTO DisplayString (ElementID, LocaleID, DisplayString, LocalizationKey)VALUES ('GUID', 'Locale', 'Translation', 'LocalizationKey');
To Update an Existing KeyUPDATE DisplayStringSET DisplayStringOverride='Override'WHERE (LocaleID='Locale') AND LocalizationKey='LocalizationKey'
Direct ServiceManagement database table modification like this is not supported via typical channels, but does work just fine if done correctly. Remember that all GUIDs need to be unique, and all Locale/LocalizationKey pairs must be unique.
...and remember, before playing with these tables at all, please perform a database backup.
Thanks,
Nick5
Answers
The individual commands are something like this...
To Select All Localization Keys
To Insert a New Key
To Update an Existing Key
Direct ServiceManagement database table modification like this is not supported via typical channels, but does work just fine if done correctly. Remember that all GUIDs need to be unique, and all Locale/LocalizationKey pairs must be unique.
...and remember, before playing with these tables at all, please perform a database backup.
Thanks,
Nick