When, and where, does the PropertyPanel translate property names?
When you give a property a name that is a dictionary key, it automagically gets translated when the editor control is rendered on the page. I've been looking in the source now for over an hour, and I can't figure out when translation occurs. Maybe I'm stupid.
The reason I want to know, is that I want the same behavior to apply when rendering properties that contain dictionary keys, i.e. PreValue properties that should be localized. This is something I'm missing, and I thought the fastest way to get it fixed was to do it myself and the submit the patch to codeplex.
I'm thinking that once I find out where it occurs, I can implement it in all the places I'm missing, like as in macro parameter names as well.
Not really sure what you're looking for, do you mean when is the DataEditor part of a DataType accessed? If so that's in umbraco.controls.ContentControl.CreateChildControls (property is accessed) and then that goes to the addControlNew method which adds the DataEditor to the editing window.
When using it for the front end (well, pushing it into the XML cache to be used by the front end) that is from the DataType's Value property getter.
When, and where, does the PropertyPanel translate property names?
When you give a property a name that is a dictionary key, it automagically gets translated when the editor control is rendered on the page. I've been looking in the source now for over an hour, and I can't figure out when translation occurs. Maybe I'm stupid.
The reason I want to know, is that I want the same behavior to apply when rendering properties that contain dictionary keys, i.e. PreValue properties that should be localized. This is something I'm missing, and I thought the fastest way to get it fixed was to do it myself and the submit the patch to codeplex.
I'm thinking that once I find out where it occurs, I can implement it in all the places I'm missing, like as in macro parameter names as well.
Any suggestions on where I should look?
Not really sure what you're looking for, do you mean when is the DataEditor part of a DataType accessed? If so that's in umbraco.controls.ContentControl.CreateChildControls (property is accessed) and then that goes to the addControlNew method which adds the DataEditor to the editing window.
When using it for the front end (well, pushing it into the XML cache to be used by the front end) that is from the DataType's Value property getter.
Yes, that is exactly what I meant.
is working on a reply...