summaryrefslogtreecommitdiff
path: root/vendor/symfony/translation/Loader/MoFileLoader.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-03 13:44:03 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-04 11:17:33 +0000
commit7def76c7d817a9ec81e9ae4a03a850514b1a2e1c (patch)
tree3fcf7e8236356daac44f7c17b8c0c5bc736a0926 /vendor/symfony/translation/Loader/MoFileLoader.php
parentadfb3656b8dac8505590490f4f8aaf4bea27881b (diff)
downloadwebtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.gz
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.bz2
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.zip
Working on upgrade wizard and testing
Diffstat (limited to 'vendor/symfony/translation/Loader/MoFileLoader.php')
-rw-r--r--vendor/symfony/translation/Loader/MoFileLoader.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/symfony/translation/Loader/MoFileLoader.php b/vendor/symfony/translation/Loader/MoFileLoader.php
index a1d7c4aef5..16a3dfc618 100644
--- a/vendor/symfony/translation/Loader/MoFileLoader.php
+++ b/vendor/symfony/translation/Loader/MoFileLoader.php
@@ -71,7 +71,7 @@ class MoFileLoader extends FileLoader
// offsetHashes
$this->readLong($stream, $isBigEndian);
- $messages = array();
+ $messages = [];
for ($i = 0; $i < $count; ++$i) {
$pluralId = null;
@@ -108,13 +108,13 @@ class MoFileLoader extends FileLoader
$translated = explode("\000", $translated);
}
- $ids = array('singular' => $singularId, 'plural' => $pluralId);
+ $ids = ['singular' => $singularId, 'plural' => $pluralId];
$item = compact('ids', 'translated');
if (\is_array($item['translated'])) {
$messages[$item['ids']['singular']] = stripcslashes($item['translated'][0]);
if (isset($item['ids']['plural'])) {
- $plurals = array();
+ $plurals = [];
foreach ($item['translated'] as $plural => $translated) {
$plurals[] = sprintf('{%d} %s', $plural, $translated);
}