[New-bugs-announce] [issue33212] add several options to msgfmt.py

umedoblock report at bugs.python.org
Tue Apr 3 02:20:11 EDT 2018

New submission from umedoblock <umedoblock at gmail.com>:

= Why do I add several options ?
I'd like to effectively know a progress of translate about some po files
when KiCad dev team announce to public KiCad 5.0 major.
Because KiCad dev team separates PCB design tools to exe files.
And I used the poedit to translate work.
Then I'd like to know progress per a po file.

Please take my idea in msgfmt.py.

== help
Usage: msgfmt.py [OPTIONS] filename.po

        Show all msg_id_NO, msgid and msgstr in filename.po.

        Show translate progress.

        Show no translated msgid with msg_id_NO.

== progress option
$ python3 ~/KiCad/kicad-doc/src/translate-set/msgfmt.py --progress ~/KiCad/kicad-doc/src/eeschema/po/ja.po 
translated: 1151 of 1427 (80%), Remaining: 276

== dump option
$ python3 ~/KiCad/kicad-doc/src/translate-set/msgfmt.py --dump ~/KiCad/kicad-doc/src/eeschema/po/ja.po | head -20

_Reference manual_



== remaining option
$ python3 ~/KiCad/kicad-doc/src/translate-set/msgfmt.py --remaining ~/KiCad/kicad-doc/src/eeschema/po/ja.po | head -20
This document is Copyright (C) 2010-2018 by its contributors as listed below. Yo
u may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.

About KiCad translation: https://github.com/KiCad/kicad-i18n/issues

Published on May 30, 2015.

Symbol Annotation Tool

components: Demos and Tools
files: msgfmt.py
messages: 314862
nosy: umedoblock
priority: normal
severity: normal
status: open
title: add several options to msgfmt.py
type: enhancement
versions: Python 3.6
Added file: https://bugs.python.org/file47517/msgfmt.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list