Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
Georgian language does not have capital letters. When transliteration is made from Georgian To Latin or Armenian or Russian capitalization have to be made manually, mapping does not do this. This change in code will handle this problem.
  • Loading branch information
Okroshiashvili committed May 1, 2018
1 parent bf4b5d0 commit 1e602e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transliterate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def translit(value, language_code=None, reversed=False, strict=False):
)

language_pack = cls()
return language_pack.translit(value, reversed=reversed, strict=strict)
if language_code == "ka":
return language_pack.translit(value, reversed=reversed, strict=strict).capitalize()
else:
return language_pack.translit(value, reversed=reversed, strict=strict)


def suggest(value, language_code=None, reversed=False, limit=None):
Expand Down

0 comments on commit 1e602e2

Please sign in to comment.