Hi,
then ZenPhoto version is: Zenphoto-Version 1.4.1.1 [7645] (Offizielle Version)
I checked a few things and figured out that Zenphoto is writing the localized data to the database.
E.g.:
When you set custom_data and click save and after that you do a:
select * from zp_options where name="search_fields";
You got this back:
`
+----+---------+---------------+-----------------------------------------------------------------------------------
----------------------------+-------+-----------------------------------------+
| id | ownerid | name | value
| theme | creator |+----+---------+---------------+-----------------------------------------------------------------------------------
----------------------------+-------+-----------------------------------------+| 47 | 0 | search_fields | Ausrichtung,Belichtungskorrektur,Benutzerdefinierte_-_Daten_--_3A,Copyright,Schlag
w_--_C3_--_B6rter_tag_match | NULL | zp-core/setup/setup-option-defaults.php |+----+---------+---------------+-----------------------------------------------------------------------------------
----------------------------+-------+-----------------------------------------+1 row in set (0.00 sec)
`
So the localized description has been stored to the database (the value instead of the key).
I went through the class-search.php and two other files and checked where the arrays have been flipped one time to much, changed it, and now the localized description is used together with the keys in the background.
So if you store "custom_data" now, you get this:
`
id | ownerid | name | value | theme | creator |
+----+---------+---------------+----------------------------------------------+-------+-----------------------------------------+
| 47 | 0 | search_fields | copyright,country,custom_data,tags_tag_match | NULL | zp-core/setup/setup-option-defaults.php |
+----+---------+---------------+----------------------------------------------+-------+-----------------------------------------+
1 row in set (0.01 sec)
`
And it works.
I also had to add a stringtolower() when the strings returned from the database and the ones from the $_zp_exifvars are compared so that the boxes are checked in the settings tab.
If you like I can create a diff against the original source and post it here/send it per mail/whatsoever ...
Thanks!
KR,
Grimeton