function _locale_import_message
_locale_import_message($message, $file, $lineno = NULL)
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
File
- includes/locale.inc, line 984
- Administration functions for locale.module.
Code
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');
}
    © 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
    https://api.drupal.org/api/drupal/includes!locale.inc/function/_locale_import_message/7.x