Details
-
Type:
Sub-task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7
-
Component/s: o.c.common.util
-
Labels:None
Description
SWORD now defines LL-SSSS-CC and LL-SSSS, whereas before it was just LL and LL-CC
LL = 2 or 3 letter language code, required.
SSSS - 4 letter script code, optional
CC - 2 letter country code, optional.
The canonical form for each is:
LL - lower
SSSS - Title
CC - UPPER
However, they are case-insensitive.
Also, SWORD defines lookup as such:
Look up each in turn and return the Language name for the first match.
LL-SSSS-CC, LL-SSSS, LL-CC, LL
or
LL-SSSS, LL
or
LL-CC, LL
or
LL
If that is not found in iso639.properties (localized "common" SWORD lang codes),
then lookup LL in Locale.getDisplayLanguage() and
then iso639.properties.
Failing that return LL for the name.