|
texts.properties filesThe files opencrx.text.properties and text.properties contain several strings used by JSP. These files must exist for each locale configured in openCRX. The following steps will guide you through the process of creating the files opencrx.text.properties and text.properties for the new locale xx_YY:
Use ISO 8859-1 character encoding for the files opencrx.text.properties and text.properties (the reason being that openCRX relies on the class java.util.Properties of the JavaT 2 platform). For characters that cannot be directly represented in this encoding, Unicode escapes are used; however, only a single 'u' character is allowed in an escape sequence. The JDK native2ascii tool can be used to convert property files to and from other character encodings (e.g. to convert a file texts.properties.uni to text.properties (ISO 8859-1 encoded) you could run native2ascii -encoding utf-8 texts.properties.uni texts.properties) Example 4-8. extract from the file ...\en_US\text.properties - each line containing a name-value-pair Locale=en_US dir=ltr LocaleTitle=English (United States) CancelTitle=Cancel OkTitle=OK SaveTitle=Save SortAscendingText=Click to sort ascending SortDescendingText=Click to sort descending DisableSortText=Click to disable sorting DeleteTitle=Delete EditTitle=Edit ... If you don't feel like translating all the values, you can just leave the template values unchanged. However, it is important that the files opencrx.text.properties and text.properties exist for all configured locales and the files must contain all name-value-pairs. |
||||||||||