maraoz / proofofexistence

Prove the existence of files using the bitcoin blockchain.
http://proofofexistence.com/
MIT License
229 stars 78 forks source link

Make ProofOfExistence translatable #1

Closed mapmeld closed 10 years ago

mapmeld commented 10 years ago

Uses the strategy described here for translations on AppEngine + Jinja: http://mikeshilkov.wordpress.com/2012/07/26/enable-jinja2-and-i18n-translations-on-google-appengine/

Translating.md describes how to update and add new translations: https://github.com/mapmeld/proofofexistence/blob/translatable/translating.md

You can try it out on http://map-poe.appspot.com?lang=es - I do not know enough to translate much, but you can see it on the homepage and about.

maraoz commented 10 years ago

Thanks for contributing! My code is horrible yet, I hope you didn't find it too troublesome (I haven't publicized the source code yet because I wanted to tidy things up). I'll check your Pull Request and merge it if everything is OK.

maraoz commented 10 years ago

By the way: did you make the whole site work on your deployed version? (like, coinbase integration, etc). If you did I admire you, it's totally undocumented and config is not trivial :+1:

mapmeld commented 10 years ago

No problem!

My deployment does not actually work - I just created a secrets.py where everything is an empty string

mapmeld commented 10 years ago

If you separate out the babel and gaepytz folders and download those directly from their repos, the rest of the changes should be more digestable.

mapmeld commented 10 years ago

would it be helpful to integrate the translations currently in the JS into the .PO side?

maraoz commented 10 years ago

Nick, sorry. I've been very busy with other stuff and wasn't able to try and merge your pull request. Next week I'll give it a try :) On Mar 22, 2014 2:09 AM, "Nick Doiron" notifications@github.com wrote:

would it be helpful to integrate the translations currently in the JS into the .PO side?

Reply to this email directly or view it on GitHubhttps://github.com/maraoz/proofofexistence/pull/1#issuecomment-38343299 .

mapmeld commented 10 years ago

I made the change anyway - should be a lot cleaner to have translations in one place.

I updated http://map-poe.appspot.com so you can see it working there.

maraoz commented 10 years ago

Can you rebase, please?

git remote add maraoz git@github.com:maraoz/proofofexistence.git
git pull --rebase maraoz master
# fix conflicts if any