🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2243

Re: [Java] Locale automatisch terugvinden

#2243
From: An Ony
Date: Mon, 26 Jul 2004 16:41
17 lines
1675 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... .
>
Bedoel je java.util.Locale.getDefault() ?
Technical Details
Message-ID: <ce39pt$fav$1@gaudi2.UGent.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!syros.belnet.be!news.belnet.be!news.UGent.be!not-for-mail
References: <1eb56b8c.0407260407.3d84fbec@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,595c7b02adf9ea7
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!syros.belnet.be!news.belnet.be!news.UGent.be!not-for-mail
From: "An Ony" <nowhere@somewhere.net>
Newsgroups: be.comp.programming
Subject: Re: [Java] Locale automatisch terugvinden
Date: Mon, 26 Jul 2004 18:41:28 +0200
Organization: Ghent University
Lines: 19
Message-ID: <ce39pt$fav$1@gaudi2.UGent.be>
References: <1eb56b8c.0407260407.3d84fbec@posting.google.com>
NNTP-Posting-Host: vpna089.ugent.be
X-Trace: gaudi2.UGent.be 1090857597 15711 157.193.1.89 (26 Jul 2004 15:59:57 GMT)
X-Complaints-To: helpdesk@dict.ugent.be
NNTP-Posting-Date: Mon, 26 Jul 2004 15:59:57 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441