Skip to content

Commit 9005511

Browse files
author
Eduardo Niehues
committed
Translate
1 parent deb5226 commit 9005511

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/main/java/br/com/eits/common/application/i18n/MessageSourceHolder.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,25 @@ public static void setMessageSource( MessageSource messageSource )
119119
{
120120
MessageSourceHolder.messageSource = messageSource;
121121
}
122+
123+
/**
124+
*
125+
* @param code
126+
* @return
127+
*/
128+
public static String translate( String code )
129+
{
130+
return getMessage( code );
131+
}
132+
133+
/**
134+
*
135+
* @param code
136+
* @param args
137+
* @return
138+
*/
139+
public static String translate( String code, Object... args )
140+
{
141+
return getMessage( code, args );
142+
}
122143
}

0 commit comments

Comments
 (0)