Skip to main content

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.

Jump to: navigation, search

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

(New page: = English properties file = = Portuguese properties file =)
 
(Understanding the properties file)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= English properties file =
 
= English properties file =
  
 +
'''Filename''': SampleDeviceResources.properties ['''TBD''': Properly name this file]
 +
<code><pre>
 +
# 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
 +
</pre></code>
  
  
 
= Portuguese properties file =
 
= Portuguese properties file =
 +
 +
'''Filename''': SampleDeviceResources.properties ['''TBD''': Properly name this file]
 +
<code><pre>
 +
# 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
 +
</pre></code>
 +
 +
= Spanish properties file =
 +
 +
'''Filename''': SampleDeviceResources.properties ['''TBD''': Properly name this file]
 +
<code><pre>
 +
# 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
 +
</pre></code>
 +
 +
 +
= 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]<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 "'''='''".
 +
* A <nowiki>#</nowiki> marks the beginning of a line coment.

Latest revision as of 08:29, 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