Skip to content

Instantly share code, notes, and snippets.

@lutter
Last active May 26, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lutter/af8f6c8de5820eaf832a to your computer and use it in GitHub Desktop.
Save lutter/af8f6c8de5820eaf832a to your computer and use it in GitHub Desktop.
Test resources for i18n
;; File test/locales.clj
;; This file needs to be somewhere on the class path as 'locales.clj', could be in test/ or on dev-resources/
{
;; whatever test locales you want to use
:locales #{"en" "de"}
;; the Clojure namespace for the tests
:package "puppetlabs.i18n.core_test"
;; the name of the resource bundle; you'll need to have
;; one .properties file for each of the locales above, i.e.
;; TestMessages_en.properties and TestMessages_De.properties
;; Make sure those files are in the right place on the classpath
:bundle "puppetlabs.i18n.TestMessages"
}
#! /bin/bash
echo "Just testing gists as git repos"
# test/puppetlabs/i18n/TestMessages_en.properties
msg1=Das ist deutsch
# test/puppetlabs/i18n/TestMessages_en.properties
msg1=This is English
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment