Even in the most recent release of Samba (3.0.0RC4), no source/po/*.msg files are installed to ${LIBDIR} under "make install" phase. As a consequence, users are forced to copy source/po/*.msg manually to ${LIBDIR} by themselves, in order to display localised SWAT pages. These msg files should be installed automatically when SWAT is enabled. This problem can be fixed by modifying existing "source/script/installswat.sh" script, or introducing a new script together with a minute change in Makefile.in.
Wow - this stuff really has rotted away hasn't it?
Created attachment 155 [details] A possible solution Here is a simple patch, which installs po/*.msg files automatically when installing SWAT. I know it is not exciting, but I don't think it is user-friendly to leave this problem as it is.
I'm not happy with the location of the msg files being $(DESTDIR)$(LIBDIR). I think it should be something like $(DESTDIR)$(LIBDIR)/msg. I'll ask on the mailing list for some suggestions.
Hmm - there's already a lang subdirectory in $(SWATDIR), usually /usr/local/samba/swat.
Created attachment 163 [details] Install msg files from ../swat/$lang.msg Here's a patch to install the msg files from source/../swat/lang directory into $prefix/swat/lang/$ln/$ln.msg. It relies on moving the msg files from the source directory to ../swat/lang, ie $ mv source/po/*.msg swat/lang
I've applied patch 1 so something gets in to samba 3.0.0 which is to be released shortly. Proper fix to come in a later release.
I've tested your patch with RC4 and it seems to be working properly, at least for SWAT displays. I appreciate for your prompt action.
Thanks! I'll be working with Monyo on getting better support for 3.0.1
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.