Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Properties File Support

Maximiliano Fierro edited this page Jun 7, 2011 · 2 revisions

Ext.i18n.Bundle

Properties File Support

We have implemented Properties File reading support to keep it as closer as possible with Java counterpart. So, right now we can have different .properties files structures. The following is a list of what is already working:

From [Java Documentation][http://download.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.Reader)]

"Properties are processed in terms of lines. There are two kinds of line, natural lines and logical lines. A natural line is defined as a line of characters that is terminated either by a set of line terminator characters (\n or \r or \r\n) or by the end of the stream. A natural line may be either a blank line, a comment line, or hold all or some of a key-element pair. A logical line holds all the data of a key-element pair, which may be spread out across several adjacent natural lines by escaping the line terminator sequence with a backslash character . Note that a comment line cannot be extended in this manner; every natural line that is a comment must have its own comment indicator, as described below. Lines are read from input until the end of the stream is reached."

Clone this wiki locally