Add Kazakh language option in UI

This commit is contained in:
int-y1 2024-01-24 02:31:34 -05:00 committed by Guanzhong Chen
parent 8bfa7ca63b
commit 86c234f2a1
2 changed files with 3 additions and 2 deletions

View File

@ -398,6 +398,7 @@ LANGUAGES = [
('hr', _('Croatian')),
('hu', _('Hungarian')),
('ja', _('Japanese')),
('kk', _('Kazakh')),
('ko', _('Korean')),
('pt', _('Brazilian Portuguese')),
('ro', _('Romanian')),

View File

@ -154,9 +154,9 @@ def strip_paragraphs_tags(tree):
parent = p.getparent()
prev = p.getprevious()
if prev is not None:
prev.tail = (prev.tail or '') + p.text
prev.tail = (prev.tail or '') + (p.text or '')
else:
parent.text = (parent.text or '') + p.text
parent.text = (parent.text or '') + (p.text or '')
parent.remove(p)