Changeset 9362


Ignore:
Timestamp:
2005-03-10T12:39:05+13:00 (19 years ago)
Author:
mdewsnip
Message:

Added a check to prevent errors when three conditions are met: a) no "-language" option is specified to pluginfo.pl etc, b) no strings_en.rb file exists, and c) the string does not appear in the strings.rb file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/gsprintf.pm

    r7828 r9362  
    151151{
    152152    # Ensure the English resource bundle hasn't already been loaded
    153     if ($specialresourcebundle{"{Language.code}"} eq "en") {
     153    if (%specialresourcebundle && $specialresourcebundle{"{Language.code}"} eq "en") {
    154154    %englishresourcebundle = %specialresourcebundle;
    155155    $englishoutputencoding = $specialoutputencoding;
Note: See TracChangeset for help on using the changeset viewer.