rhbz1037933 - locale length validation

see https://github.com/zanata/zanata-api/pull/8