./devel/py-polib, Python library to parse and manage gettext catalogs

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.0, Package name: py27-polib-1.1.0, Maintainer: pkgsrc-users

polib is a library to manipulate, create, modify gettext files (pot, po and mo
files). You can load existing files, iterate through its entries, add, modify
entries, comments or metadata, etc. or create new po files from scratch.

polib supports out of the box any version of python ranging from 2.4 to latest
3.X version.

polib is pretty stable now and is used by many opensource projects.

polib is completely free and opensource, the license used is the MIT license.
It was developed back in 2006 by David Jean Louis and it is still actively
maintained.


Required to run:
[devel/py-setuptools] [lang/python27]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 25ad40db9e89085b5823268110594ade57ffda4c
RMD160: 895760cb1cce0469666f5cb349fd21db57e9ed5b
Filesize: 154.77 KB

Version history: (Expand)


CVS history: (Expand)


   2018-01-28 17:39:54 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-polib: update to 1.1.0.

Version 1.1.0 (2017/11/27)
--------------------------
 - 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
   2017-09-26 12:12:25 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
py-polib: update to 1.0.8.

Version 1.0.8 (2016/11/21)
--------------------------
 - 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

Version 1.0.7 (2015/07/08)
--------------------------
 - 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)

Version 1.0.6 (2015/01/04)
--------------------------
 - Wheel support
 - Add missing 'Language' and 'Plural-Forms' to metadata ordering
 - More accurate float operation for POFile.percent_translated()

Version 1.0.5 (2014/08/22)
--------------------------
 - Fixed issue #59: tokens variable referenced before assignment
 - Implemented feature request #56: line number information in PO entries
 - Fixed issue #61: polib does not handle previous msgid on multilines properly

Version 1.0.4 (2014/02/19)
--------------------------
 - Fixed issue #43: improved check that determine if polib is dealing with a \ 
filepath or unicode content
 - Fixed issue #44: polib now checks MO files revision number and throws an \ 
error if the number is unexpected
 - Fixed issue #45: parse properly mo files with no header entry
 - Fixed issue #47: added flags attribute for MOEntry to be consistent with POEntry
 - Fixed issue #49: use integers rather than strings for msgstr_plural keys
 - Fixed issue #51: if a PO file ends with a comment, polib adds a spurious \ 
empty entry at the end
 - Fixed issue #52: bad magic number written on big endian platforms
 - Fixed issue #53: added a __hash__() method to POEntry and MOEntry classes
 - Fixed issue #54: use lowercase for state identifiers. This fixes issues with \ 
certain locales and string.lower()
 - Fixed issue #58: use io.open() instead of codecs.open() because the latter \ 
doesn't handle very well universal line endings
 - Make sure the mo file is closed at garbage collection, this prevents warnings \ 
on unclosed file when running tests with python >= 3.2
 - Better way to test endianness
 - polib download URL is now on Pypi
   2017-09-04 20:08:31 by Thomas Klausner | Files touched by this commit (163)
Log message:
Follow some redirects.
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2014-01-25 11:30:32 by Thomas Klausner | Files touched by this commit (533) | Package updated
Log message:
Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
   2013-04-24 15:34:28 by OBATA Akio | Files touched by this commit (4)
Log message:
Import py27-polib-1.0.3 as devel/py-polib.
Based on PR pkg/47459 by Richard PALO.

polib is a library to manipulate, create, modify gettext files (pot, po and mo
files). You can load existing files, iterate through its entries, add, modify
entries, comments or metadata, etc. or create new po files from scratch.

polib supports out of the box any version of python ranging from 2.4 to latest
3.X version.

polib is pretty stable now and is used by many opensource projects.

polib is completely free and opensource, the license used is the MIT license.
It was developed back in 2006 by David Jean Louis and it is still actively
maintained.