mirror of https://gitlab.com/bashrc2/epicyon
Alternative language value separators
parent
5b286bfe68
commit
1a54698ec8
|
@ -38,8 +38,14 @@ def setActorLanguages(baseDir: str, actorJson: {}, languagesStr: str) -> None:
|
||||||
separator = ','
|
separator = ','
|
||||||
if '/' in languagesStr:
|
if '/' in languagesStr:
|
||||||
separator = '/'
|
separator = '/'
|
||||||
|
elif ',' in languagesStr:
|
||||||
|
separator = ','
|
||||||
elif ';' in languagesStr:
|
elif ';' in languagesStr:
|
||||||
separator = ';'
|
separator = ';'
|
||||||
|
elif '+' in languagesStr:
|
||||||
|
separator = '+'
|
||||||
|
elif ' ' in languagesStr:
|
||||||
|
separator = ' '
|
||||||
langList = languagesStr.lower().split(separator)
|
langList = languagesStr.lower().split(separator)
|
||||||
langList2 = []
|
langList2 = []
|
||||||
for lang in langList:
|
for lang in langList:
|
||||||
|
|
Loading…
Reference in New Issue