okfn / opendatahandbook-old

Open Data Handbook
http://opendatahandbook.org/
68 stars 39 forks source link

Link to translations #31

Closed rufuspollock closed 12 years ago

rufuspollock commented 12 years ago

Need a way to link to different language translations.

timClicks commented 12 years ago

Another possible option would be to defer until a Sphinx extension matures.

In the interim, I think creating a discrete header for language options would be preferable to the sidebar. This is also conforms with web conventions. I believe only MediaWiki uses the sidebar for translations.

timClicks commented 12 years ago

Provisional implementation (timClicks@7e5d321ef08efaec7ac1ad8f8589447f245acc77)

timClicks commented 12 years ago

@rgrp do you think that this command in the Makefile will work? I'm not 100% familiar with S3/s3cmd.

ifeq ($(lang), en)
    s3cmd sync --acl-public --delete-removed $(BUILDDIR)/html/$(lang)/ s3://opendatamanual.org/
else
    s3cmd sync --acl-public --delete-removed $(BUILDDIR)/html/$(lang)/ s3://opendatamanual.org/$(lang)
endif
rufuspollock commented 12 years ago

I think that should work but we have to test it -- do you not have access to the s3 bucket yet? (If not we should make sure you do!)

rufuspollock commented 12 years ago

Done. Linking in navbar at the moment. Could make this better.