Polib

Latest version: v1.2.0

Safety actively analyzes 613631 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.2.0

--------------------------
- Added setter for the fuzzy property
- Escape/unescape \v, \b and \f
- Added path to error message processing parser symbols
- Ensure empty previous values for msgid and msgstr are properly saved
- Fixed relative ordering of comments and translator comments
- Do not count obsolete entries in fuzzy() method
- Close files properly
- Fixed support for loading mo files from bytes object
- Fixed msgstr_plural comparison
- Simplified python version check
- Updated docs

1.1.1

--------------------------
- Strip UTF-16 BOM (U+FEFF) from start of file
- Message context (msgctxt) support for MO files
- Dropped Python < 2.7 support
- Updated docs and README after switch from Bitbucket to Github

1.1.0

--------------------------
- Fixed entries sorting when generating mo file (Fixes 78)
- Fixed find method (Fixes 84)
- Refactored POEntry.__cmp__ method (this should fix issues 60, 65 and 79)
- Fixed duplicated entries when merging po file with pot file (fixes 68)
- Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue 66)
- Added a fuzzy property to entries (Fixes 76)
- Take into account the message context when comparing entries
- Leave occurence untouched if line number is not a number (fixes 80 and 90)
- Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata entry (Fixes 86)
- Fixed major revision number comparison
- Dropped python 2.4 support

1.0.8

--------------------------
- Fixed issue 70 (occurrences parsing for windows pathes)
- Fixed issue 71 (tcomment and flags not saved for obsolete entries)
- Fixed issue 72 (wrong metadata ordering)
- Fixed issue 73 (can't always unpickle POFile)
- Use natural sorting for additional headers (metadata)
- Fixed typos in various documents

1.0.7

--------------------------
- Fixed bad parsing of indented msgstr_plural
- Fixed ordering of "Language" metadata entry
- Removed space after "" in header if comment line is empty (like gettext tools)
- Fixed typos / grammar errors (thanks Jakub Wilk)
- Take into account msgid_plural if needed when comparing entries (thanks Leonardo Constantino Oliveira)
- Fixed issue 63 (str() on a bytes instance when using python3) (thanks Jakub Wilk)

1.0.6

--------------------------
- Wheel support
- Add missing 'Language' and 'Plural-Forms' to metadata ordering
- More accurate float operation for POFile.percent_translated()

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.