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
- Version 0.3 - added script msgid-diff-msgstr to compare msgid to msgstr.
- Version 0.2 - added script msgmerge-manual to merge contents of two .po files.
- Version 0.1 - initial revision with scripts msgtool (to compare .po files),
svn-diff-po-base (to compare file to its base revision in SVN) and msgfmt-stats
(to show stats using msgfmt --statistics).
Notes
- These scripts are experimental, so use with care.
- These scripts work only with UTF-8 encoded .po files.
- Behaviour of obsolete entries in .po files has not been checked.
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