Closed anxdpanic closed 4 years ago
add path validation, po file must be in <ADDON_PATH>/resources/language/resource.language.<LANG_CODE>/
<ADDON_PATH>/resources/language/resource.language.<LANG_CODE>/
add language code validation in path, LANG_CODE must match ^[a-z]{2,3}(?:_[a-zA-Z]{2}(?:@\S+)?)?$
LANG_CODE
^[a-z]{2,3}(?:_[a-zA-Z]{2}(?:@\S+)?)?$
add check for the required default language en_GB
en_GB
tests added for all cases
Resolves #238
add path validation, po file must be in
<ADDON_PATH>/resources/language/resource.language.<LANG_CODE>/
add language code validation in path,
LANG_CODE
must match^[a-z]{2,3}(?:_[a-zA-Z]{2}(?:@\S+)?)?$
add check for the required default language
en_GB
tests added for all cases
Resolves #238