Support long key names for languages (bug 6282)

Also brought back the length check warning, *not tested*.

@psychonic