Skip to content

Commit 6ddfaba

Browse files
authored
Merge pull request #3 from MihanEntalpo/MihanEntalpo-patch-1
fixed open_po_fle -> open_po_file
2 parents abad4ac + c03065e commit 6ddfaba

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGES.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Change Log
22
==========
3+
0.1.8 - Fixed typo in open_po_file fucntion name. No logic changes were made.
4+
35
0.1.7 - Fixed bug where empty msgid translation caused error
46
Added autoreplace to strings like "%d", "%s", " ", "←"
57

PoTrans/potrans.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def __init__(self, yandex_key, src_lang=None, dest_lang=None, src_po_file=None):
2121
self.dest_lang = dest_lang
2222
self.yandex_translate = YandexTranslate(self.yandex_key)
2323
if src_po_file is not None:
24-
self.open_po_fle(src_po_file)
24+
self.open_po_file(src_po_file)
2525

26-
def open_po_fle(self, po_filename):
26+
def open_po_file(self, po_filename):
2727
"""
2828
Открыть po-файл
2929
:param po_filename:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Versions should comply with PEP440. For a discussion on single-sourcing
2626
# the version across setup.py and the project code, see
2727
# https://packaging.python.org/en/latest/single_source_version.html
28-
version='0.1.7',
28+
version='0.1.8',
2929

3030
description='gettext PO files translate by Yandex translator',
3131
long_description=long_description + changes,

0 commit comments

Comments
 (0)