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

Unified Diff: tests/test_site/includes/included-translations.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.
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/includes/included-translations.html
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/includes/included-translations.html
@@ -0,0 +1,15 @@
+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>}}.

Powered by Google App Engine
This is Rietveld