Acabei de instalar o openSUSE Leap 42.2. Eu estou lutando com as configurações de idioma.
Eu quero que o computador fale inglês para mim, mas eu quero que meus formatos sejam sujos, então eu mudei as configurações para uma mistura de sueco e inglês.
Na configuração do Ubuntu, /etc/default/locale
para o seguinte geralmente dá o que eu gosto:
LANG=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
O mesmo não parece ser o jeito certo de fazê-lo no openSUSE.
Em vez disso, alterei sv_SE para en_US em alguns arquivos na minha pasta pessoal.
~/.config/plasma-locale-settings.sh
~/.config/plasma-localerc
~/.i18n
~/.profile
Depois de tentar o conjunto pela primeira vez usando as ferramentas de GUI:
Agoralocale
dáoqueeuesperava,ecomoasfotosmostramamaioriadosdiálogosfalaminglês,masozyppernãopareceseimportar:
user@computer:~>localeLANG=en_US.UTF-8LC_CTYPE=sv_SE.UTF-8LC_NUMERIC=sv_SE.UTF-8LC_TIME=sv_SE.UTF-8LC_COLLATE=sv_SE.UTF-8LC_MONETARY=sv_SE.UTF-8LC_MESSAGES=en_US.UTF-8LC_PAPER=sv_SE.UTF-8LC_NAME=sv_SE.UTF-8LC_ADDRESS=sv_SE.UTF-8LC_TELEPHONE=sv_SE.UTF-8LC_MEASUREMENT=sv_SE.UTF-8LC_IDENTIFICATION=en_US.UTF-8LC_ALL=user@computer:~>zyppersearch|head-3Läserinförrådsdata...Läserinstalleradepaket...
Comopossoconvencerozypperafalaringlêsparamim?
Tentandocontornaroproblemausandoen_DK
emvezdeummixdeen_US
esv_SE
nãoémuitobem-sucedido:
MesmocomcadavariávelLCdefinidaparaen_US,osistemainsisteemfalarsueco,portanto,devehaveralgomaisinfluenciandooidiomamostrado:
user@computer:~>locale|grepsv_SELC_CTYPE=sv_SE.UTF-8LC_NUMERIC=sv_SE.UTF-8LC_TIME=sv_SE.UTF-8LC_COLLATE=sv_SE.UTF-8LC_MONETARY=sv_SE.UTF-8LC_PAPER=sv_SE.UTF-8LC_NAME=sv_SE.UTF-8LC_ADDRESS=sv_SE.UTF-8LC_TELEPHONE=sv_SE.UTF-8LC_MEASUREMENT=sv_SE.UTF-8user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_CTYPERoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_NUMERICRoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_TIMERoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_COLLATERoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_MONETARYRoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_PAPERRoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_NAMERoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_ADDRESSRoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_TELEPHONERoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefLC_MEASUREMENTRoot-behörigheterkrävsförattuppdaterasystemarkiv.user@computer:~>NEXT='locale|grepsv_SE|awk-F'=''{print$1}'|head-1';echo$NEXT;export$NEXT=en_US.UTF-8;zypperrefbash:export:"=en_US.UTF-8": inte en giltig identifierare
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
Redefinir tudo para en_US e reinicializar ensina zypper english:
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
user@computer:~> zypper ref
Root privileges are required for refreshing system repositories.