![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
selecting mirror
I'm relying on $LANG to tell me the user's location for mirror selection. For Europe I have:
en | fr | de | it | hr | sv | fi | no | 'nl' | el For Asia: zh | jp | ko Any suggestions for additions? (US is en_US not en)
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#2 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
Added pl to Europe.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
If you load up your Internet browser and go into the options screen, and hit the Edit Languages button or something, you'll see a big, big list of them.
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 314
Rep Power: 4
![]() |
Off the top of my head, I suggest adding "es" (for Spain), but Ooble's already given the definitive answer here. Alternatively, you might get some luck googling for country codes.
__________________
"I'm not a genius. Why do I have to suffer?" |
|
|
|
|
|
#5 |
|
Programmer
|
you should rely on the narion part of the locale, i.e.
% echo $LANG | sed 's/.._\(..\).*/\1/' note: I am in Germany and use en_GB.UTF-8 and have used en_US.ISO-8859-1 in the past. Meaning: you cannot rely 100% on the locale. I am sure many people outside the GB or US use those locales. |
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 730
Rep Power: 4
![]() |
Pinging usually gets the job done, too.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|