Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "DSDP/TML/Creating TmL Devices/I18N Properties file"
< DSDP | TML | Creating TmL Devices
(→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 <nowiki>#</nowiki> marks the beginning of a line coment. | + | * A "<nowiki>#</nowiki>" marks the beginning of a line coment. |
Revision as of 08:29, 23 December 2008
Contents
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.