You are here

protected function i18n_string_object_wrapper::localize_access in Internationalization 7

Translate access (localize strings)

Overrides i18n_object_wrapper::localize_access

File

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

Class

i18n_string_object_wrapper
String object wrapper

Code

protected function localize_access() {

  // We could check also whether the object has strings to translate:
  //   && $this->get_strings(array('empty' => TRUE))
  // However it may be better to display the 'No available strings' message
  // for the user to have a clue of what's going on. See i18n_string_translate_page_object()
  return user_access('translate interface') && user_access('translate user-defined strings');
}