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

Side by Side Diff: tests/test_site/pages/translate-html.html

Issue 29659605: Issue 6231 - Add tests for translation string substitution (Closed)
Patch Set: Add tests for partial translation and for get_string Created Jan. 19, 2018, 3:26 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 template = empty
2
3 <html>
4 <body>
5 Simple TS with default: {{ simple[desc] Translate }}.
6
7 Same TS with no default: {{ simple }}.
8
9 TS with fixed text: {{fix-ts[fix] Fixed <fix>text</fix>}}.
10
11 Nested translation: {{nested-ts <a href="{{nested-link http://foo.com/}}">Foo</a > and <a href="{{nested-link2 http://baz.com/}}">Baz</a>}}.
12
13 Link resolving: {{linked-ts <a href="translate">This page</a>}}.
14
15 Link to a non-translatable page: {{linked-ts2 <a href="sitemap">Site map</a>}}.
16
17 Entity escaping: {{entity-ts Drag&drop}}.
18
19 Entity escaping in links: {{entity-lnk <a href="http://foo.com/?a&b">Foo</a>}}.
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld