[names] replace name affixes with both country/language and language-only variants
This commit is contained in:
@@ -82,7 +82,9 @@ class NameAffixes(object):
|
||||
re = None
|
||||
if country is not None:
|
||||
re = d.get((country, lang))
|
||||
if re is None:
|
||||
if re:
|
||||
name = re.sub(six.u(''), name)
|
||||
|
||||
re = d.get(lang)
|
||||
|
||||
if not re:
|
||||
@@ -101,7 +103,9 @@ class NameAffixes(object):
|
||||
re = None
|
||||
if country is not None:
|
||||
re = d.get((country, lang))
|
||||
if re is None:
|
||||
if re:
|
||||
name = re.sub(six.u(''), name)
|
||||
|
||||
re = d.get(lang)
|
||||
|
||||
if not re:
|
||||
|
||||
Reference in New Issue
Block a user