Nmap Development mailing list archives
Re: Does Zenmap localization "just work" on Windows?
From: David Fifield <david () bamsoftware com>
Date: Tue, 3 Feb 2009 17:06:34 -0700
On Mon, Feb 02, 2009 at 07:26:39PM +0100, Dirk Loss wrote:
David Fifield wrote:On Sat, Jan 31, 2009 at 05:58:46PM +0100, Dirk Loss wrote:Nmap 4.85BETA2 on my German Windows XP SP2 virtual machine still shows all texts in English per default. (Setting LANG=de_DE changes the output to German, as described on the web page.)Thanks, that's exactly the information I was looking for. I'll see if there's a way to make Python gettext aware of the native Windows locale setting.Maybe instead of gettext.install() in I18N.py, you could directly use gettext.translation(), which supports a 'languages' argument. This could be initalized with 'locale.getdefaultlocale()[0]', which returns 'de_DE' on my Windows machine.
I used your suggestion in r11968. Calling locale.getdefaultlocale looks to be better in every way because in addition to checking LANG it does platform-specific checks that work on Windows at least. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Does Zenmap localization "just work" on Windows? David Fifield (Jan 13)
- Re: Does Zenmap localization "just work" on Windows? David Fifield (Jan 25)
- Re: Does Zenmap localization "just work" on Windows? Dirk Loss (Jan 31)
- Re: Does Zenmap localization "just work" on Windows? Dirk Loss (Jan 31)
- Re: Does Zenmap localization "just work" on Windows? David Fifield (Feb 01)
- Re: Does Zenmap localization "just work" on Windows? Dirk Loss (Feb 02)
- Re: Does Zenmap localization "just work" on Windows? David Fifield (Feb 03)
- Re: Does Zenmap localization "just work" on Windows? Dirk Loss (Jan 31)
- Re: Does Zenmap localization "just work" on Windows? David Fifield (Jan 25)