Hello!

Inherit from class WMessageResourceBundle and reimplement methods
resolveKey() and resolvePluralKey(). If original resolveKey() returns
false (which means key not found), you should return value of argument
"key".

Then call wApp->setLocalizedStrings(your class instance);

On Sat, Nov 17, 2012 at 3:31 PM, Bud <budmillw...@gmail.com> wrote:
> I find it odd that tr will "destroy" its input string by wrapping it with "??"
> when it cannot find a translation. I think it would be much better to simply
> return the input string. That would allow a working application in the 
> original
> language without any localization, with the possibility to localize the app 
> over
> time, even partially.
>
> Wrapping the string with "??" is probably the worst way to signal an error. I
> also think it would be safe to change this behavior, because it's probably
> unlikely that existing code checks for "??" to detect an error, and if there 
> is
> an error, the worst that will happen is that the native language string will 
> be
> used.
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to