| 7 locale.test | LocaleImportFunctionalTest::testLanguageContext() |
| 8 locale.test | LocaleImportFunctionalTest::testLanguageContext() |
Test msgctxt context support.
File
- modules/
locale/ locale.test, line 1009 - Tests for locale.module.
Code
function testLanguageContext() {
// Try importing a .po file.
$this->importPoFile($this->getPoFileWithContext(), array(
'langcode' => 'hr',
));
$this->assertIdentical(t('May', array(), array('langcode' => 'hr', 'context' => 'Long month name')), 'Svibanj', t('Long month name context is working.'));
$this->assertIdentical(t('May', array(), array('langcode' => 'hr')), 'Svi.', t('Default context is working.'));
}
Login or register to post comments