Article View: es.comp.lenguajes.java
Article #755Re: Internacionalización
From: Ricardo Palomares Martinez
Date: Mon, 05 Mar 2007 19:09
Date: Mon, 05 Mar 2007 19:09
28 lines
1889 bytes
1889 bytes
ElLlaneroSolitario escribió: > Ok. Ya consigo cambiar el idioma desde la ejecución con netbeans. Pero si > ahora quiero ejecutarlo desde la línea de comandos, eligiendo el idioma como > argumento, no encuentro por ningún sitio cómo hacerlo. > ¿Alguna idea? Lo que te digan aquí estará bien seguro: http://java.sun.com/docs/books/tutorial/i18n/index.html Pero, en principio, el locale se coge del sistema salvo que tú indiques uno específico en el programa. A menos que diseñes una interfaz gráfica para dejar al usuario especificarlo o que tú mismo te ocupes de tratar un parámetro del tipo "-UILocale ab-CD" (así usas el mismo formato que Mozilla) :-) en la llamada en la línea de órdenes, no podrás cambiar el locale en tiempo de ejecución, o al menos yo no veo esa opción en la JVM (java -h). Saludos. -- If it's true that we are here to help others, then what exactly are the OTHERS here for?
Technical Details
Message-ID:
<6g6ub4-99e.ln1@Father.family>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!aioe.org!Father.family!newsReferences:
<eseq1b$u5n$1@hefestos.uned.es> <o08rb4-90c.ln1@Father.family> <esffi0$dn5$1@hefestos.uned.es>Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,8885ad7566426449 X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!aioe.org!Father.family!news From: Ricardo Palomares Martinez <rpm.PUBLI@iespana.es> Newsgroups: es.comp.lenguajes.java Subject: Re: Internacionalización Date: Mon, 05 Mar 2007 20:09:26 +0100 Organization: Hogar, dulce hogar Lines: 28 Message-ID: <6g6ub4-99e.ln1@Father.family> References: <eseq1b$u5n$1@hefestos.uned.es> <o08rb4-90c.ln1@Father.family> <esffi0$dn5$1@hefestos.uned.es> NNTP-Posting-Host: d+PId5MTPXqk/TDRPBWpLg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 Mnenhy/0.7.4.0