Debian Codegraph @

CHANGELOG

raw
1 =========
2 Changelog
3 =========
4
5 Version 1.2.0 (2023/02/23)
6 --------------------------
7 - Added setter for the fuzzy property
8 - Escape/unescape \v, \b and \f
9 - Added path to error message processing parser symbols
10 - Ensure empty previous values for msgid and msgstr are properly saved
11 - Fixed relative ordering of comments and translator comments
12 - Do not count obsolete entries in fuzzy() method
13 - Close files properly
14 - Fixed support for loading mo files from bytes object
15 - Fixed msgstr_plural comparison
16 - Simplified python version check
17 - Updated docs
18
19 Version 1.1.1 (2021/03/26)
20 --------------------------
21 - Strip UTF-16 BOM (U+FEFF) from start of file
22 - Message context (msgctxt) support for MO files
23 - Dropped Python < 2.7 support
24 - Updated docs and README after switch from Bitbucket to Github
25
26 Version 1.1.0 (2017/11/27)
27 --------------------------
28 - Fixed entries sorting when generating mo file (Fixes #78)
29 - Fixed find method (Fixes #84)
30 - Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79)
31 - Fixed duplicated entries when merging po file with pot file (fixes #68)
32 - Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue #66)
33 - Added a fuzzy property to entries (Fixes #76)
34 - Take into account the message context when comparing entries
35 - Leave occurence untouched if line number is not a number (fixes #80 and #90)
36 - 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)
37 - Fixed major revision number comparison
38 - Dropped python 2.4 support
39
40 Version 1.0.8 (2016/11/21)
41 --------------------------
42 - Fixed issue #70 (occurrences parsing for windows pathes)
43 - Fixed issue #71 (tcomment and flags not saved for obsolete entries)
44 - Fixed issue #72 (wrong metadata ordering)
45 - Fixed issue #73 (can't always unpickle POFile)
46 - Use natural sorting for additional headers (metadata)
47 - Fixed typos in various documents
48
49 Version 1.0.7 (2015/07/08)
50 --------------------------
51 - Fixed bad parsing of indented msgstr_plural
52 - Fixed ordering of "Language" metadata entry
53 - Removed space after "#" in header if comment line is empty (like gettext tools)
54 - Fixed typos / grammar errors (thanks Jakub Wilk)
55 - Take into account msgid_plural if needed when comparing entries (thanks Leonardo Constantino Oliveira)
56 - Fixed issue #63 (str() on a bytes instance when using python3) (thanks Jakub Wilk)
57
58 Version 1.0.6 (2015/01/04)
59 --------------------------
60 - Wheel support
61 - Add missing 'Language' and 'Plural-Forms' to metadata ordering
62 - More accurate float operation for POFile.percent_translated()
63
64 Version 1.0.5 (2014/08/22)
65 --------------------------
66 - Fixed issue #59: tokens variable referenced before assignment
67 - Implemented feature request #56: line number information in PO entries
68 - Fixed issue #61: polib does not handle previous msgid on multilines properly
69
70 Version 1.0.4 (2014/02/19)
71 --------------------------
72 - Fixed issue #43: improved check that determine if polib is dealing with a filepath or unicode content
73 - Fixed issue #44: polib now checks MO files revision number and throws an error if the number is unexpected
74 - Fixed issue #45: parse properly mo files with no header entry
75 - Fixed issue #47: added flags attribute for MOEntry to be consistent with POEntry
76 - Fixed issue #49: use integers rather than strings for msgstr_plural keys
77 - Fixed issue #51: if a PO file ends with a comment, polib adds a spurious empty entry at the end
78 - Fixed issue #52: bad magic number written on big endian platforms
79 - Fixed issue #53: added a __hash__() method to POEntry and MOEntry classes
80 - Fixed issue #54: use lowercase for state identifiers. This fixes issues with certain locales and string.lower()
81 - Fixed issue #58: use io.open() instead of codecs.open() because the latter doesn't handle very well universal line endings
82 - Make sure the mo file is closed at garbage collection, this prevents warnings on unclosed file when running tests with python >= 3.2
83 - Better way to test endianness
84 - polib download URL is now on Pypi
85
86 Version 1.0.3 (2013/02/09)
87 --------------------------
88 - Fixed issue #38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True)
89 - Fixed issue #39: Added __init__.py file for convenience
90 - Fixed issue #41: UnicodeDecodeError when running setup.py build on python3 with C locale
91 - polib is now fully PEP8 compliant
92 - Small improvements: remove unused "typ" var (thanks Rodrigo Silva), improved Makefile, Make sure _BaseFile.__contains__ returns a boolean value
93
94 Version 1.0.2 (2012/10/23)
95 --------------------------
96 - allow empty comments, flags or occurrences lines
97
98 Version 1.0.1 (2012/09/11)
99 --------------------------
100 - speed up POFile.merge method (thanks @encukou)
101 - allow comments starting with two '#' characters (thanks @goibhniu)
102
103 Version 1.0.0 (2012/06/08)
104 --------------------------
105 Yeah... after nearly 6 years, polib reaches the stable state :)
106 Changes and fixes in this release :
107
108 - polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk)
109 - polib now can find the metadata entry no matter where it is located (thanks François Poirotte)
110 - fixed issue #28 (IOError on reading obsolete "previous msgid" entries) (thanks James Ni)
111
112 Version 0.7.0 (2011/07/14)
113 --------------------------
114 This version adds support for python 3 (thanks to Vinay Sajip).
115 polib now supports out-of-the-box any version of python ranging from 2.4 to latest 3.X version.
116 polib is now 5 years old ;) so the 0.7.X branch will be the last before the 1.X stable branch.
117
118 Version 0.6.4 (2011/07/13)
119 --------------------------
120 - Better api, autodetected_encoding is no longer required to explicitly set the encoding (fixes issue #23),
121 - Fixed issue #24 Support indented PO files (thanks to François Poirotte).
122
123 Version 0.6.3 (2011/02/19)
124 --------------------------
125 - Fixed issue #19 (Disappearing newline characters due to textwrap module),
126 - ensure wrapping works as expected.
127
128 Version 0.6.2 (2011/02/09)
129 --------------------------
130 - Backported textwrap.TextWrapper._wrap_chunks that has support for the drop_whitespace parameter added in Python 2.6 (Fixes #18: broken compatibility with python 2.5, thanks @jezdez).
131
132 Version 0.6.1 (2011/02/09)
133 --------------------------
134 - fixed regression that prevented POFile initialization from data to work (issue #17).
135
136 Version 0.6.0 (2011/02/07)
137 --------------------------
138 - polib is now `fully documented <http://polib.readthedocs.org>`_,
139 - switched from doctests to unit tests to keep the polib.py file clean,
140 - fixed issue #7 (wrapping issues, thanks @jezdez),
141 - added a __eq__ method to _BaseFile (thanks @kost BebiX),
142 - handle msgctxt correctly when compiling mo files,
143 - compiled mo files are now exactly the same as those compiled by msgfmt without using hash tables.
144
145 Version 0.5.5 (2010/10/30)
146 --------------------------
147 - Removed multiline handling code, it was a mess and was the source of potential bugs like issue #11,
148 - Fixed typo in README and CHANGELOG, fixes issue #13.
149
150 Version 0.5.4 (2010/10/02)
151 --------------------------
152 - fixed an issue with detect_encoding(), in some cases it could return an invalid charset.
153
154 Version 0.5.3 (2010/08/29)
155 --------------------------
156 - correctly unescape lines containing both \\\\n and \\n (thanks to Martin Geisler),
157 - fixed issue #6: __str__() methods are returning unicode instead of str,
158 - fixed issue #8: POFile.merge error when an entry is obsolete in a .po, that this entry reappears in the .pot and that we merge the two,
159 - added support to instantiate POFile objects using data instead of file path (thanks to Diego Búrigo Zacarão),
160 - fixed issue #9: POFile.merge drop fuzzy attributes from translations (thanks to Tim Gerundt),
161 - fixed issue #10: Finding entries with the same msgid and different context (msgctxt).
162
163 Version 0.5.2 (2010/06/09)
164 --------------------------
165 - fixed issue #1: untranslated_entries() also show fuzzy message,
166 - write back the fuzzy header if present in the pofile,
167 - added support for previous msgctxt, previous msgid and previous msgid_plural comments (fixes issue #5),
168 - better handling of lines wrapping.
169
170 Version 0.5.1 (2009/12/14)
171 --------------------------
172 - fixed issue #0025: setup.py requires CHANGELOG but it's not present in polib-0.5.0-tar.gz
173
174 Version 0.5.0 (2009/12/13)
175 --------------------------
176 - fixed issue #0017: UnicodeDecodeError while writing a mo-file,
177 - fixed issue #0018: implemented support for msgctxt,
178 - fixed bug when compiling plural msgids/strs,
179 - API docs are no longer included, hopefully next release will ship with sphinx documentation,
180 - parse msg plural entries correctly when reading mo files,
181 - fixed issue #0020 and #0021: added ability to check for duplicate when adding entries to po/mo files, this is optional and not enabled by default because it slows down considerably the library,
182 - fixed issue #0022: unescaping code is insufficient,
183 - fixed issue #0023: encoding error when saving mo file as po file (thanks to sebastien.sable for the patch !).
184
185 Version 0.4.2 (2009/06/05)
186 --------------------------
187 - fixed issue #0007: use the codecs module to open files,
188 - fixed issue #0014: plural forms are not saved correctly in the mo file (thanks lorenzo.gil.sanchez for the patch),
189 - fixed issue #0015: no LICENSE file included in tarball,
190 - removed Version/Date from README,
191 - added test pot files to MANIFEST.in,
192 - performance improvement in find() method (thanks Thomas !).
193
194 Version 0.4.1 (2009/03/04)
195 --------------------------
196 - fixed issue #0006: plural msgstrs were saved unsorted,
197 - fixed issue #0008: long comment lines broke 'save()' method,
198 - removed performance shortcuts: they were in fact inefficient, I was mislead by the python profile module, kudos to Thomas for making me realise that,
199 - fixed issue #0010: wrong polib version number,
200 - fixed issue #0011: occurrences parsing is now more robust and can handle weird references formats (like in eToys OLPC po files),
201 - fixed issue #0012: improved merge() method.
202
203 Version 0.4.0 (2008/11/26)
204 --------------------------
205 - fixed bug #0005: percent_translated divide by 0 on empty po files,
206 - fixed bug #0004: occurrences that have hyphens are wrapped when they should not,
207 - changes in how encoding is handled,
208 - remove deprecation warnings for typo on "occurrences",
209 - added POEntry.__cmp__() method to sort entries like gettext does,
210 - fixed POEntry.transalated(),
211 - added a merge() method to POFile class, that behaves like the gettext msgmerge utility,
212 - obsolete entries are now written at the end of the file and with only msgid/msgstr like gettext does,
213 - fixed some bugs in mo files parsing,
214 - renamed quote/unquote functions to escape/unescape,
215 - various cosmetic changes.
216
217 Version 0.3.1 (2007/12/13)
218 --------------------------
219 - fixed bug #0002: typo on "occurrences",
220 - fixed bug #0003: mismatch in exception instance names,
221 - removed deprecation warnings,
222 - removed unused charset() method in POFile/MOFile objects,
223 - fixed bug in multibytes string length (added regression tests),
224 - fixed a bug in detect_encoding(),
225 - added a find() method to _BaseFile class,
226 - proper handling of quoting and unquoting,
227 - proper handling of multiline strings in metadata
228
229 Version 0.3.0 (2007/10/17)
230 --------------------------
231 - speed improvements,
232 - polib can now compile mo files,
233 - unicode support,
234 - fixed bug #0001: global name 'sorted' is not defined" on python 2.3.
235
236 Version 0.1.0 (2006-08-08)
237 --------------------------
238 Initial release