_locale_import_message

Versions
5 – 7
_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

Code

includes/locale.inc, line 1222

<?php
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');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.