Skip to content

Commit

Permalink
update hide_original_languages
Browse files Browse the repository at this point in the history
- Add zh_CN & zh_TW translation
- move the item to Accessibility section, as it can take effect when autotranslation is off.
  • Loading branch information
Yanstory committed Oct 26, 2024
1 parent 7148716 commit 5cbcac0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -649,5 +649,6 @@
"nonexistent_user_desc": { "message": "尝试搜索另一个账号。" },
"suspended_user": { "message": "账号已被冻结" },
"suspended_user_desc": { "message": "您正在查看的个人资料页已被冻结。" },
"show_boring_indicators": { "message": "在关注中/粉丝页面的用户昵称后方添加一个表示其最近推文的图标<br>图标示意:<span class=\"user-indicator-retweeted\"></span> 转推的 / <span class=\"user-indicator-quoted\"></span> 引用的 / <span class=\"user-indicator-no-status\"></span> 不存在的 / <span class=\"user-indicator-old\"></span> 有段时间(一周以上)的"}
"show_boring_indicators": { "message": "在关注中/粉丝页面的用户昵称后方添加一个表示其最近推文的图标<br>图标示意:<span class=\"user-indicator-retweeted\"></span> 转推的 / <span class=\"user-indicator-quoted\"></span> 引用的 / <span class=\"user-indicator-no-status\"></span> 不存在的 / <span class=\"user-indicator-old\"></span> 有段时间(一周以上)的"},
"hide_original_languages":{"message": "翻译推文后隐藏原文" }
}
3 changes: 2 additions & 1 deletion _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,5 +645,6 @@
"nonexistent_user_desc": { "message": "請嘗試搜尋其他帳號。" },
"suspended_user": { "message": "此帳號已被停用" },
"suspended_user_desc": { "message": "你要查看的個人資料已被停用。 要返回首頁,請<a href=\"/home\">點一下這裡</a>。" },
"show_boring_indicators": { "message": "在「跟隨中」及「粉絲」列表中顯示圖示,以表示各使用者的最後推文狀態(轉推、引用、一段時間前或沒有推文)。" }
"show_boring_indicators": { "message": "在「跟隨中」及「粉絲」列表中顯示圖示,以表示各使用者的最後推文狀態(轉推、引用、一段時間前或沒有推文)。" },
"hide_original_languages":{"message": "翻譯推文後隱藏原文" }
}
6 changes: 3 additions & 3 deletions layouts/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ <h2>__MSG_accessibility__</h2><br>
</div>
<div class="setting">
<input type="checkbox" id="disable-hotkeys"> <label for="disable-hotkeys">__MSG_disable_hotkeys__</label>
</div>
<div class="setting">
<input type="checkbox" id="hide-original-languages"> <label for="hide-original-languages">__MSG_hide_original_languages__</label>
</div>
<div class="setting">
<span>__MSG_copy_tweet_links_as__</span>
Expand Down Expand Up @@ -211,9 +214,6 @@ <h2>__MSG_autotranslation__</h2> <span class="option-help" id="autotl-help">?</s
</select>
<button id="add-autotranslate-language" class="nice-button" disabled>__MSG_add__</button>
</div>
<div class="setting">
<input type="checkbox" id="hide-original-languages"> <label for="hide-original-languages">__MSG_hide_original_languages__</label>
</div>
<div id="mobile-setting">
<h2>__MSG_mobile__</h2><br>
<div class="setting" id="disable-data-saver-div">
Expand Down

0 comments on commit 5cbcac0

Please sign in to comment.