Previous Topic

Next Topic

Book Contents

Book Index

messages_xx.properties File

The messages_xx.properties file has the syntax of Java property files. Lines should be shown as follows (except for lines starting with #, which are comments):

key=value

The best way to produce your own localization is to make a copy of the default messages.properties file and translate the value strings, without changing the keys (which are defined by MathFlow and must remain unchanged to work.) Strings that are not translated default to English. In MathFlow's files, the English string is the key, with special characters (=, :, spaces, \) escaped and preceded by the Java package where it is used. For example:

com.dessci.mathflow.sdk.composer.options\ include\:=options include:

(where the string is "options include:", used in the com.dessci.mathflow.sdk.composer package)

Some values have {0} or {0} and {1} in them. These are replaced by MathFlow with words that should not be translated, and need to be placed (as {0}, {1}) within your translated string in the appropriate location. For example, the entry

webeq3.editor.Could\ not\ create\ directory\ {0}\:=Could not create directory {0}:

translated into Spanish would appear in a localized file as

webeq3.editor.Could\ not\ create\ directory\ {0}\:=El directorio {0} no se ha podido crear:

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.