diff --git a/locales/en/messages.gotext.json b/locales/en/messages.gotext.json index 19616d5..b339e20 100644 --- a/locales/en/messages.gotext.json +++ b/locales/en/messages.gotext.json @@ -13,7 +13,7 @@ "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "p.Client.GetName()" + "expr": "name" } ], "fuzzy": true @@ -46,6 +46,13 @@ "translatorComment": "The name of the button to continue the application authorization process", "fuzzy": true }, + { + "id": "version", + "message": "version", + "translation": "version", + "translatorComment": "Copied from source.", + "fuzzy": true + }, { "id": "Error", "message": "Error", diff --git a/locales/en/out.gotext.json b/locales/en/out.gotext.json index 98f834c..b339e20 100644 --- a/locales/en/out.gotext.json +++ b/locales/en/out.gotext.json @@ -13,7 +13,7 @@ "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "p.Client.GetName()" + "expr": "name" } ], "fuzzy": true diff --git a/locales/ru/messages.gotext.json b/locales/ru/messages.gotext.json index 804ab12..6d772b7 100644 --- a/locales/ru/messages.gotext.json +++ b/locales/ru/messages.gotext.json @@ -13,7 +13,7 @@ "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "p.Client.GetName()" + "expr": "name" } ] }, diff --git a/locales/ru/out.gotext.json b/locales/ru/out.gotext.json index 804ab12..6d772b7 100644 --- a/locales/ru/out.gotext.json +++ b/locales/ru/out.gotext.json @@ -13,7 +13,7 @@ "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "p.Client.GetName()" + "expr": "name" } ] }, diff --git a/web/authorize.qtpl b/web/authorize.qtpl index c484cd4..9e9cf1c 100644 --- a/web/authorize.qtpl +++ b/web/authorize.qtpl @@ -17,8 +17,8 @@ } %} {% func (p *AuthorizePage) Title() %} -{% if p.Client.GetName() == "" %} -{%= p.T("Authorize %s", p.Client.GetName()) %} +{% if name := p.Client.GetName(); name != "" %} +{%= p.T("Authorize %s", name) %} {% else %} {%= p.T("Authorize application") %} {% endif %} diff --git a/web/authorize.qtpl.go b/web/authorize.qtpl.go index ff5bfe0..c5f168c 100644 --- a/web/authorize.qtpl.go +++ b/web/authorize.qtpl.go @@ -43,12 +43,12 @@ func (p *AuthorizePage) StreamTitle(qw422016 *qt422016.Writer) { qw422016.N().S(` `) //line web/authorize.qtpl:20 - if p.Client.GetName() == "" { + if name := p.Client.GetName(); name != "" { //line web/authorize.qtpl:20 qw422016.N().S(` `) //line web/authorize.qtpl:21 - p.StreamT(qw422016, "Authorize %s", p.Client.GetName()) + p.StreamT(qw422016, "Authorize %s", name) //line web/authorize.qtpl:21 qw422016.N().S(` `)