Skip to content

Commit

Permalink
one more i18n method added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Kvasnovsky committed Oct 21, 2012
1 parent 2de9b71 commit aad24c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grails-vaadin7-plugin/VaadinGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class VaadinGrailsPlugin {
private static final String DEFAULT_SERVLET = "com.vaadin.grails.GrailsVaadinServlet";

// the plugin version
def version = "1.7.0-beta5.1"
def version = "1.7.0-beta5.2"

// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.0 > *"
Expand Down
6 changes: 3 additions & 3 deletions grails-vaadin7-plugin/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<plugin name='vaadin' version='1.7.0-beta5' grailsVersion='2.0 &gt; *'>
<plugin name='vaadin' version='1.7.0-beta5.1' grailsVersion='2.0 &gt; *'>
<author>Ondrej Kvasnovsky</author>
<authorEmail>ondrej.kvasnovsky@gmail.com</authorEmail>
<title>Vaadin 7 Plugin</title>
Expand All @@ -22,10 +22,10 @@
</repositories>
<dependencies>
<compile>
<dependency group='com.vaadin' name='vaadin-themes' version='7.0.0.beta5' />
<dependency group='com.vaadin' name='vaadin-client-compiled' version='7.0.0.beta5' />
<dependency group='com.vaadin' name='vaadin-server' version='7.0.0.beta5' />
<dependency group='com.vaadin' name='vaadin-client' version='7.0.0.beta5' />
<dependency group='com.vaadin' name='vaadin-client-compiled' version='7.0.0.beta5' />
<dependency group='com.vaadin' name='vaadin-themes' version='7.0.0.beta5' />
</compile>
</dependencies>
<plugins />
Expand Down
12 changes: 12 additions & 0 deletions grails-vaadin7-plugin/src/groovy/com/vaadin/grails/Grails.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ class Grails {
return res
}

/**
* Provides access to i18n values.
*
* @param key to localization property
* @param args arguments, e.g. "Hallo {0}"
* @return value from properties file or key (if key value is not found)
*/
public static String i18n(final String key, final Object[] args) {
String res = i18n(key, args, null, null)
return res
}

/**
* Provides access to i18n values.
*
Expand Down

0 comments on commit aad24c5

Please sign in to comment.