Commit FS#8314. This adds strnat[case]cmp written by Martin Pool, which respects numbers within strings, and gives a more intuitive

sorting. This also adds a setting, so that the sorting can be used in the file browser. The implementation is very generic, and can possibly 
be used in other places.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20155 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-03-01 17:55:59 +00:00
parent e6c023cb64
commit d13f1a485f
10 changed files with 332 additions and 17 deletions

View file

@ -12187,3 +12187,45 @@
quickscreen: ""
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_NUMBERS
desc: in Settings -> File view
user:
<source>
*: "Interpret numbers when sorting"
</source>
<dest>
*: "Zahlen beim Sortieren interpretieren"
</dest>
<voice>
*: "Zahlen beim Sortieren interpretieren"
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_AS_DIGIT
desc: in Settings -> File view
user:
<source>
*: "As digits"
</source>
<dest>
*: "als Ziffern"
</dest>
<voice>
*: "als Ziffern"
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_AS_NUMBERS
desc: in Settings -> File view
user:
<source>
*: "As whole numbers"
</source>
<dest>
*: "als komplette Zahlen"
</dest>
<voice>
*: "als komplette Zahlen"
</voice>
</phrase>

View file

@ -12359,3 +12359,45 @@
*: "Credits"
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_NUMBERS
desc: in Settings -> File view
user:
<source>
*: "Interpret numbers when sorting"
</source>
<dest>
*: "Interpret numbers when sorting"
</dest>
<voice>
*: "Interpret numbers when sorting"
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_AS_DIGIT
desc: in Settings -> File view
user:
<source>
*: "As digits"
</source>
<dest>
*: "As digits"
</dest>
<voice>
*: "As digits"
</voice>
</phrase>
<phrase>
id: LANG_SORT_INTERPRET_AS_NUMBERS
desc: in Settings -> File view
user:
<source>
*: "As whole numbers"
</source>
<dest>
*: "As whole numbers"
</dest>
<voice>
*: "As whole numbers"
</voice>
</phrase>