Improved selection based on language choices
commitb33f8601e74d274318785ea1501e1bfbc5fffe01
authorThomas Leonard <talex5@gmail.com>
Wed, 23 Mar 2011 20:10:17 +0000 (23 20:10 +0000)
committerThomas Leonard <talex5@gmail.com>
Wed, 23 Mar 2011 20:10:17 +0000 (23 20:10 +0000)
tree1d658dc2c7f65c10447bb7b0f8f77cdf243edfc1
parentcbe02edcea270d2e65d89d5daa39b5ddced7faf2
Improved selection based on language choices

Convert all '_' to '-' to avoid problems with the format of $LANG vs xml:lang.
Rank languages, instead of just testing whether we know them or not.
By default, rank English lower than the current locale but better than other
languages, since English is usually a good bet if your native language isn't
available.
tests/testreader.py
zeroinstall/injector/model.py
zeroinstall/injector/solver.py