0 Replies Latest reply on Nov 11, 2009 12:56 PM by GordonSmith

    [svn:fx-trunk] 11669: Spark now provides localized RTE messages for TLF.

    GordonSmith Level 4

      Revision: 11669

      Author:   gosmith@adobe.com

      Date:     2009-11-11 12:56:09 -0800 (Wed, 11 Nov 2009)

       

      Log Message:

      ***********

      Spark now provides localized RTE messages for TLF.

       

      TLF is a layer below Flex and doesn't have a localization scheme like Flex's ResourceManager; it just has hard-coded English RTE messages. But it now also has a hook function (GlobalSettings.getResourceStringFunction) that higher layers like Flex can set to provide localized messages instead.

       

      Spark.swc now has a new resource bundle named "textLayout" with these RTE messages for TLF, copied from TLF's GlobalSettings file. And Spark.swc implements the hook in TextUtil.getResourceString().

       

      Various classes that use TLF -- such as RichText, RichEditableText, TextFlowUtils, and UIFTETextField -- set the hook function, typically in their class initialization code. UIFTETextField didn't have class init code so I just do it repeatedly in the constuctor?\226?\128?\166 it's just an assignment statement and should be fast enough.

       

      QE notes: None

      Doc notes: None

      Bugs: SDK-23782

      Reviewer: Carol

      Tests run: ant checkintests

      Is noteworthy for integration: Need localization of this new resource bundle

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-23782

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/build.xml

          flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextFlowUtil.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as

       

      Added Paths:

      ***********

          flex/sdk/trunk/frameworks/projects/spark/bundles/da_DK/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/de_DE/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/es_ES/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/fi_FI/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/fr_FR/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/it_IT/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/ja_JP/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/ko_KR/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/nb_NO/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/nl_NL/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/pt_BR/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/ru_RU/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/sv_SE/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/zh_CN/textLayout.properties

          flex/sdk/trunk/frameworks/projects/spark/bundles/zh_TW/textLayout.properties