Personal tools

Talk:Internationalization of Haskell programs using gettext

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Removing all content from page)
(Undo revision 38776 by Aufheben (Talk))

Revision as of 07:32, 16 February 2011

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".