function locale_test_plural_format_page in Drupal 7
Returns markup for locale_get_plural testing.
Return value
array
2 string references to 'locale_test_plural_format_page'
- LocalePluralFormatTest::testGetPluralFormat in modules/
locale/ locale.test - Tests locale_get_plural() functionality.
- locale_test_menu in modules/
locale/ tests/ locale_test.module - Implements hook_menu().
File
- modules/
locale/ tests/ locale_test.module, line 141 - Mock module for locale layer tests.
Code
function locale_test_plural_format_page() {
$tests = _locale_test_plural_format_tests();
$result = array();
foreach ($tests as $test) {
$string_param = array(
'@lang' => $test['language'],
'@locale_get_plural' => locale_get_plural($test['count'], $test['language']),
);
$result[] = array(
'#prefix' => '<br/>',
'#markup' => format_string('Language: @lang, locale_get_plural: @locale_get_plural.', $string_param),
);
}
return $result;
}