From f210728a7b2cecff5fbf244cd4e662cac6dd0bfb Mon Sep 17 00:00:00 2001 From: Stuart Hu Date: Wed, 12 Aug 2020 03:26:49 +0800 Subject: [PATCH] fix: add translate for dropdown menu (#10573) * fix: translate dropdown menu Signed-off-by: Stuart Hu * Apply suggestions from code review Co-authored-by: iriswonderland13 <69527796+iriswonderland13@users.noreply.github.com> Co-authored-by: Erik Ritter Co-authored-by: iriswonderland13 <69527796+iriswonderland13@users.noreply.github.com> --- .../translations/zh/LC_MESSAGES/messages.json | 11 +++++++-- .../translations/zh/LC_MESSAGES/messages.po | 23 ++++++++++++++++++- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/superset/translations/zh/LC_MESSAGES/messages.json b/superset/translations/zh/LC_MESSAGES/messages.json index 5fc4bd463e867..8ec969fe7e72e 100644 --- a/superset/translations/zh/LC_MESSAGES/messages.json +++ b/superset/translations/zh/LC_MESSAGES/messages.json @@ -366,7 +366,9 @@ "Active Dashboard Filters": ["活跃的看板过滤器"], "Checkout this dashboard: %s": ["查看这个看板:%s"], "Save as": ["另存为"], - "Force Refresh": ["强制刷新"], + "Force refresh": ["强制刷新"], + "Fetched %s": ["刷新于%s"], + "Cached %s": ["缓存于%s"], "Force refresh the whole dashboard": ["强制刷新整个看板"], "Set autorefresh": ["设置自动刷新"], "Set the auto-refresh interval for this session": [ @@ -1562,7 +1564,12 @@ "Changed on": ["改变为"], "Saved Queries": ["已保存查询"], "Show": ["每页显示"], - "entries": ["条"] + "entries": ["条"], + "Edit chart metadata": ["编辑图表元数据"], + "Maximize": ["最大化"], + "Minimize": ["还原"], + "Share chart": ["共享图表"], + "Download as image": ["下载为图片"] } } } diff --git a/superset/translations/zh/LC_MESSAGES/messages.po b/superset/translations/zh/LC_MESSAGES/messages.po index 045ff88a9cb51..52be0196d6e07 100644 --- a/superset/translations/zh/LC_MESSAGES/messages.po +++ b/superset/translations/zh/LC_MESSAGES/messages.po @@ -1109,9 +1109,15 @@ msgstr "周" #~ msgid "Save as" #~ msgstr "另存为" -#~ msgid "Force Refresh" +#~ msgid "Force refresh" #~ msgstr "强制刷新" +#~ msgid "Fetched %s" +#~ msgstr "刷新于%s" + +#~ msgid "Cached %s" +#~ msgstr "缓存于%s" + #~ msgid "Force refresh the whole dashboard" #~ msgstr "强制刷新整个仪表板" @@ -4113,3 +4119,18 @@ msgstr "周" #~ msgid "Line Width" #~ msgstr "线宽" + +#~ msgid "Edit chart metadata" +#~ msgstr "编辑图表元数据" + +#~ msgid "Maximize" +#~ msgstr "最大化" + +#~ msgid "Minimize" +#~ msgstr "还原" + +#~ msgid "Share chart" +#~ msgstr "共享图表" + +#~ msgid "Download as image" +#~ msgstr "下载为图片"