Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: tests/test_site/pages/translate-tmpl.tmpl

Issue 29741581: Fixes 6546 - Swap the contents of default.tmpl and empty.tmpl in the test suite (Closed)
Left Patch Set: Created April 3, 2018, 2:19 p.m.
Right Patch Set: Remove unnecessary template=default metadata and adjust the expected output for sitemap accordingly Created April 3, 2018, 4:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 template = default
2
3 <html> 1 <html>
4 <body> 2 <body>
5 Simple TS with default: {{ 'Translate' | translate('simple') }}. 3 Simple TS with default: {{ 'Translate' | translate('simple') }}.
6 4
7 Same TS with no default: {{ get_string('simple') }}. 5 Same TS with no default: {{ get_string('simple') }}.
8 6
9 TS with fixed text: {{ 'Fixed <fix>text</fix>' | translate('fix-ts') }}. 7 TS with fixed text: {{ 'Fixed <fix>text</fix>' | translate('fix-ts') }}.
10 8
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') }}. 9 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 10
13 Link resolving: {{ '<a href="translate">This page</a>' | translate('linked-ts') }}. 11 Link resolving: {{ '<a href="translate">This page</a>' | translate('linked-ts') }}.
14 12
15 Entity escaping: {{ 'Drag&drop' | translate('entity-ts') }}. 13 Entity escaping: {{ 'Drag&drop' | translate('entity-ts') }}.
16 14
17 Entity escaping in links: {{ '<a href="http://foo.com/?a&b">Foo</a>' | translate ('entity-lnk') }}. 15 Entity escaping in links: {{ '<a href="http://foo.com/?a&b">Foo</a>' | translate ('entity-lnk') }}.
18 </body> 16 </body>
19 </html> 17 </html>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld