public function i18nStringTestCase::stringCreateTranslation in Internationalization 7
Create and store one translation into the db
File
- i18n_string/
i18n_string.test, line 201 - Test case for multilingual string
Class
- i18nStringTestCase
- Class for testing i18n_string and modules using these features
Code
public function stringCreateTranslation($name, $lang, $length = 20) {
$translation = $this
->randomName($length);
if (self::stringSaveTranslation($name, $lang, $translation)) {
return $translation;
}
}