Hi guys,
Thirst of all, I would like to thank you for your hard work on this great tool. I'm using it for some time in an application that I'm working on and it fulfilled all my requirements until now.
So, let's get to the subject:
I'm dynamically creating a toolbar for my application (VS2010 + WPF + PRISM + C#). For each toolbar button, the Content and the Tooltip are bounded to the VM properties using LocExtension/LocBinding objects. All the buttons have some content, so no problem in here, but only some of the buttons have a tooltip. For those that don't have a tooltip, the underlying VM property was returning an empty string and no tooltip was displayed at runtime when using version 2.1.3 of the localization library. Now I'm using the 2.2.0 version and there is a tooltip also for the buttons even that they shouldn't have one. It says just "Key:".
I made some quick investigations and I suspect that this is caused by the fix for issue #9291.
The __FormatOutput__ method in the __LocExtension__ class, just before returning, has this code:
```
if (targetType == typeof(String) || targetType == typeof(object))
result = "Key: " + key;
```
Do you think that's possible for you to update the above condition with an extra check for non-empty key values in a future version? Is there any other solution to accomplish my goal and I'm missing that?
Thanks in advance,
Bogdan
Thirst of all, I would like to thank you for your hard work on this great tool. I'm using it for some time in an application that I'm working on and it fulfilled all my requirements until now.
So, let's get to the subject:
I'm dynamically creating a toolbar for my application (VS2010 + WPF + PRISM + C#). For each toolbar button, the Content and the Tooltip are bounded to the VM properties using LocExtension/LocBinding objects. All the buttons have some content, so no problem in here, but only some of the buttons have a tooltip. For those that don't have a tooltip, the underlying VM property was returning an empty string and no tooltip was displayed at runtime when using version 2.1.3 of the localization library. Now I'm using the 2.2.0 version and there is a tooltip also for the buttons even that they shouldn't have one. It says just "Key:".
I made some quick investigations and I suspect that this is caused by the fix for issue #9291.
The __FormatOutput__ method in the __LocExtension__ class, just before returning, has this code:
```
if (targetType == typeof(String) || targetType == typeof(object))
result = "Key: " + key;
```
Do you think that's possible for you to update the above condition with an extra check for non-empty key values in a future version? Is there any other solution to accomplish my goal and I'm missing that?
Thanks in advance,
Bogdan