SOS icon indicating copy to clipboard operation
SOS copied to clipboard

Settings exports pre-multilingual settings can't be restored to versions with multilingual support

Open srstsavage opened this issue 10 years ago • 1 comments

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.

srstsavage avatar May 22 '15 21:05 srstsavage

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

srstsavage avatar May 22 '15 21:05 srstsavage