mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
feat: add extractor for setup wizard txt files
This commit is contained in:
4
erpnext/gettext/extractors/lines_from_txt_file.py
Normal file
4
erpnext/gettext/extractors/lines_from_txt_file.py
Normal file
@@ -0,0 +1,4 @@
|
||||
def extract(fileobj, *args, **kwargs):
|
||||
"""Split file into lines and yield one translation unit per line."""
|
||||
for line_no, line in enumerate(fileobj.readlines()):
|
||||
yield line_no + 1, "_", line.decode().strip(), []
|
||||
Reference in New Issue
Block a user