Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 template = empty | |
2 | |
3 <html> | |
4 <body> | |
5 Simple TS with default: {{ 'Translate' | translate('simple') }}. | |
6 | |
7 Same TS with no default: doesn't work in templates. | |
8 | |
9 TS with fixed text: {{ 'Fixed <fix>text</fix>' | translate('fix-ts') }}. | |
10 | |
11 Nested translation: {{ '<a href="{{nested-link http://foo.com/}}">Foo</a> and <a href="{{nested-link2 http://baz.com/}}">Baz</a>' | translate('nested-ts') }}. | |
12 | |
13 Link resolving: {{ '<a href="translate">This page</a>' | translate('linked-ts') }}. | |
14 | |
15 Entity escaping: {{ 'Drag&drop' | translate('entity-ts') }}. | |
16 | |
17 Entity escaping in links: {{ '<a href="http://foo.com/?a&b">Foo</a>' | translate ('entity-lnk') }}. | |
18 </body> | |
19 </html> | |
OLD | NEW |