my $language = shift;
my $word = shift;
+ if (defined($language) and $language eq 'file') {
+ # this references the translations file
+ return undef;
+ }
+
my $translation = config_get_key3('translations', $language, $word);
if (!defined($translation)) {
return undef;
@translation = split(/\|/, $translation);
}
+ # get rid of the translations file
+ @translation = grep { $_ ne 'file' } @translation;
+
return @translation;
}
# find a word in one or all languages
foreach my $tmp (@languages) {
+ if (defined($tmp) and $tmp eq 'file') {
+ # don't try the translations file
+ next;
+ }
if (!defined($language) or (defined($language) and $language eq $tmp)) {
my @tmp2 = config_get_keys2('translations', $tmp);
foreach my $tmp2 (@tmp2) {