Move method 'getPreferredVariant' to Language class, patched by Fdcn.