[gnuwin32 - Help] [Help] Gettext and VS8

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4647235
By: christianhan

I'm currently trying to create a project in Visual C++ on MFC that uses .po
files to handle its translations. I have tried to integrate GnuWin32 Gettext
but have met with several obstacles.

1. My program can set it's language independent of the system language. I've
using setlocale(LC_ALL, "ja_JP") but the language doesn't change. I've treid
putting the mo files files in several places but to no success.

2. The gettext function returns a char*. If I pass in a unicode string such
as 'こんにちは世界', i will get '‚±‚ñ‚É‚¿‚͐¢ŠE'. I've
tried to use bind_textdomain_codeset("sample", "UTF-8") but it doesn't help.

I've tried searching the net and found a gettext ported to windows by Franco
and can get the translation using the gettext library provided by him but I
still encountered problem 2 as stated above.

PLease, is there someone who can point me to the right direction? Thanks.

Resources:
GnuWin32 GetText [http://gnuwin32.sourceforge.net/packages/gettext.htm]
Franco's GetText
[http://freenet-homepage.de/franco.bez/gettext/gettext_win32_en.html]

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
GnuWin32-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.