2013/11/28 Maykel Franco <[email protected]>: > El día 28 de noviembre de 2013 15:58, Camaleón <[email protected]> escribió: >> El Thu, 28 Nov 2013 15:28:13 +0100, Maykel Franco escribió: >> >>> El día 27 de septiembre de 2013 15:41, Camaleón <[email protected]> >>> escribió: >> >> (Anda que no ha llovido... :-P) >> >>>>> Gracias por contestar Camaleón, en esta maquina es donde no me la >>>>> reconoce: >>>>> >>>>> root@pc:~# locale -a >>>> C >>>> (...) >>>>> es_ES es_ES.iso88591 es_ES.utf8 >>>> (...) >>>> >>>> Ostras, cuántas locales :-) >>>> >>>> Pero, hum... no veo la que has generado con el alias ("es"). Está la >>>> "es_ES" ¿es esa la correcta? >>>> >>>>> Y esta maquina es donde si lo engancha php: >>>>> >>>>> root@moriarty:~# locale -a C >>>> >>>> (...) >>>> >>>> Pues aquí tampoco aparece el alias "es", así que me decanto porque la >>>> diferencia en la salida de los comandos esté en la configuración de PHP >>>> de los dos equipos. >> >> (...) >> >>> Esto no lo conseguí solucionar. El tema es que un programador quiere >>> usar el alias es en vez de es_ES, no me preguntéis por que, pero quiere >>> que sea así, y cuando le lanzas por ejemplo el comando desde php: >> >> ¿Revisaste la configuración de PHP en ambos equipos (donde funcionaba y >> donde no)? Y oye.. ¿qué le devuelve cuando define el valor a "es_ES"? >> Aunque no lo quiera usar el resultado podría dar alguna pista del origen >> del problema. >> >>> La verdad es que no sé que más hacer, me recorrido todo google...El caso >>> es que en un ubuntu 10.04 sí que funciona: >> >> (...) >> >> Por curiosidad... ¿qué contiene el archivo "/etc/locale.alias" de ese >> Ubuntu? >> >> Saludos, >> >> -- >> Camaleón >> >> >> -- >> To UNSUBSCRIBE, email to [email protected] >> with a subject of "unsubscribe". Trouble? Contact [email protected] >> Archive: http://lists.debian.org/[email protected] >> > > > Gracias por contestar. > > > [email protected]:~# cat /etc/locale.alias > # Locale name alias data base. > # Copyright (C) 1996-2001,2003,2007 Free Software Foundation, Inc. > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > # the Free Software Foundation; either version 2, or (at your option) > # any later version. > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > > # The format of this file is the same as for the corresponding file of > # the X Window System, which normally can be found in > # /usr/lib/X11/locale/locale.alias > # A single line contains two fields: an alias and a substitution value. > # All entries are case independent. > > # Note: This file is obsolete and is kept around for the time being for > # backward compatibility. Nobody should rely on the names defined here. > # Locales should always be specified by their full name. > > bokmal nb_NO.ISO-8859-1 > bokm�l nb_NO.ISO-8859-1 > catalan ca_ES.ISO-8859-1 > croatian hr_HR.ISO-8859-2 > czech cs_CZ.ISO-8859-2 > danish da_DK.ISO-8859-1 > dansk da_DK.ISO-8859-1 > deutsch de_DE.ISO-8859-1 > dutch nl_NL.ISO-8859-1 > eesti et_EE.ISO-8859-1 > estonian et_EE.ISO-8859-1 > finnish fi_FI.ISO-8859-1 > fran�ais fr_FR.ISO-8859-1 > french fr_FR.ISO-8859-1 > galego gl_ES.ISO-8859-1 > galician gl_ES.ISO-8859-1 > german de_DE.ISO-8859-1 > greek el_GR.ISO-8859-7 > hebrew he_IL.ISO-8859-8 > hrvatski hr_HR.ISO-8859-2 > hungarian hu_HU.ISO-8859-2 > icelandic is_IS.ISO-8859-1 > italian it_IT.ISO-8859-1 > japanese ja_JP.eucJP > japanese.euc ja_JP.eucJP > ja_JP ja_JP.eucJP > ja_JP.ujis ja_JP.eucJP > japanese.sjis ja_JP.SJIS > korean ko_KR.eucKR > korean.euc ko_KR.eucKR > ko_KR ko_KR.eucKR > lithuanian lt_LT.ISO-8859-13 > no_NO nb_NO.ISO-8859-1 > no_NO.ISO-8859-1 nb_NO.ISO-8859-1 > norwegian nb_NO.ISO-8859-1 > nynorsk nn_NO.ISO-8859-1 > polish pl_PL.ISO-8859-2 > portuguese pt_PT.ISO-8859-1 > romanian ro_RO.ISO-8859-2 > russian ru_RU.ISO-8859-5 > slovak sk_SK.ISO-8859-2 > slovene sl_SI.ISO-8859-2 > slovenian sl_SI.ISO-8859-2 > spanish es_ES.ISO-8859-1 > swedish sv_SE.ISO-8859-1 > thai th_TH.TIS-620 > turkish tr_TR.ISO-8859-9 > de de_DE.UTF-8 > fr fr_FR.UTF-8 > it it_IT.UTF-8 > nl nl_NL.UTF-8 > pt pt_PT.UTF-8 > ru ru_RU.UTF-8 > es es_ES.UTF-8
El problema es que no está cogiendo el alias "es": export LC_ALL=es -bash: aviso: setlocale: LC_ALL: no se puede cambiar el local (es): No existe el archivo o el directorio Y está hecho el locale-gen y el dpkg-reconfigure locales No sé que más hacer... Saludos. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CAJ2aOA8gx5WL2oMLiJ-G0=asgmtxb9tpffjxdcxkypc7cje...@mail.gmail.com

