Add language strings for error messages.
Optimize function arguments.
Merge branch 'tng' into rework-sorting