keera-hails-i18n 0.7.0 → 0.8.0
raw patch · 2 files changed
+14/−5 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- keera-hails-i18n.cabal +5/−5
- src/Hails/I18N/Language.hs +9/−0
keera-hails-i18n.cabal view
@@ -6,7 +6,7 @@ build-type: Simple name: keera-hails-i18n-version: 0.7.0+version: 0.8.0 author: Ivan Perez maintainer: support@keera.co.uk homepage: http://www.keera.co.uk/blog/community/@@ -56,7 +56,7 @@ Hails.I18N.Language build-depends:- base >= 4 && < 5+ base >= 4 && < 5 , directory , filepath , glib@@ -94,8 +94,8 @@ buildable: False else build-depends:- base- , hlint >= 1.7+ base >= 4 && < 5+ , hlint >= 1.7 -- Verify that the code is thoroughly documented test-suite haddock-coverage@@ -119,7 +119,7 @@ buildable: False else build-depends:- base >= 4 && < 5+ base >= 4 && < 5 , directory , filepath , process
src/Hails/I18N/Language.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} -- | Install/load the right Gettext files for your chosen language and -- application. --@@ -35,8 +36,16 @@ unless (null lang) $ E.handle (anyway (return ())) $ do setLocale LC_ALL (Just lang) setEnv "LANGUAGE" lang+#if MIN_VERSION_hgettext(0,1,5) bindTextDomain appName $ Just "."+#else+ bindTextDomain appName "."+#endif+#if MIN_VERSION_hgettext(0,1,6) textDomain $ Just appName+#else+ textDomain appName+#endif where