New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shane-axiom opened this Issue May 22, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@shane-axiom
Copy link
Member

shane-axiom commented May 22, 2015

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.

@shane-axiom

This comment has been minimized.

Copy link
Member Author

shane-axiom commented May 22, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment