Changeset 4179


Ignore:
Timestamp:
2003-04-17T14:04:58+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up one function.

File:
1 edited

Legend:

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

    r4164 r4179  
    590590sub core_or_auxiliary_macro
    591591{
    592     my ($sourcelang, $sourcekey) = @_;
     592    my ($language, $sourcekey) = @_;
    593593
    594594    my $macrofile = $sourcekey;
    595595    $macrofile =~ s/^([^:]+)::(.*)/$1/;
    596596
    597     if ($macrofile eq ($sourcelang . ".dm")) {
     597    if ($macrofile eq ($language . ".dm")) {
    598598    return "1";  # Core macro
    599599    }
    600     if ($macrofile eq ($sourcelang . "2.dm")) {
     600    if ($macrofile eq ($language . "2.dm")) {
    601601    return "2";  # Auxiliary macro
    602602    }
Note: See TracChangeset for help on using the changeset viewer.