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

Unified Diff: tests/test_site/pages/translate-html.html

Issue 29659605: Issue 6231 - Add tests for translation string substitution (Closed)
Patch Set: Add tests for different types of pages; also for includes and templates Created Jan. 12, 2018, 7:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_site/pages/translate-html.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/pages/translate-html.html
@@ -0,0 +1,21 @@
+template = empty
+
+<html>
+ <body>
+Simple TS with default: {{ simple[desc] Translate }}.
+
+Same TS with no default: {{ simple }}.
+
+TS with fixed text: {{fix-ts[fix] Fixed <fix>text</fix>}}.
+
+Nested translation: {{nested-ts <a href="{{nested-link http://foo.com/}}">Foo</a> and <a href="{{nested-link2 http://baz.com/}}">Baz</a>}}.
+
+Link resolving: {{linked-ts <a href="translate">This page</a>}}.
+
+Link to a non-translatable page: {{linked-ts2 <a href="sitemap">Site map</a>}}.
+
+Entity escaping: {{entity-ts Drag&drop}}.
+
+Entity escaping in links: {{entity-lnk <a href="http://foo.com/?a&b">Foo</a>}}.
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld