Description of problem: the help messages for --help and --usage seems not translatable. it's always displayed in English and no translatable strings in po. Version-Release number of selected component (if applicable): passwd-0.78-3.fc15.x86_64 How reproducible: always Steps to Reproduce: 1.passwd --help 2.msgunfmt /usr/share/locale/ja/LC_MESSAGES/passwd.mo 3. Actual results: the help messages for --help and --usage is displayed in English and no strings for them in po. Expected results: translatable strings should appears in po and displayed in the native language. Additional info:
These messages are coming from the popt library. They seem to be translated in the popt po files fine though. I've been looking at the popt code and I see there are calls to gettext functions but for some reasons they are not properly called. Unfortunately I also did not find any working example of an utility that uses popt that would have these messages translated. So I think it is some more general problem with popt and the way it calls/doesn't call gettext functions.
Created attachment 572052 [details] Fix --help i18n This patch fixes the problem; there already was some i18n support for authelp in popt.c, but not in popthelp.c, where it actually matters.
This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Still seeing this with popt-1.13-10.fc17.x86_64
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Reproduced with popt-1.13-12.fc18.x86_64. Could you review the patch, please?
Created attachment 828357 [details] Try to merge with popt 1.16 I tried to merge your patch with popt 1.16 like this.
Unfortunately attachment #828357 [details] causes a failure of the built-in tiny test suite in popt 1.16 - however this could be a mistake during my merge try: [...] + make check [...] Running test test1 - 58. Test "test1 --usage" failed with: "Usage: lt-test1 [-I?] [-c|--cb2=STRING] [--arg1] [-2|--arg2=ARG] [-3|--arg3=ANARG] [-onedash] [--optional=STRING] [--val] [-i|--int=INT] [-s|--short=SHORT] [-l|--long=LONG] [-L|--longlong=LONGLONG] [-f|--float=FLOAT] [-d|--double=DOUBLE] [--randint=INT] [--randshort=SHORT] [--randlong=LONG] [--randlonglong=LONGLONG] [--argv=STRING] [--bitset] [--bitclr] [--bitxor] [--nstr=STRING] [--lstr=STRING] [-I|--inc] [-c|--cb=STRING] [--longopt] [-?|--help] [--usage] [--] [--simple=ARG]" != "Usage: lt-test1 [-I?] [-c|--cb2=STRING] [--arg1] [-2|--arg2=ARG] [-3|--arg3=ANARG] [-onedash] [--optional=STRING] [--val] [-i|--int=INT] [-s|--short=SHORT] [-l|--long=LONG] [-L|--longlong=LONGLONG] [-f|--float=FLOAT] [-d|--double=DOUBLE] [--randint=INT] [--randshort=SHORT] [--randlong=LONG] [--randlonglong=LONGLONG] [--argv=STRING] [--bitset] [--bitclr] [--bitxor] [--nstr=STRING] [--lstr=STRING] [-I|--inc] [-c|--cb=STRING] [--longopt] [-?|--help] [--usage] [--simple=ARG]" FAIL: ./testit.sh [...] Miloslav, could you please check if we can get this solved for 1.16 so that we can propose a working patch to upstream?
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Reproduced in popt-1.13-14.fc19.x86_64 .
(In reply to Miloslav Trmač from comment #10) > Reproduced in popt-1.13-14.fc19.x86_64 . Do you have any idea for comment #7 and #8? Applying this patch to Fedora 19 without having it then in Fedora 20 doesn't really solve this for the future.
(In reply to Robert Scheck from comment #11) > Do you have any idea for comment #7 and #8? Applying this patch to Fedora 19 > without having it then in Fedora 20 doesn't really solve this for the future. No, still hoping for Panu to take a look at this. That's why I have re-marked this as needinfo(mitr).
looks good on f20.
Akira, now I am confused, it looks like this for me: $ LANG=ja_JP.UTF-8 passwd --help 使い方: passwd [オプション...] <accountName> -k, --keep-tokens 有効な認証トークンを維持する -d, --delete named アカウントのパスワードを削除する (root のみ) -l, --lock named アカウントをロックする (root のみ) -u, --unlock named アカウントをロック解除する (root のみ) -f, --force 操作を強制 -x, --maximum=DAYS 最大パスワード寿命 (root のみ) -n, --minimum=DAYS 最低パスワード寿命 (root のみ) -w, --warning=DAYS パスワード失効の前にユーザーが警告を受ける事前日数 (root のみ) -i, --inactive=DAYS パスワードが失効した後にアカウントが無効になるまでの日数 (root のみ) -S, --status named アカウントのパスワードステータスを報告する (root のみ) --stdin 標準入力(stdin) から新規トークンを読み込む (root のみ) Help options: -?, --help Show this help message --usage Display brief usage message $
Ah, sorry, you're right. I wrongly figured out the issue.
Created attachment 846913 [details] Revised patch I'm not quite sure if this is sane fix but the above fail on the test case is caused by "" on the last item in poptHelpOptions2. that may has a side-effect but make check didn't detect any at least.
popt-1.16-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/popt-1.16-2.fc20
popt-1.16-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/popt-1.16-2.fc19
popt-1.16-2.fc20 works fine,the help options is translated
Package popt-1.16-2.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing popt-1.16-2.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0452/popt-1.16-2.fc19 then log in and leave karma (feedback).
popt-1.16-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
popt-1.16-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 801166 has been marked as a duplicate of this bug. ***