win32 i18n support

GISQUET Christophe <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
I kind of successfully built pan with i18n support for at least windows 2000. 
The minor attached patch moves the gettext folder from wherever it would 
normally be to just "locale", which will work as soon the binary is started in 
pan.exe's folder, or the shortcut is set to start the application in this 
folder. This could be made path independent by passing the binary's path to 
gettext.


I said "kind of" because unfortunately only some strings are translated, and 
not the most important ones, the GUI elements and menus. From what it appears, 
  those are marked as "not translatable" with N_(). I remember a bugzilla 
entry discussing this point, mentioning the translation was made twice in fact 
but can't currently find this entry, nor where would the second time occurs. 
So I'm still investigating the cause of the problem.

Best regards,
Christophe GISQUET

_______________________________________________
Pan-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-devel
win32locale.diff (text/plain, 788 B)
--- ../pan-0.106/configure.in	Wed Aug  2 21:13:17 2006
+++ configure.in	Sun Aug  6 13:24:00 2006
@@ -49,7 +49,6 @@
 ALL_LINGUAS="am az bg ca cs da de el en_CA en_GB es et fi fr ga gl hr hu it ja ko lt lv ms nb nl no pl pt pt_BR ro ru sk sl sq sr sr@Latn sv tr uk vi zh_CN zh_TW"
 AM_GLIB_GNU_GETTEXT
 panlocaledir='${prefix}/${DATADIRNAME}/locale'
-AC_SUBST(panlocaledir)
 
 PKG_CHECK_MODULES(PCRE,  libpcre     >= $PCRE_REQUIRED)
 PKG_CHECK_MODULES(GLIB,  glib-2.0    >= $GLIB_REQUIRED \
@@ -88,8 +87,12 @@
        CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
        CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN"
        LIBS="$LIBS -lshell32 -lws2_32"
+       panlocaledir="locale"
        ;;
 esac
+AC_SUBST(panlocaledir)
 
 AC_CONFIG_FILES([Makefile
                  pan.spec
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.