mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 23:30:29 +01:00
Fix values in parentheses
This commit is contained in:
@@ -508,10 +508,12 @@ sub translated_substitute
|
||||
$translated =~ s/(^[ ]+\$)/\$/gi;
|
||||
|
||||
# Get rid from undesirable spaces in parentheses
|
||||
$translated =~ s/\([ ]+\$(\d+)[ ]*\)/(\$$1)/gi;
|
||||
$translated =~ s/\([ ]+\$(\d+.*?)\)/(\$@{[trim($1)]})/gi;
|
||||
|
||||
# Print actual values with percent sign
|
||||
$translated =~ s/\([ ]+\$(\d+)[ ]*%\)/(\$$1 %)/gi;
|
||||
|
||||
# There are different typeы of parentheses in eastern languages
|
||||
# There are different types of parentheses in eastern languages
|
||||
$translated =~ s/\([ ]+\$(\d+)[ ]*\)/(\$$1)/gi;
|
||||
|
||||
# The following, is abnormal way to make things work, around of the bugs produced by Google Translate API for (bg).
|
||||
|
||||
Reference in New Issue
Block a user