Open source and multilingual

In keeping with Zooniverse’s philosophy of openness, the code for Snapshot Serengeti was released back in February. (And the code for several other Zooniverse projects has been released, as well). What this means is that you — or anyone else — can contribute directly to the development of Snapshot Serengeti!

In particular, we’d love to internationalize the site so non-English speakers can participate. If you go and classify images in Snapshot Serengeti right now, you can see a beta version of a Polish translation of the site. Look for the word “English” in the upper left, pull down the arrow, and select “Polski (beta)”. You can now develop your Polish vocabulary, if you don’t happen to be a native Polish speaker. (Seriously. I studied for my high school AP French exam by installing Civilization in French on my computer and playing it endlessly. I’ll admit it was tricky to work the words caserne (barracks) and galère (galley) into my exam essay, but playing Civilization was so much more fun than flash cards…)

All the text you see on Snapshot Serengeti is in what is called a “localization file.” If you look at Snapshot Serengeti’s English localization file, you’ll see all the English text that you could possibly encounter on the site, starting like this:

English_file

And if you wanted to, say, create a Swahili version of Snapshot Serengeti (which would be awesome), you would change the text that reads ‘Welcome to Snapshot Serengeti!’ to ‘Karibu Snapshot Serengeti!’. And you would continue doing that for all the English.

So, want to do some translating? If you’re tech-savvy, follow these instructions for translating Galaxy Zoo, but use the Snapshot Serengeti code instead of Galaxy Zoo’s. If those directions leave your head spinning, leave a comment below and we’ll help get you started.

Advertisements

Tags: , ,

About Margaret Kosmala

I am an ecologist exploring the complex dynamics of plant and animal systems. I am especially interested in understanding how species communities change over time and how humans impact them.

6 responses to “Open source and multilingual”

  1. Jani says :

    I have some experience translating software would like to contribute, but I’m unsure of how the coffee and JSON files in this source tree are related: public/translations/README.md refers to app/translations/en_us.coffee (like the blog post above), but the es_ex and pl_pl translations in public/translations are JSON files without corresponding coffee files in app/translations. Do I base my translation on a copy of en_us.coffee or on one of the JSON files?

    The Galaxy Zoo guide refers to a template-creating script, but that gives an error: “translate.rb:11: syntax error, unexpected ‘:’, expecting $end”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: