public function LanguageHierarchyBaseTestCase::getLanguageIndicator in Language Hierarchy 7
Get a language indicator used on translate interface page.
Parameters
$langcode:
Return value
string
1 call to LanguageHierarchyBaseTestCase::getLanguageIndicator()
- LanguageHierarchyBaseTestCase::addStringTranslation in tests/
language_hierarchy.test - Translates given string into language of choice.
File
- tests/
language_hierarchy.test, line 157 - Tests for Language Hierarchy module.
Class
- LanguageHierarchyBaseTestCase
- Base class for Language Hierarchy module tests.
Code
public function getLanguageIndicator($langcode) {
// This is the language indicator on the translation search screen for
// untranslated strings. Copied straight from locale.inc.
return "<em class=\"locale-untranslated\">{$langcode}</em> ";
}