SOS
SOS copied to clipboard
Settings exports pre-multilingual settings can't be restored to versions with multilingual support
Settings JSON exports from versions without multilingual support can't be restored to versions with multilingual support. The settings file must be manually edited, converting serviceIdentification.abstract and serviceIdentification.title into multilingual objects:
...
"serviceIdentification.abstract": "Some SOS installation",
...
"serviceIdentification.title": "My SOS",
...
to
...
"serviceIdentification.abstract": {
"eng": "Some SOS installation"
},
...
"serviceIdentification.title": {
"eng": "My SOS"
},
...
If multilingual setting parsing fails, the settings loader should try a normal string setting parse and convert it to a multilingual setting if successful.
If anyone using *nix needs to quickly update old settings JSON exports as noted above:
cp settings.json settings.json.bak
sed -i 's/\("serviceIdentification\.\(title\|abstract\)": \)\(".*"\)/\1{ "eng": \3 }/' settings.json