diff --git a/i18n/generate_test.go b/i18n/generate_test.go index b234b20a..361e02ac 100644 --- a/i18n/generate_test.go +++ b/i18n/generate_test.go @@ -35,4 +35,5 @@ func TestGenerateI18nStrings(t *testing.T) { applyToOtherLanguage(dataEn, "ru") applyToOtherLanguage(dataEn, "zh") applyToOtherLanguage(dataEn, "zh-TW") + applyToOtherLanguage(dataEn, "kk") } diff --git a/web/src/locales/de/data.json b/web/src/locales/de/data.json index 8a17d78d..12696def 100644 --- a/web/src/locales/de/data.json +++ b/web/src/locales/de/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "MarkDown", - "richtext": "RichText" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index 11af89e3..c46c8491 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "markdown", - "richtext": "richtext" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/fr/data.json b/web/src/locales/fr/data.json index a7b66be8..5c19d5a1 100644 --- a/web/src/locales/fr/data.json +++ b/web/src/locales/fr/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "MarkDown", - "richtext": "RichText" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/ja/data.json b/web/src/locales/ja/data.json index a7b66be8..5c19d5a1 100644 --- a/web/src/locales/ja/data.json +++ b/web/src/locales/ja/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "MarkDown", - "richtext": "RichText" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/kk/data.json b/web/src/locales/kk/data.json index 11af89e3..c46c8491 100644 --- a/web/src/locales/kk/data.json +++ b/web/src/locales/kk/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "markdown", - "richtext": "richtext" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/ko/data.json b/web/src/locales/ko/data.json index a7b66be8..5c19d5a1 100644 --- a/web/src/locales/ko/data.json +++ b/web/src/locales/ko/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "MarkDown", - "richtext": "RichText" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/ru/data.json b/web/src/locales/ru/data.json index 35938e11..e0405d94 100644 --- a/web/src/locales/ru/data.json +++ b/web/src/locales/ru/data.json @@ -224,6 +224,7 @@ "Total Replies": "Total Replies", "Total Topics": "Total Topics", "Watch": "Watch", + "You have signed out completely, no personal information is left on this computer.": "You have signed out completely, no personal information is left on this computer.", "authorized to manage the community": "authorized to manage the community", "member, joined on": "member, joined on", "replied": "replied" @@ -250,16 +251,14 @@ "Already enabled Markdown": "Already enabled Markdown", "Body": "Body", "Hottest Nodes": "Hottest Nodes", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "New Topic", "Please select a node": "Please select a node", "Preview": "Preview", "Publish": "Publish", "RichText": "RichText", "Switch editor": "Switch editor", - "Topic Title": "Topic Title", - "markdown": "MarkDown", - "richtext": "RichText" + "Topic Title": "Topic Title" }, "newNodeTopic": { "Preview": "Preview", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "Add a New Comment", "Back to Top": "Back to Top", + "Cancel reply to {username}": "Cancel reply to {username}", "Delete": "Delete", "Edit": "Edit", "Make your comment helpful for others as much as possible": "Make your comment helpful for others as much as possible", diff --git a/web/src/locales/zh-TW/data.json b/web/src/locales/zh-TW/data.json index 2e0bd078..8d987d06 100644 --- a/web/src/locales/zh-TW/data.json +++ b/web/src/locales/zh-TW/data.json @@ -224,6 +224,7 @@ "Total Replies": "回復總數", "Total Topics": "主題總數", "Watch": "加入特別關註", + "You have signed out completely, no personal information is left on this computer.": "你已經完全登出,沒有任何個人信息留在這臺電腦上。", "authorized to manage the community": "具有管理社區的權限", "member, joined on": "號會員,加入於", "replied": "回復了" @@ -250,16 +251,14 @@ "Already enabled Markdown": "已啟用Markdown", "Body": "正文", "Hottest Nodes": "最熱節點", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "創作新主題", "Please select a node": "請選擇一個節點", "Preview": "預覽主題", "Publish": "發布主題", "RichText": "富文本", "Switch editor": "切換編輯器", - "Topic Title": "主題標題", - "markdown": "Markdown", - "richtext": "富文本" + "Topic Title": "主題標題" }, "newNodeTopic": { "Preview": "預覽", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "添加一條新回復", "Back to Top": "回到頂部", + "Cancel reply to {username}": "取消對 {username} 的回復", "Delete": "刪除", "Edit": "編輯", "Make your comment helpful for others as much as possible": "請盡量讓自己的回復能夠對別人有幫助", diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index 0241de40..3676ebe7 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -224,6 +224,7 @@ "Total Replies": "回复总数", "Total Topics": "主题总数", "Watch": "加入特别关注", + "You have signed out completely, no personal information is left on this computer.": "你已经完全登出,没有任何个人信息留在这台电脑上。", "authorized to manage the community": "具有管理社区的权限", "member, joined on": "号会员,加入于", "replied": "回复了" @@ -250,16 +251,14 @@ "Already enabled Markdown": "已启用Markdown", "Body": "正文", "Hottest Nodes": "最热节点", - "MarkDown": "MarkDown", + "Markdown": "Markdown", "New Topic": "创作新主题", "Please select a node": "请选择一个节点", "Preview": "预览主题", "Publish": "发布主题", "RichText": "富文本", "Switch editor": "切换编辑器", - "Topic Title": "主题标题", - "markdown": "Markdown", - "richtext": "富文本" + "Topic Title": "主题标题" }, "newNodeTopic": { "Preview": "预览", @@ -384,6 +383,7 @@ "reply": { "Add a New Comment": "添加一条新回复", "Back to Top": "回到顶部", + "Cancel reply to {username}": "取消对 {username} 的回复", "Delete": "删除", "Edit": "编辑", "Make your comment helpful for others as much as possible": "请尽量让自己的回复能够对别人有帮助", diff --git a/web/src/main/EditBox.js b/web/src/main/EditBox.js index 8abf31d1..52eb6d76 100644 --- a/web/src/main/EditBox.js +++ b/web/src/main/EditBox.js @@ -41,11 +41,11 @@ class EditBox extends React.Component { form: {}, editor: [ { - text: i18next.t("new:markdown"), + text: i18next.t("new:Markdown"), id: 0, }, { - text: i18next.t("new:richtext"), + text: i18next.t("new:RichText"), id: 1, }, ], @@ -99,9 +99,7 @@ class EditBox extends React.Component { // reply ReplyBackend.editReplyContent(this.state.form).then((res) => { if (res.status === "ok") { - this.props.history.push( - `/t/${this.state.editObject?.topicId}#r_${this.state.editObject?.id}` - ); + this.props.history.push(`/t/${this.state.editObject?.topicId}#r_${this.state.editObject?.id}`); } else { Setting.showMessage("error", res?.msg); } @@ -162,12 +160,12 @@ class EditBox extends React.Component { if (index === 0) { this.updateFormField("editorType", "markdown"); this.setState({ - placeholder: i18next.t("new:markdown"), + placeholder: i18next.t("new:Markdown"), }); } else { this.updateFormField("editorType", "richtext"); this.setState({ - placeholder: i18next.t("new:richtext"), + placeholder: i18next.t("new:RichText"), }); } }} @@ -178,10 +176,7 @@ class EditBox extends React.Component { } renderEditor() { - if ( - !this.state.form.editorType || - this.state.form.editorType === "markdown" - ) { + if (!this.state.form.editorType || this.state.form.editorType === "markdown") { return (
{this.renderEditor()} | |||
+ |
- this.editContent()}
- />
+ this.editContent()} />
{this.renderEditorSelect()}
|
@@ -317,19 +295,9 @@ class EditBox extends React.Component {
return (
+ |
- this.editContent()}
- />
+ this.editContent()} />
{this.renderEditorSelect()}
|
diff --git a/web/src/main/NewBox.js b/web/src/main/NewBox.js
index ea8c5294..35e91b0c 100644
--- a/web/src/main/NewBox.js
+++ b/web/src/main/NewBox.js
@@ -48,11 +48,11 @@ class NewBox extends React.Component {
nodeId: this.props.match.params.nodeId,
editor: [
{
- text: i18next.t("new:markdown"),
+ text: i18next.t("new:Markdown"),
id: 0,
},
{
- text: i18next.t("new:richtext"),
+ text: i18next.t("new:RichText"),
id: 1,
},
],
@@ -190,12 +190,12 @@ class NewBox extends React.Component {
if (index === 0) {
this.updateFormField("editorType", "markdown");
this.setState({
- placeholder: i18next.t("new:markdown"),
+ placeholder: i18next.t("new:Markdown"),
});
} else {
this.updateFormField("editorType", "richtext");
this.setState({
- placeholder: i18next.t("new:richtext"),
+ placeholder: i18next.t("new:RichText"),
});
}
}}
@@ -214,16 +214,12 @@ class NewBox extends React.Component {
return (
- {!this.state.form.editorType ||
- this.state.form.editorType === "markdown" ? (
+ {!this.state.form.editorType || this.state.form.editorType === "markdown" ? (
-
+
Auto Tag
{!this.state.autoTag ? (
+ |
|
-
-
+
- {Setting.getForumName()}{" "}
- › Select Default Editor
- / 选择默认编辑器
+ {Setting.getForumName()} › Select Default Editor / 选择默认编辑器
-
- {Setting.PcBrowser ? (
-
- Please select the Default Editor you would like to use on{" "}
- {Setting.getForumName()}
-
- ) : (
-
- Please select the Default Editor you would like to use:
-
- )}
-
- Setting.changeEditorType("markdown")}
- className={"lang-selector"}
- >
- {i18next.t("new:MarkDown")}
+ {Setting.PcBrowser ? Please select the Default Editor you would like to use on {Setting.getForumName()} : Please select the Default Editor you would like to use:}
+ Setting.changeEditorType("markdown")} className={"lang-selector"}>
+ {i18next.t("new:Markdown")}
- Setting.changeEditorType("richtext")}
- className={"lang-selector"}
- >
+ Setting.changeEditorType("richtext")} className={"lang-selector"}>
{i18next.t("new:RichText")}
|