Closed AdarshRawat1 closed 11 months ago
The array $localeMap of translation.php file contains duplicate keys for certain language codes. If we assign multiple values to the same key in PHP, the previous value gets overwritten.
$localeMap
translation.php
https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php?#L11-L12 https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php#L29-L30 https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php#L41-L42 To resolve this issue, you can either remove the duplicate keys or modify the array structure to accommodate multiple values for the same key [nested arrays].
I think this list was generated automatically... Anyway indeed it's worth fixing.
The array
$localeMap
oftranslation.php
file contains duplicate keys for certain language codes. If we assign multiple values to the same key in PHP, the previous value gets overwritten.https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php?#L11-L12 https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php#L29-L30 https://github.com/FreeCAD/FreeCAD-Homepage/blob/0fd198c33096597a27f7dba39cda317d0a202803/translation.php#L41-L42 To resolve this issue, you can either remove the duplicate keys or modify the array structure to accommodate multiple values for the same key [nested arrays].