Personal tools

Talk:Internationalization of Haskell programs using gettext

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Undo revision 38776 by Aufheben (Talk))
Current revision (09:45, 3 October 2011) (edit) (undo)
m (Talk:Internationalization of Haskell programs moved to Talk:Internationalization of Haskell programs using gettext: Allowing for listing other approaches to i18n on the general page.)
 

Current revision

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