Skip to content

Commit

Permalink
Item1751: Escape single quotes in translated strings
Browse files Browse the repository at this point in the history
They are needed in French and other languages, and break the string is
enclosed in single quotes.
  • Loading branch information
gac410 committed Apr 7, 2015
1 parent bc64443 commit e33fc12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Macros/MAKETEXT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ s/~\[(\*,\_(\d+),[^,]+(,([^,]+))?)~\]/ _validate($1, $2, $max, $min, $param_erro

# do the magic:
my $result = $this->i18n->maketext( $str, @args );
$result =~ s/'/'/g;

# replace accesskeys:
$result =~
Expand Down

0 comments on commit e33fc12

Please sign in to comment.