-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove hardwired link for ICA data in internationalised about page #125
Comments
This has been implemented, and is currently running on the dev-1 deployment of owned-by-oxford. I've solved it by:
So now a single about.html file can provide localised content, by putting the different languages inside
This text is left in whatever the language
If the about.html file is not provided, then there is no text at the top, just the links (with localised text) I've also added more validation so that only a those language codes listed in the config.json file attribute |
Nice. How can I test this? @wu-lee |
Well, I can upload some multi-language about text on ObO, and enable more than one language in the config? I've set it to this:
And enabled languages
|
Very nice. |
I noticed that the "about" page is now generated programmatically inside sea-map using internationalised labels, so that the about.html is redundant, but also, this code hardwires a link to the ICA source data, so something needs to be done about that (currently this info isn't easily accessible in the browser-side)
We should also think about what to do with the old
about.html
config. Should we keep it as is, improve it somehow, or remove it? (If we keep it we need to support internationalisation.)Originally posted by @wu-lee in DigitalCommons/mutual-aid-project#2 (comment)
The text was updated successfully, but these errors were encountered: