zooniverse / zooniverse-readymade

Apache License 2.0
1 stars 3 forks source link

Translate strings with the built-in translate function #20

Closed brian-c closed 9 years ago

brian-c commented 9 years ago

@chrissnyder How's this suit you re: Penguins? Translations for readymade go in src/translations and are added to the list in app/resources/js/project.coffee. There's a phony "readymade" namespace added to prevent collisions (the zoo-lib translate function doesn't allow nesting).

chrissnyder commented 9 years ago

If I'm understanding this correct, it adds the strings to the same language objet used by the site, correct? So I could grab the text from the console and get both the Penguins-specific text and the readymade text?

If yes to both, this does the job.

brian-c commented 9 years ago

No, this hooks into the built-in Zooniverse translated strings and uses the existing Zooniverse translate function. That way you only have to translate readymade's strings once, instead of in every readymade project.

chrissnyder commented 9 years ago

Ah I understand now. Looks good to me.