Bug #1443: Fix gettext keys extractor
Improve the regex taking into account possible spaces to extract the strings in
the Hibernate validation annotations.
Before this patch only the next lines would be marked to be translated:
@NotNull(message="code not specified"
However, next line has to be marked to be translated too:
@NotNull(message = "code not specified")
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
b5a4f038f3
commit
30292b062a
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ sub parse_hibernate_validations()
|
|||
next;
|
||||
}
|
||||
# First line
|
||||
if ($line =~ /\@\w+\(message=\"(.*?)\"/) {
|
||||
if ($line =~ /\@\s*\w+\s*\(\s*message\s*=\s*\"(.*?)\s*\"/) {
|
||||
$msgid = "\"$1\"";
|
||||
# Line ends with a )
|
||||
if ($line =~ /\)\s*$/) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue