You are here

public static function i18n_Strings_Test::stringCreateTranslation in Internationalization 6

Create and store one translation into the db

File

tests/i18n_strings.test, line 79

Class

i18n_Strings_Test

Code

public static function stringCreateTranslation($name, $lang, $length = 20) {
  $translation = $this
    ->randomName($length);
  if (self::stringSaveTranslation($name, $lang, $translation)) {
    return $translation;
  }
}