[Reportbug-maint] Bug#384287: reportbug: please initially add l10n/i18n support

Boyuan Yang 073plan at gmail.com
Mon Jan 16 16:35:23 UTC 2017


Control: tags -1 + patch

Hello reportbug developers,

I read through bug #384287 and is not very happy about previous discussions. 
As for i18n/l10n issues, I believe that there is no doubt all bug reports 
should be in English, but we should allow localized strings in user interface. 
So here is the initial patchset for it.

This work is for /usr/bin/reportbug. As previously said Python has a very good 
builtin module for i18n/l10n ("import gettext"). The patches set up a basic 
workflow framework for localization:

* Developers continue to write python code for /usr/bin/reportbug, with all 
strings that need translation wrapped by  _("")
* Developers/translators run "make i18n" from time to time, generating proper 
PO file for translation
* Translators modify PO file to provide translation, commit them into repo
* A normal build process (dpkg-buildpackage) will automatically install ready-
to-use translations into deb file. Hooray!

To demonstrate the result, I translated (nearly) all strings for Simplified 
Chinese (zh_CN). Translation work also included inside patch files.

Please note that the python3-reportbug module is not touched *yet*. If most 
people believe that such i18n/l10n work is acceptable, we could continue with 
the work for python module.

This patchset also contains some other fixes and improvements that can be 
applied independently.

Core patches: 0002, 0003, 0004

Any suggestion would be welcome.

--
Sincerely,
Boyuan Yang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d-rules-some-cleanup-about-install-instructions.patch
Type: text/x-patch
Size: 1938 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-d-rules-install-translation-mo-files-into-system.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-d-control-use-canonical-VCS-url.patch
Type: text/x-patch
Size: 1200 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-bin-reportbug-gettextize-source-code.patch
Type: text/x-patch
Size: 114618 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-po-add-translation-Makefile-targets-and-po-dir.patch
Type: text/x-patch
Size: 94917 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-d-source-options-remove-custom-options.patch
Type: text/x-patch
Size: 914 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-d-reportbug.desktop-adjust-zh_CN-name.patch
Type: text/x-patch
Size: 1140 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170117/0f684104/attachment-0001.sig>


More information about the Reportbug-maint mailing list