Commit c9f10863 authored by Dries's avatar Dries
Browse files

- Patch #685908 by Gábor Hojtsy: fixed msgctxts not being in the right place.

parent 72b60ed4
......@@ -1321,10 +1321,10 @@ function _locale_export_po_generate($language = NULL, $strings = array(), $heade
if ($string['comment']) {
$output .= '#: ' . $string['comment'] . "\n";
}
$output .= 'msgid ' . _locale_export_string($string['source']);
if (!empty($string['context'])) {
$output .= 'msgctxt ' . _locale_export_string($string['context']);
}
$output .= 'msgid ' . _locale_export_string($string['source']);
if (!empty($string['plural'])) {
$plural = $string['plural'];
$output .= 'msgid_plural ' . _locale_export_string($strings[$plural]['source']);
......@@ -2068,4 +2068,3 @@ function locale_get_localized_date_format($languages) {
return $formats;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment