🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2242

[Java] Locale automatisch terugvinden

#2242
From: Vincent De Baere
Date: Mon, 26 Jul 2004 12:07
19 lines
1425 bytes
Beste

bij het doornemen van de tutorial over localisatie
(http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html) viel
mij op dat het Locale-object opgebouwd werd met strings die als
parameter doorgegeven worden aan de applicatie via de command line.

Ik bekeek even de api, maar vind niet zo meteen een methode om de
huidige locale (die van het os of de VM) van de gebruiker terug te
vinden.

Kent iemand de manier om die Locale terug te vinden (ofwel de taal- en
landen-code)? De bedoeling is dat de hele toepassing cross platform
draait, dus idealiter zou ook het terugvinden van de locale
crossplatform moeten zijn... .

TIA

Vincent
Technical Details
Message-ID: <1eb56b8c.0407260407.3d84fbec@posting.google.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,595c7b02adf9ea7,start
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mail
From: vdebaere@boekbindhuis.be (Vincent De Baere)
Newsgroups: be.comp.programming
Subject: [Java] Locale automatisch terugvinden
Date: 26 Jul 2004 05:07:30 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1eb56b8c.0407260407.3d84fbec@posting.google.com>
NNTP-Posting-Host: 194.78.128.125
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1090843650 9980 127.0.0.1 (26 Jul 2004 12:07:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 26 Jul 2004 12:07:30 +0000 (UTC)