foodcoops / foodsoft

Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
https://foodcoops.net/
Other
326 stars 146 forks source link

cleanup i18n #137

Open wvengen opened 11 years ago

wvengen commented 11 years ago

Begin 2013, foodsoft has been internationalised (meaning that all texts have been replaced by identifiers, and the texts have been associated with these identifiers) and translated to English. simple_form has been used to i18n form labels, and sometimes direct t('simple_form.labels.foo.bar') was used. Now these sometimes contain duplicates, and it would be useful to normalise the data, and also to move the strings to ActiveRecord's model i18n when possible. Special cases can remain in simple_form's i18n.

See commit 98b729eb7189f87cf745e800d5f076f8131ba06a for an example. Also see #84 (in particular this comment)

wvengen commented 11 years ago

Often labels are referenced in the simple_form namespace; this better be changed to be ActiveRecord.

wvengen commented 11 years ago

started moving keys from the simple_form namespace to activerecord in branch i18n

JuliusR commented 11 years ago
wvengen commented 11 years ago

@JuliusR thanks! Responding to your points:

wvengen commented 11 years ago

I'd like to merge current changes back into master already to minimise keeping them synchronised. Please raise any objections. One thing to look at is heading_helper.