function _locale_import_message

Same name and namespace in other branches
  1. 7.x drupal-7.x/includes/locale.inc \_locale_import_message()

Sets an error message occurred during locale file parsing.

Parameters

$message: The message to be translated

$file: Drupal file object corresponding to the PO file to import

$lineno: An optional line number argument

Related topics

1 call to _locale_import_message()
_locale_import_read_po in drupal-6.x/includes/locale.inc
Parses Gettext Portable Object file into an array

Archivo

drupal-6.x/includes/locale.inc, line 1241
Administration functions for locale.module.

Código

function _locale_import_message($message, $file, $lineno = NULL) {
  $vars = array('%filename' => $file->filename);
  if (isset($lineno)) {
    $vars['%line'] = $lineno;
  }
  $t = get_t();
  drupal_set_message($t($message, $vars), 'error');
}