opendisclosure
opendisclosure copied to clipboard
Extract hardcoded strings into i18n library
We have lots of info hard-coded in our app. Let's 1. make a list of them and 2. spec where to move the data and how to name/describe the variables so C. volunteers can sign up to unhardcode some without promising to unhardcode the entire app.
@mikeubell @tdooner Is there a particular way to approach this that works best?
Uh, most strings are in the views, so here as well as here. As for un-hardcoding them, I haven't put too much thought into it, however the common Ruby pattern is to use some internationalization library to extract them into a configuration file. This would give us better mojo to translate the strings into other languages and also make it easier for other places to customize the copy.