Localization Flash Builder 4.5



  • Flex localization (language support) for SVC

    • /locale is the folder to store your language file bundles, each locale having a different sub-folder, en_US, es_ES, de_DE or ru_RU ex. /locale/en_US/
    • in the locale sub-folders are located the .properties files called i18n.properties (UTF-8)
    • the resources are in the form of "key=value" ex. "start.camera.button=Start WebCam"; see the actual SVC language files here: http://www.videosoftware.pro/forum/THREAD-SVC-video-chat-translations

    IMPORTANT! In order to use localization, you need to make some changes in Flash Builder as described below.

    1. You need to update the compiler settings. In Flash Builder 4.5 open: Project > Properties and select Flex Compiler (on the left)

    2. under Additional compiler arguments: find (the default)

      -locale en_US

      and replace with

      -locale=en_US,es_ES,de_DE,ru_RU -allow-source-path-overlap=true -source-path=locale/{locale}

      *make sure you include all languages you are using, in this case English (en_US), Spanish (es_ES), German (de_DE) and Russian (ru_RU) - you may add others as well (remember to create the resources in their respective sub-folders - read above)

    3. Now, you need to create the localized framework resources if they don't already exist:

      • go to "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/" and check if the folder exists for the locale you wish to use, if not

      • open a terminal and type in the following:

        cd "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/bin"
        ./copylocale en_US hu_HU

        What you are doing above is:

        • going to the /bin folder in your Flex SDK installation folder
        • by runing copylocale.exe, you are copying the localized framework files from one locale to another, ex. copylocale en_US hu_HU will create the localized resources and folder for Hungarian, based on English
        • you may repeat the copy for each locale you wish to use
          To check if the folder for your new locale has been created, go back to "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/" and see if the new folder exists

      *on Windows, replace "/Applications/Adobe Flash Builder 4.5" with your Adobe Flash Builder installation directory and the terminal commands should look something like this:

      cd \Adobe Flash Builder 4.5\sdks\4.5.0\bin"
      copylocale en_US hu_HU



  • The ./copylocale en_US hu_HU should give you something similar to the quoted results shown below, after the copy is done, you may proceed with copying the next locale ex. ./copylocale en_US th_TH

    Yatko-21s-MacBook-Pro:~ yatko$ cd "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/bin"
    Yatko-21s-MacBook-Pro:bin yatko$ ./copylocale en_US hu_HU
    In Flex SDK at ./.. …

    Copying files from frameworks/projects/advancedgrids/bundles/en_US
    to frameworks/projects/advancedgrids/bundles/hu_HU:

    datamanagement.properties
    olap.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/advancedgrids_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/advancedgrids_rb.swc (4130 bytes)

    Copying files from frameworks/projects/airframework/bundles/en_US
    to frameworks/projects/airframework/bundles/hu_HU:

    aircontrols.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/airframework_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/airframework_rb.swc (3711 bytes)

    Copying files from frameworks/projects/automation/bundles/en_US
    to frameworks/projects/automation/bundles/hu_HU:

    automation.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/automation_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/automation_rb.swc (3384 bytes)

    Copying files from frameworks/projects/charts/bundles/en_US
    to frameworks/projects/charts/bundles/hu_HU:

    charts.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/charts_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/charts_rb.swc (3360 bytes)

    Copying files from frameworks/projects/framework/bundles/en_US
    to frameworks/projects/framework/bundles/hu_HU:

    collections.properties
    controls.properties
    core.properties
    effects.properties
    formatters.properties
    logging.properties
    modules.properties
    SharedResources.properties
    skins.properties
    states.properties
    styles.properties
    utils.properties
    validators.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/framework_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/framework_rb.swc (13122 bytes)

    Copying files from frameworks/projects/mx/bundles/en_US
    to frameworks/projects/mx/bundles/hu_HU:

    containers.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/mx_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/mx_rb.swc (3558 bytes)

    Copying files from frameworks/projects/osmf/bundles/en_US
    to frameworks/projects/osmf/bundles/hu_HU:

    osmf.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/osmf_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/osmf_rb.swc (4969 bytes)

    Copying files from frameworks/projects/rpc/bundles/en_US
    to frameworks/projects/rpc/bundles/hu_HU:

    messaging.properties
    rpc.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/rpc_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/rpc_rb.swc (7345 bytes)

    Copying files from frameworks/projects/spark/bundles/en_US
    to frameworks/projects/spark/bundles/hu_HU:

    components.properties
    layout.properties
    osmf.properties
    sparkEffects.properties
    textLayout.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/spark_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/spark_rb.swc (9010 bytes)

    Copying files from frameworks/projects/textLayout/bundles/en_US
    to frameworks/projects/textLayout/bundles/hu_HU:

    textLayout.properties

    Compiling resource bundle SWC frameworks/locale/hu_HU/textLayout_rb.swc:

    Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
    /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/hu_HU/textLayout_rb.swc (4094 bytes)
    Yatko-21s-MacBook-Pro:bin yatko$


 

Looks like your connection to H7 was lost, please wait while we try to reconnect.