Skip to content

Commit 03d707a

Browse files
committed
[+plus] context menu translation demo,
1 parent 0c8fc2d commit 03d707a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<html lang="en">
2+
<head>
3+
<title>Basic UI translation sample</title>
4+
5+
<!-- these four links define two translation files for different languages. -->
6+
<link href="lang/ru.tis" hreflang="ru" rel="translation" >
7+
<link href="lang/en.tis" hreflang="en" rel="translation" >
8+
<link href="lang/zh.tis" hreflang="zh" rel="translation" >
9+
10+
<style>
11+
@import url(../lang.css);
12+
@import url(../../+plus/plus.css);
13+
</style>
14+
15+
<script type="text/tiscript">
16+
include "../lang.tis";
17+
include "../lang-tool.tis";
18+
19+
$(select#lang) << event change() { self.language = this.value; }
20+
</script>
21+
22+
</head>
23+
<body model="Data">
24+
<h2>Basic UI translation sample using Lang framework</h2>
25+
<p>testing context menu of &lt;input&gt;</p>
26+
<fieldset>
27+
<p><label>UI language</label><include src=lang-selector.htm /></p>
28+
<hr>
29+
<input(test) novalue="type something"/>
30+
</fieldset>
31+
</body>
32+
</html>

samples/+lang/demos/lang/ru.tis

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,12 @@
2020
"First test": "Первый тест",
2121
"Second test": "Второй тест",
2222
"Title test": "Тестовая подсказка",
23+
"Cut": "Вырезать",
24+
"Copy": "Копировать",
25+
"Paste": "Вставить",
26+
"Undo": "Отменить",
27+
"Select All": "Выделить всё",
28+
"type something": "Печатаем что-нибудь",
29+
2330

2431
})

0 commit comments

Comments
 (0)