opendisclosure icon indicating copy to clipboard operation
opendisclosure copied to clipboard

Extract hardcoded strings into i18n library

Open evanwolf opened this issue 10 years ago • 2 comments

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.

evanwolf avatar Jan 29 '15 23:01 evanwolf

@mikeubell @tdooner Is there a particular way to approach this that works best?

evanwolf avatar Feb 07 '15 23:02 evanwolf

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.

tdooner avatar Feb 08 '15 01:02 tdooner