Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Localization bug?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00931373
Message ID:
00931802
Vues:
20
Shawn,

>I think I found a bug, or the feature didn't work as I thought it would.
>
>If you use the localization feature and select Localize Messages
>
>If the key is not the same as the MessageText then the translated box displays the key versus the original MessageText value.

The way the Message Manager is designed, if it can't find the specified value, it returns the key to you. In most cases (such as with label text) this works just fine. Also with MM .NET Framework-level messages, we've also taken the approach of making the key value the same as the original language text which ends up eliminating coding redundancies. For example, rather than using one text value for the key and another for the message, you can call the MM .NET Windows or Web Form GetMessage() method and it will return the text you pass it if localization is turned off or if the message is not foudn in the database.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform