Last active
May 26, 2016 17:16
-
-
Save lutter/af8f6c8de5820eaf832a to your computer and use it in GitHub Desktop.
Test resources for i18n
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo "Just testing gists as git repos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test/puppetlabs/i18n/TestMessages_en.properties | |
msg1=Das ist deutsch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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