Changes between Version 1 and Version 2 of CookBookTemplateTagTranslation


Ignore:
Timestamp:
04/06/2006 02:27:50 AM (9 years ago)
Author:
Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>
Comment:

added blocktrans question

Legend:

Unmodified
Added
Removed
Modified
  • CookBookTemplateTagTranslation

    v1 v2  
    1 
    21= CookBook - Template tags =
    32
     
    3332register.tag('translate', do_translate)
    3433}}}
     34
     35----
     36
     37Can you explain the difference between:
     38{{{
     39{% blocktrans %}
     40    asd adlkjfjalkdsfj lksajdfl sdkf jslakdfj
     41    asd adlkjfjalkdsfj lksajdfl sdkf jslakdfj
     42    asd adlkjfjalkdsfj lksajdfl sdkf jslakdfj
     43{% endblocktrans %}
     44}}}
     45
     46and your method?
     47
     48{{{
     49{% translate %}
     50    `saddasdasd asd ad asd`
     51    `saddasdasd asd ad asd`
     52{% endtranslate %}
     53}}}
     54
     55Also, your tags are not picked up with {{{make-messages}}} so you must insert them manually into .po files.
Back to Top