From 1ad547fb653fd74227c6217ad11b32d9a8332f4e Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Sat, 25 Mar 2017 11:56:51 +0000 Subject: [PATCH] gui, script: Translate discovery popover and detect it in translate script Skip-check: pr-solaris GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4061 --- gui/default/assets/lang/lang-en.json | 1 + gui/default/index.html | 2 +- script/translate.go | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index 65136ad8f..ed3aeaa0e 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -30,6 +30,7 @@ "CPU Utilization": "CPU Utilization", "Changelog": "Changelog", "Clean out after": "Clean out after", + "Click to see discovery failures": "Click to see discovery failures", "Close": "Close", "Command": "Command", "Comment, when used at the start of a line": "Comment, when used at the start of a line", diff --git a/gui/default/index.html b/gui/default/index.html index d9ab71fac..2e613c295 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -511,7 +511,7 @@ {{discoveryTotal}}/{{discoveryTotal}} - + {{discoveryTotal-discoveryFailed.length}}/{{discoveryTotal}} diff --git a/script/translate.go b/script/translate.go index 358df70a3..e9988b2f1 100644 --- a/script/translate.go +++ b/script/translate.go @@ -50,6 +50,11 @@ func generalNode(n *html.Node, filename string) { if matches := attrRe.FindStringSubmatch(a.Val); len(matches) == 2 { translation(matches[1]) } + if a.Key == "data-content" && + !noStringRe.MatchString(a.Val) { + log.Println("Untranslated data-content string (" + filename + "):") + log.Print("\t" + a.Val) + } } } }