Skip to content
Snippets Groups Projects
Commit 132d838f authored by JediKev's avatar JediKev Committed by Peter Rotich
Browse files

issue: Language Pack Locale Mismatch

This addresses issue 4325 where the Language Pack Locales are mismatched.
The Locale for the first language is displayed on the second language,
etc. This updates the `$manifest` variable to be set before we display
data so the correct `MANIFEST` file is included and all language data is
displayed correctly.
parent 565737a2
No related branches found
No related tags found
No related merge requests found
......@@ -183,16 +183,18 @@ if (!$lv) { ?>
$p = $info['path'];
if ($info['phar'])
$p = 'phar://' . $p;
$manifest = (file_exists($p . '/MANIFEST.php')) ? (include $p . '/MANIFEST.php') : null;
?>
<h3><strong><?php echo Internationalization::getLanguageDescription($info['code']); ?></strong>
&mdash; <?php echo $manifest['Language']; ?>
<?php if ($manifest) { ?>
&mdash; <?php echo $manifest['Language']; ?>
<?php } ?>
<?php if ($info['phar'])
Plugin::showVerificationBadge($info['path']); ?>
</h3>
<div><?php echo sprintf('<code>%s</code> — %s', $info['code'],
str_replace(ROOT_DIR, '', $info['path'])); ?>
<?php if (file_exists($p . '/MANIFEST.php')) {
$manifest = (include $p . '/MANIFEST.php'); ?>
<?php if ($manifest) { ?>
<br/> <?php echo __('Version'); ?>: <?php echo $manifest['Version'];
?>, <?php echo sprintf(__('for version %s'),
'v'.($manifest['Phrases-Version'] ?: '1.9')); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment