MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Manual do Utilizador Página 116

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 115
TUTORIALS POINT
Simply Easy Learning Page 111
Create properties file containing the messages to be used in the application. We've created
aHelloWorldMessages.properties file under src > locale > en_US folder in our example.
enterName=Enter your name
clickMe=Click Me
applicationTitle=Application Internationalization Demonstration
greeting=Hello {0}
Create properties files containing translated values specific to locale. We've created
aHelloWorldMessages.properties file under src > locale > de_DE folder in our example. This file contains
translations in german language. _de specifies the german locale and we're going to support german language in
our application.
If you are creating properties file using Flash Builder then change the encoding of the file to UTF-8.Select the file
and then right-click in it to open its properties window.Select Text file encoding asOther UTF-8. Apply and Save the
change.
enterName=Geben Sie Ihren Namen
clickMe=Klick mich
applicationTitle=Anwendung Internationalisierung Demonstration
greeting=Hallo {0}
Step 3: Specify Compiler options
Right-click your project and select Properties.
Select Flex Compiler, and add the following to the Additional Compiler Arguments settings:
-locale en_US de_DE
Right-click your project and select Properties.
Select Flex Build Path, and add the following to the Source Path settings:
src\locale\{locale}
Internalization Example
Now Let us follow the following steps to test Internalization technique in a Flex application:
Step
Description
1
Create a project with a name HelloWorld under a package com.tutorialspoint.client as explained in
the Flex - Create Application chapter.
Vista de página 115

Comentários a estes Manuais

Sem comentários