Changes between Version 1 and Version 2 of CookBookTemplateTagTranslation
- Timestamp:
- Apr 6, 2006, 2:27:50 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookTemplateTagTranslation
v1 v2 1 2 1 = CookBook - Template tags = 3 2 … … 33 32 register.tag('translate', do_translate) 34 33 }}} 34 35 ---- 36 37 Can 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 46 and your method? 47 48 {{{ 49 {% translate %} 50 `saddasdasd asd ad asd` 51 `saddasdasd asd ad asd` 52 {% endtranslate %} 53 }}} 54 55 Also, your tags are not picked up with {{{make-messages}}} so you must insert them manually into .po files.