Add a check for keys with spaces.
This commit is contained in:
parent
e596489f10
commit
9988f6a116
2 changed files with 15 additions and 0 deletions
|
|
@ -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'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue