diff options
author | Felipe Erias Morandeira <femorandeira@igalia.com> | 2013-06-28 11:27:27 +0100 |
---|---|---|
committer | Felipe Erias Morandeira <femorandeira@igalia.com> | 2013-06-28 11:27:27 +0100 |
commit | 63bfea81df364fe3179229eeeba28ad16318ccc7 (patch) | |
tree | cbd7e782ba4593255668a7841479954eed09990f /test | |
parent | c255248c82b0b762fa36a20fdcc39aa87ba73760 (diff) |
Removed the "lang" parameter from translatable elements.
[endlessm/eos-sdk#113]
Diffstat (limited to 'test')
-rw-r--r-- | test/smoke-tests/webview.js | 6 | ||||
-rw-r--r-- | test/smoke-tests/webview/first_page.html | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/test/smoke-tests/webview.js b/test/smoke-tests/webview.js index 1662fd8..41d6836 100644 --- a/test/smoke-tests/webview.js +++ b/test/smoke-tests/webview.js @@ -82,10 +82,8 @@ const TestApplication = new Lang.Class({ // WebKit.DOMNode let element = translatable.item(i); - if (element.lang != lang) { - // TODO here is where we would do the translation - element.inner_text = '(TRANSLATE FROM '+element.lang+' TO '+lang+')'; - } + // TODO here is where we would do the translation + element.inner_html = '<i>' + element.inner_text + '</i>'; } }, diff --git a/test/smoke-tests/webview/first_page.html b/test/smoke-tests/webview/first_page.html index e2c2c1e..33a6a8f 100644 --- a/test/smoke-tests/webview/first_page.html +++ b/test/smoke-tests/webview/first_page.html @@ -47,9 +47,7 @@ body { </p> <p> -This is text that will not be translated: <span name="translatable" lang="pt_BR">Bom dia, mundo!</span> -<br/> -This is text that will be translated: <span name="translatable" lang="en_US">Hello, world!</span> +This is text that will be translated: <span name="translatable">Hello, world!</span> </p> </body> |