Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sauntor committed Apr 11, 2017
1 parent 86f9b58 commit 274bc01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ val translator = Translator()
Is equal to:
```scala
val translator = Translator("cp://l10n/translator.xml")
// Or to this:
//val translator = Translator("l10n/translator.xml")
```
4. You can `include` another xml for translations by `<include>`tag :
```xml
<translator>
<include>http://localhost:9000/some/app/l10n/translations.xml</include>
<include>http://example.com:9000/some/app/l10n/translations.xml</include>
</translator>
```
> The `<include>` tag **does not** support **relative path**
> The `<include>` tag **does not** support **relative path**, i.e. you can't include a resource like `../some/other/module.xml`.
### About the `stranslator.Translator`
It's the core API for translating. You can initialize it with an URL, a class path resource which is start with "cp://" (no prefix is identical to it too),
Expand Down

0 comments on commit 274bc01

Please sign in to comment.