Opened 13 years ago
Last modified 13 years ago
#193 closed defect (FIXED)
{% trans %}'ify our templates
Reported by: | Christopher Allan Webber | Owned by: | Osama Khalid |
---|---|---|---|
Priority: | minor | Milestone: | 0.0.5 |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
We have a lot of strings in our templates, but they aren't marked for translation! As part of the process of making MediaGoblin translatable we should make all templates marked with the {% trans %} tag. `http://jinja.pocoo.org/docs/templates/#i18n <http://jinja.pocoo.org/docs/templates/#i18n>`_
Change History (4)
comment:2 by , 13 years ago
AWESOME. I merged it! Made a few changes... fyi, there's an extra feature in Jinja2 where you can do :: <a href="blah blah blah"> {%- trans -%}blah blah blah{% endtrans -%} </a> putting a minus at the start/end of a {% tag %} or {{ call }} thing strips all the whitespace before/after which I think makes it easier to format the templating a bit nicer. Looks SUPER GREAT. Thanks so much for taking the time on this osamak! Now we have a real bunch of strings that are translatable up here: `https://www.transifex.net/projects/p/mediagoblin/resource/mediagoblin/ <https://www.transifex.net/projects/p/mediagoblin/resource/mediagoblin/>`_ Thanks again!
comment:3 by , 13 years ago
Status: | New → Closed |
---|
Note:
See TracTickets
for help on using tickets.