Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def locales = [Locale.FRENCH, Locale.GERMAN, Locale.ENGLISH]
def keys = [ "s1", "s2", "s3", "s4" ]
[locales, keys].combinations().each{ loc, key ->
    def labels = ResourceBundle.getBundle("LabelsBundle", loc)
    println "Locale = ${loc.toString()}, key = $key, value = ${labels.getString(key)}"
}

...