You are here

public function i18n_string_object::check_translate_access in Internationalization 7

Check whether there is any problem for the user to translate a this string.

Parameters

$account: Optional user account, defaults to current user.

Return value

None if the user has access to translate the string. Error message if the user cannot translate that string.

File

i18n_string/i18n_string.inc, line 315
API for internationalization strings

Class

i18n_string_object
String object that contains source and translations.

Code

public function check_translate_access($account = NULL) {
  return i18n_string_translate_check_string($this, $account);
}