FreeCAD / FreeCAD-Homepage

The homepage at http://www.freecad.org
GNU Lesser General Public License v2.1
23 stars 37 forks source link

Duplicate Array Keys in $localeMap array of translation.php #129

Closed AdarshRawat1 closed 11 months ago

AdarshRawat1 commented 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.

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].

yorikvanhavre commented 11 months ago

I think this list was generated automatically... Anyway indeed it's worth fixing.