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:


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.

` <>`_

Change History (4)

comment:1 by Osama Khalid, 13 years ago

Done for all templates, but there some fixed strings in
mediagoblin/submit/ and mediagoblin/edit/ that I am
not sure how to fix.

Please pull from:

The exact commit is:
[\ :sub:`osamak/mediagoblin/mediagoblin-osamak/commit/8f4c9b813d306228e1eecec7551d46902c264189](`\ osamak/mediagoblin/mediagoblin-osamak/commit/8f4c9b813d306228e1eecec7551d46902c264189)

comment:2 by Christopher Allan Webber, 13 years ago


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 -%}

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:
` <>`_

Thanks again!

comment:3 by Christopher Allan Webber, 13 years ago

Status: NewClosed

comment:3 by Will Kahn-Greene, 12 years ago

The original url for this bug was .

Note: See TracTickets for help on using tickets.