Add a check for keys with spaces.

This commit is contained in:
Colin Kuskie 2009-02-21 22:19:46 +00:00
parent e596489f10
commit 9988f6a116
2 changed files with 15 additions and 0 deletions

View file

@ -76,6 +76,16 @@ SKIP: {
undef,
'Language check: key from non-existant file returns an empty string'
);
is(
$i18n->get('key with spaces in it','WebGUI','PigLatin'),
'Key Contained Spaces',
'keys with spaces work'
);
is(
$i18n->get('template url_addAlbum','Asset_Gallery'),
'Key Contained Spaces',
'keys with spaces work'
);
}

View file

@ -6,6 +6,11 @@ our $I18N = {
lastUpdated => 1141963573,
context => q|Test key for International macro test. DO NOT TRANSLATE|,
},
'key with spaces in it' => {
message => q|Key Contained Spaces|,
lastUpdated => 0,
}
};
1;