Personal tools

Talk:Internationalization of Haskell programs using gettext

From HaskellWiki

Revision as of 09:45, 3 October 2011 by YitzGale (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
I think the gettext function
should add decodeString from Codec.Binary.UTF8.String for many locales to be displayed correctly, such as zh_CN.
import Codec.Binary.UTF8.String (decodeString)
__ :: String -> String
__ = decodeString . unsafePerformIO . getText

See my post on "stackoverflow".