You are here

function i18n_string_locale_translate_edit_form_validate in Internationalization 7

Process string editing form validations.

If it is an allowed format, skip default validation, the text will be filtered later

File

i18n_string/i18n_string.pages.inc, line 400
Internationalization (i18n) package - translatable strings reusable admin UI.

Code

function i18n_string_locale_translate_edit_form_validate($form, &$form_state) {
  if (empty($form_state['values']['i18n_string'])) {

    // If not i18n string use regular locale validation.
    $copy_state = $form_state;
    locale_translate_edit_form_validate($form, $copy_state);
  }
}