Skip to content

Commit

Permalink
Update README.md to SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
pwener committed May 8, 2017
1 parent e2afd30 commit 6830cef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 59 deletions.
55 changes: 0 additions & 55 deletions README.markdown

This file was deleted.

23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ The common way to add a message(without translate) into vraptor is:
There is some ways to translate this. Basically what this pluggin makes is facilitate within standardized way of internationalize your messages, throught the method chain we could use just:

```java
flash.use("message").toShow("vraptor_awesome").redirectingTo(this).method();
flash.use("success").toShow("vraptor_awesome").redirectTo(this).method();
```

You could use a conditional method to evaluates if a message should be showed up:
You could use the Validator object too, using flashError object like:

```java
flash.when(true).use("message").toShow("vraptor_awesome").redirectingTo(this).method();
// "error" is one category
flashError.validate("error");
// Bellow we can put many errors
flashError.add("vraptor_awesome").onErrorRedirectTo(this).method();
...
```

## Configure your i18n
Expand All @@ -33,7 +37,18 @@ Each with the logic:
vraptor_awesome = Vraptor is awesome!
```

Veja também:
### Install

Add into your pom.xml:
```xml
<dependency>
<groupId>io.github.projecturutau</groupId>
<artifactId>vraptor-flash-i18n</artifactId>
<version>0.01-SNAPSHOT</version>
</dependency>
```

<i>Veja também:</i>

http://www.vraptor.org/pt/docs/guia-de-10-minutos/#arquivo-de-mensagens<br/>
http://blog.caelum.com.br/i18n-internacionalizacao-com-jstl/
Expand Down

0 comments on commit 6830cef

Please sign in to comment.