Back to projects page

msgtools - set of tools for .po files

Files

Download: msgtools-0.3.tgz
Download old version 0.2: msgtools-0.2.tgz
Download old version 0.1: msgtools-0.1.tgz
License: GPL
Author: Krzysztof Lichota

Installation

Unpack tarball in some directory (for example ~/bin). Scripts should work when called from any directory

Changes

Notes

Tools

msgtool

This console tool compares two .po files. It compares based on msgids - finds msgids which
were added, removed and for those which are in both files, performs comparison
of msgstrs (highlighting differences on character level).
Usage: msgtool file1.po file2.po
Example of output:
################################################################################
msgid:
&korganizer;

msgstr1 [fuzzy]:
Organizer
^

msgstr2:
&korganizer;
^^^ ^
################################################################################
msgid:
The Summary View allows you to change where the components are in the view
itself. So, if you prefer to have your Special Dates in the lower left and your
to-dos in the upper right, you can rearrange the summary view to reflect that.

msgstr1:
Widok podsumowania pozwala na zmianę samego położenia komponentów w oknie
^^^^^^^
głównym. Więc, jeżeli wolisz, aby Urodziny i Rocznice znajdowały się po lewej
^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stronie u dołu, a Twoje Zadania po prawej u góry, to możesz bez problemu zmienić
^^^^^^^^^^^^^^^^^^^^^^^
ich położenie.


msgstr2:
Widok podsumowania pozwala na zmianę położenia komponentów w oknie głównym.
^^^^^^^^^
Jeżeli więc wolisz, aby Urodziny i rocznice znajdowały się po lewej stronie u
^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dołu, a Zadania po prawej u góry, to możesz bez problemu zmienić ich położenie.
^^^^ ^
################################################################################

msgmerge-manual

Console tool which examines differences between two .po files and lets you choose for each difference what to do: select one of translations, remove entry or edit it.
NOTE: Editing msgstr in editor is sensitive to newlines (they are not replaced with \n), so please do not rewrap strings during editing.

msgid-diff-msgstr

Compares msgid to msgstr for each entry and prints differences if they differ.
Usage:
msgid-diff-msgstr.py file-to-examine.po

svn-diff-po-base

Uses msgtool to show differences between modified file and its base version from SVN.
Usage: svn-diff-po-base file.po

msgfmt-stats

Prints statistics about .po files using "msgfmt --statistics".
Usage:
msgfmt-stats *.po
msgfmt-stats kdebase/*.po kdelibs/*.po