Blog

teaching prism how to speak spanish and french

We migrated this website to a new platform, and are working to correct formatting errors in older blog posts as a result. If you encounter an error, please send an email to scholarslab@virginia.edu. Thanks!

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. https://scholarslab.lib.virginia.edu/blog/teaching-prism-how-to-speak-spanish-and-french/. Accessed on .