Scholars' Lab Blog //teaching prism how to speak spanish and french
Blog //teaching prism how to speak spanish and french

Well, it looks like me and Annie will go on different development branches for a few weeks. I have been assigned the noble task of teaching Prism how to speak Spanish and French. The goal is to give the tool the largest possible reach on day one. Internationalization has always been one of my hot-button issues for a while, given that I hail from and engage with the global south, where the digital divide and the digital humanities divide is more visible.

So far the tool I’m working with is the I18n gem which comes bundled with rails. The tool will make it easy for us to translate the interface. I18n so far seems very straightforward. I am creating YAML documents for each language. The YAML documents assign keys or placeholder names (kind of like variables) to all the strings that need to be translated in the views. Instead of writing strings directly in the views, we will write the placeholders. Depending on the locale that is selected, the placeholders will fetch the appropriate strings from the YAML files. Pretty simple! [crosses fingers nervously]. Besides the ability to abstract strings from their context, I18n also takes care of date and currency formats. Not that we will need the latter, though it’s nice to know we could make it all about the pesos if we wanted to.

Adding sample texts in French and Spanish remains a decision for the future, given our time constraints. I’m working as fast as I can to develop the i18n functionality, so that we do have time, but there is no guarantee. Stay tuned!

Cite this post: Alex Gil. “teaching prism how to speak spanish and french”. Published February 06, 2012. Accessed on .