mailcow/data/web/inc/lib/array_merge_real.php

15 lines
285 B
PHP
Raw Permalink Normal View History

introduce json-files for translations (#3120) * introduce json-files for translations to structure data and add ability using translation managements * Translated using Weblate (Italian) Currently translated at 40.1% (342 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/it/ * Translated using Weblate (Catalan) Currently translated at 58.3% (497 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/ca/ * Translated using Weblate (Polish) Currently translated at 45.3% (386 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/pl/ * Translated using Weblate (Latvian) Currently translated at 59.0% (503 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/lv/ * Translated using Weblate (Portuguese) Currently translated at 27.5% (234 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/pt/ * Translated using Weblate (Russian) Currently translated at 45.4% (387 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/ru/ * Translated using Weblate (German) Currently translated at 99.9% (851 of 852 strings) Translation: test/mailcow Translate-URL: http://192.168.178.22:8080/projects/test/mailcow/de/ * removed empty and unused text user_change_fn * removed empty and unused text user_change_fn II
2019-11-09 17:09:23 +08:00
<?php
function array_merge_real()
{
$output = [];
foreach (func_get_args() as $array) {
foreach ($array as $key => $value) {
$output[$key] = isset($output[$key]) ?
array_merge($output[$key], $value) : $value;
}
}
return $output;
}