Changeset 9441


Ignore:
Timestamp:
2005-03-16T10:39:56+13:00 (19 years ago)
Author:
mdewsnip
Message:

Small fix for dealing with strings containing "\n" characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/translator/submittranslations.pl

    r8922 r9441  
    437437    # Is this an icon macro??
    438438    if ($sourcechunk =~ /^\#\# (.*)/) {
     439        # Escape any newline characters so the source text is replaced correctly
     440        $sourcetext =~ s/\\/\\\\/g;
     441
    439442        # Build target chunk from the source chunk and the target text
    440         local $targetchunk = $sourcechunk;
     443        my $targetchunk = $sourcechunk;
    441444        $targetchunk =~ s/$sourcetext/$targettext/;
    442445
Note: See TracChangeset for help on using the changeset viewer.