Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
c0c9f555
Commit
c0c9f555
authored
Dec 20, 2019
by
Sietse Ringers
Browse files
feat: irma scheme verify no longer warns about missing IssueURL tags in issuers
parent
92904ca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaconfig.go
View file @
c0c9f555
...
...
@@ -1436,12 +1436,15 @@ func (conf *Configuration) validateTranslations(file string, o interface{}) {
}
for
i
:=
0
;
i
<
v
.
NumField
();
i
++
{
if
v
.
Field
(
i
)
.
Type
()
==
reflect
.
TypeOf
(
TranslatedString
{})
{
val
:=
v
.
Field
(
i
)
.
Interface
()
.
(
TranslatedString
)
for
_
,
lang
:=
range
langs
{
if
_
,
exists
:=
val
[
lang
];
!
exists
{
conf
.
Warnings
=
append
(
conf
.
Warnings
,
fmt
.
Sprintf
(
"%s misses %s translation in <%s> tag"
,
file
,
lang
,
v
.
Type
()
.
Field
(
i
)
.
Name
))
}
field
:=
v
.
Field
(
i
)
name
:=
v
.
Type
()
.
Field
(
i
)
.
Name
if
field
.
Type
()
!=
reflect
.
TypeOf
(
TranslatedString
{})
||
name
==
"IssueURL"
{
continue
}
val
:=
field
.
Interface
()
.
(
TranslatedString
)
for
_
,
lang
:=
range
langs
{
if
_
,
exists
:=
val
[
lang
];
!
exists
{
conf
.
Warnings
=
append
(
conf
.
Warnings
,
fmt
.
Sprintf
(
"%s misses %s translation in <%s> tag"
,
file
,
lang
,
name
))
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment