t returns the translated version of the given string, based on the languages configured by the client.
(originalString string)
| 660 | |
| 661 | // t returns the translated version of the given string, based on the languages configured by the client. |
| 662 | func (client *Client) t(originalString string) string { |
| 663 | languageManager := client.server.Config().languageManager |
| 664 | if !languageManager.Enabled() { |
| 665 | return originalString |
| 666 | } |
| 667 | return languageManager.Translate(client.Languages(), originalString) |
| 668 | } |
| 669 | |
| 670 | // main client goroutine: read lines and execute the corresponding commands |
| 671 | // `proxyLine` is the PROXY-before-TLS line, if there was one |
no test coverage detected