Changeset 6945 for trunk/gsdl/bin/script


Ignore:
Timestamp:
2004-03-07T15:18:16+13:00 (20 years ago)
Author:
mdewsnip
Message:

Updated the resource bundle handling code some more. Strings are first looked for in a language specific resource bundle (if specified). If not found there, the default resource bundle is checked. If still not found, the English resource bundle is checked. These resource bundles are loaded on an as-needed basis.

Location:
trunk/gsdl/bin/script
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/buildcol.pl

    r6926 r6945  
    238238    }
    239239
    240     # Load the appropriate resource bundle for the language specified
    241     # If $language is not defined, the default resource bundle will be loaded
    242     &gsprintf::load_resource_bundle($language);
     240    # If $language has been specified, load the appropriate resource bundle
     241    # (Otherwise, the default resource bundle will be loaded automatically)
     242    if ($language) {
     243    &gsprintf::load_language_specific_resource_bundle($language);
     244    }
    243245
    244246    if ($xml) {
  • trunk/gsdl/bin/script/classinfo.pl

    r6932 r6945  
    9999    }
    100100
    101     # Load the appropriate resource bundle for the language specified
    102     # If $language is not defined, the default resource bundle will be loaded
    103     &gsprintf::load_resource_bundle($language);
     101    # If $language has been specified, load the appropriate resource bundle
     102    # (Otherwise, the default resource bundle will be loaded automatically)
     103    if ($language) {
     104    &gsprintf::load_language_specific_resource_bundle($language);
     105    }
    104106
    105107    # Get classifier
  • trunk/gsdl/bin/script/exportcol.pl

    r6926 r6945  
    8888    }
    8989
    90     # Load the appropriate resource bundle for the language specified
    91     # If $language is not defined, the default resource bundle will be loaded
    92     &gsprintf::load_resource_bundle($language);
     90    # If $language has been specified, load the appropriate resource bundle
     91    # (Otherwise, the default resource bundle will be loaded automatically)
     92    if ($language) {
     93    &gsprintf::load_language_specific_resource_bundle($language);
     94    }
    9395
    9496    if ($xml) {
  • trunk/gsdl/bin/script/import.pl

    r6926 r6945  
    248248    }
    249249
    250     # Load the appropriate resource bundle for the language specified
    251     # If $language is not defined, the default resource bundle will be loaded
    252     &gsprintf::load_resource_bundle($language);
     250    # If $language has been specified, load the appropriate resource bundle
     251    # (Otherwise, the default resource bundle will be loaded automatically)
     252    if ($language) {
     253    &gsprintf::load_language_specific_resource_bundle($language);
     254    }
    253255
    254256    if ($xml) {
  • trunk/gsdl/bin/script/mkcol.pl

    r6926 r6945  
    211211    &parse_args (\@ARGV);
    212212
    213     # Load the appropriate resource bundle for the language specified
    214     # If $language is not defined, the default resource bundle will be loaded
    215     &gsprintf::load_resource_bundle($language);
     213    # If $language has been specified, load the appropriate resource bundle
     214    # (Otherwise, the default resource bundle will be loaded automatically)
     215    if ($language) {
     216    &gsprintf::load_language_specific_resource_bundle($language);
     217    }
    216218
    217219    if ($xml) {
  • trunk/gsdl/bin/script/pluginfo.pl

    r6932 r6945  
    8282    }
    8383
    84     # Load the appropriate resource bundle for the language specified
    85     # If $language is not defined, the default resource bundle will be loaded
    86     &gsprintf::load_resource_bundle($language);
     84    # If $language has been specified, load the appropriate resource bundle
     85    # (Otherwise, the default resource bundle will be loaded automatically)
     86    if ($language) {
     87    &gsprintf::load_language_specific_resource_bundle($language);
     88    }
    8789
    8890    my $plugin = shift (@ARGV);
Note: See TracChangeset for help on using the changeset viewer.