Skip to content
/ polib Public
forked from izimobil/polib

Pure python library to manipulate, create, modify gettext files (pot, po and mo files).

License

Notifications You must be signed in to change notification settings

e-kwsm/polib

This branch is up to date with izimobil/polib:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bcb2bba · Jan 10, 2025
Feb 19, 2024
Sep 21, 2024
Jan 10, 2025
Apr 15, 2021
Feb 19, 2021
Feb 19, 2024
Feb 23, 2023
Dec 22, 2015
Dec 22, 2015
Nov 27, 2017
Feb 23, 2023
May 13, 2016
Apr 16, 2021
Jan 10, 2025
Apr 15, 2021
Dec 22, 2015
Dec 22, 2015
Feb 19, 2024
Feb 19, 2024

Repository files navigation

polib

Pypi version Pypi downloads Travis build codecov-image Documentation Status Python versions

Overview

polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's 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.7 to latest 3.X version.

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

The project code and bugtracker is hosted on Github.

polib is generously documented, you can browse the documentation online, a good start is to read the quickstart guide.

Installation

Just use pip:

$ pip install polib

Basic example

import polib

pofile = polib.pofile('/path/to/pofile.po')

for entry in pofile:
    print(entry.msgid, entry.msgstr)

About

Pure python library to manipulate, create, modify gettext files (pot, po and mo files).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%