i18n 修复

Makefile 添加 run-nogpio run-build 便于测试和构建发布
对于 docker 环境的适配
This commit is contained in:
mofeng-git
2024-09-06 17:44:49 +08:00
parent 551e91069d
commit 7bc92c943a
6 changed files with 56 additions and 7 deletions

View File

@@ -60,7 +60,7 @@
<tr>
<td i18n="password">Password:&nbsp;</td>
<td>
<input type="current-password" id="passwd-input" autocapitalize="off">
<input type="password" id="passwd-input" autocapitalize="off">
</td>
</tr>
<tr>
@@ -78,8 +78,8 @@
<td i18n="select_language">Select language:&nbsp;</td>
<td>
<select id="selectLanguage">
<option class="chinese" value="ch" selected="selected" i18n="chinese">Simplified Chinese</option>
<option class="english" value="en" i18n="english">English</option>
<option id="zh" selected="selected" i18n="chinese">Simplified Chinese</option>
<option id="en" i18n="english">English</option>
</select>
</td>
</tr>

View File

@@ -55,7 +55,7 @@ $(document).ready(function() {
defaultLang: selectOptionId,
filePath: "/share/i18n/"
});
setCookie('userLanguage', "cn")
setCookie('userLanguage', selectOptionId)
});