Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "DSDP/TML/Creating TmL Devices/I18N Properties file"

(Understanding the properties file)
(Understanding the properties file)
Line 42: Line 42:
 
* ['''TBD''' Explain the header: NLS_MESSAGEFORMAT_VAR and NLS_ENCODING=UTF-8]<br />Talk about the special meaning of the comment in this case.
 
* ['''TBD''' Explain the header: NLS_MESSAGEFORMAT_VAR and NLS_ENCODING=UTF-8]<br />Talk about the special meaning of the comment in this case.
 
* On the constants attribution section, each constant is defined in a separate line.<br />Use a blank space after the attribution sign "'''='''".
 
* On the constants attribution section, each constant is defined in a separate line.<br />Use a blank space after the attribution sign "'''='''".
* A <pre>#</pre> marks the beginning of a line coment.
+
* A <nowiki>#</nowiki> marks the beginning of a line coment.

Revision as of 08:28, 23 December 2008

English properties file

Filename: SampleDeviceResources.properties [TBD: Properly name this file]

# NLS_MESSAGEFORMAT_VAR
# NLS_ENCODING=UTF-8

TML_Device_Plugin_Name= SampleDevice Device Plugin (Incubation)
TML_Error= A unexpected exception was found in TmL framework
TML_Resource_Not_Available= Resource not available


Portuguese properties file

Filename: SampleDeviceResources.properties [TBD: Properly name this file]

# NLS_MESSAGEFORMAT_VAR
# NLS_ENCODING=UTF-8

TML_Device_Plugin_Name= Plugin de Device SampleDevice (Incubação)
TML_Error= Uma exceção inesperada foi encontrada no framework TmL
TML_Resource_Not_Available= Recurso não disponível

Spanish properties file

Filename: SampleDeviceResources.properties [TBD: Properly name this file]

# NLS_MESSAGEFORMAT_VAR
# NLS_ENCODING=UTF-8

TML_Device_Plugin_Name= Plugin de Device SampleDevice (Incubación)
TML_Error= Una excepción inesperada fue encontrada en el framework TmL
TML_Resource_Not_Available= Recurso no disponible


Understanding the properties file

  • The properties file is divided in two sections: the header and the constants attribution.
  • [TBD Explain the header: NLS_MESSAGEFORMAT_VAR and NLS_ENCODING=UTF-8]
    Talk about the special meaning of the comment in this case.
  • On the constants attribution section, each constant is defined in a separate line.
    Use a blank space after the attribution sign "=".
  • A # marks the beginning of a line coment.

Back to the top