mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 09:10:25 +08:00
chore(i18n): use english as the base language for i18n (#22)
* chore(i18n): use english as the base language for i18n rewrite all of the locale files to use english as base for translation * fix(i18n): update rest of the scripts that rely on the chinese-base i18n translation * chore(i18n): change some of the base strings to be more correct * chore(i18n): sync locale on dev * chore(format): run black on dev --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -17,50 +17,50 @@ def show_model_info(cpt, show_long_id=False):
|
||||
if id != idread:
|
||||
id += (
|
||||
"("
|
||||
+ i18n("实际计算")
|
||||
+ i18n("Actually calculated")
|
||||
+ "), "
|
||||
+ idread
|
||||
+ "("
|
||||
+ i18n("从模型中读取")
|
||||
+ i18n("Read from model")
|
||||
+ ")"
|
||||
)
|
||||
sim = hash_similarity(h, hread)
|
||||
if not isinstance(sim, str):
|
||||
sim = "%.2f%%" % (sim * 100)
|
||||
if not show_long_id:
|
||||
h = i18n("不显示")
|
||||
h = i18n("Hidden")
|
||||
if h != hread:
|
||||
h = i18n("相似度") + " " + sim + " -> " + h
|
||||
h = i18n("Similarity") + " " + sim + " -> " + h
|
||||
elif h != hread:
|
||||
h = (
|
||||
i18n("相似度")
|
||||
i18n("Similarity")
|
||||
+ " "
|
||||
+ sim
|
||||
+ " -> "
|
||||
+ h
|
||||
+ "("
|
||||
+ i18n("实际计算")
|
||||
+ i18n("Actually calculated")
|
||||
+ "), "
|
||||
+ hread
|
||||
+ "("
|
||||
+ i18n("从模型中读取")
|
||||
+ i18n("Read from model")
|
||||
+ ")"
|
||||
)
|
||||
txt = f"""{i18n("模型名")}: %s
|
||||
{i18n("封装时间")}: %s
|
||||
txt = f"""{i18n("Model name")}: %s
|
||||
{i18n("Sealing date")}: %s
|
||||
{i18n("模型作者")}: %s
|
||||
{i18n("信息")}: %s
|
||||
{i18n("采样率")}: %s
|
||||
{i18n("音高引导(f0)")}: %s
|
||||
{i18n("版本")}: %s
|
||||
{i18n("ID(短)")}: %s
|
||||
{i18n("ID(长)")}: %s""" % (
|
||||
{i18n("Information")}: %s
|
||||
{i18n("Sampling rate")}: %s
|
||||
{i18n("Pitch guidance (f0)")}: %s
|
||||
{i18n("Version")}: %s
|
||||
{i18n("ID(short)")}: %s
|
||||
{i18n("ID(long)")}: %s""" % (
|
||||
cpt.get("name", i18n("Unknown")),
|
||||
datetime.fromtimestamp(float(cpt.get("timestamp", 0))),
|
||||
cpt.get("author", i18n("Unknown")),
|
||||
cpt.get("info", i18n("None")),
|
||||
cpt.get("sr", i18n("Unknown")),
|
||||
i18n("有") if cpt.get("f0", 0) == 1 else i18n("无"),
|
||||
i18n("Exist") if cpt.get("f0", 0) == 1 else i18n("Not exist"),
|
||||
cpt.get("version", i18n("None")),
|
||||
id,
|
||||
h,
|
||||
|
||||
Reference in New Issue
Block a user