MCPcopy
hub / github.com/syncthing/syncthing / inTranslate

Function inTranslate

script/translate.go:96–107  ·  view source on GitHub ↗
(n *html.Node, translationId string, filename string)

Source from the content-addressed store, hash-verified

94}
95
96func inTranslate(n *html.Node, translationId string, filename string) {
97 if n.Type == html.TextNode {
98 translation(translationId, n.Data)
99 } else {
100 log.Println("translate node with non-text child < (" + filename + ")")
101 log.Println(n)
102 }
103 if n.FirstChild != nil {
104 log.Println("translate node has children (" + filename + "):")
105 log.Println(n.Data)
106 }
107}
108
109func isTranslated(id string) bool {
110 namespace := trans

Callers 1

generalNodeFunction · 0.85

Calls 1

translationFunction · 0.70

Tested by

no test coverage detected