incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1412181 - /incubator/flex/tlf/branches/3.0/textLayout/bundles/
Date Wed, 21 Nov 2012 16:35:25 GMT
Author: cframpton
Date: Wed Nov 21 16:35:24 2012
New Revision: 1412181

The localized don't belong here.  Higher layers like Flex provide localized
versions by using the TLF hook, GlobalSettings.resourceStringFunction to provide a function
to that is called to get the localized string.  This hook is set in RichEditableText.initClass().

The GlobalSettings.resourceStringFunction function takes two parameters, a resource id and
an optional array of parameters to substitute into the string.  The string is of form "Content
{0} more content {1}". The parameters are read from the optional array and substituted for
the bracketed substrings.  TLF provides a default implementation with default strings in English.
 Clients may replace this function with their own implementation for localization.


View raw message