|
Bugzilla – Full Text Bug Listing |
| Summary: | YaST - dgettext buil-in - Evaluate bindtextdomain(...) return value | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Lukas Ocilka <locilka> |
| Component: | YaST2 | Assignee: | E-mail List <bnc-team-screening> |
| Status: | RESOLVED WONTFIX | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Enhancement | ||
| Priority: | P5 - None | CC: | mvidner |
| Version: | Alpha 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
test program
core/libycp/src/YCode0.diff - preparatory refactoring core/libycp/src/YCode1.diff - The fix |
||
|
Description
Lukas Ocilka
2007-08-06 09:04:02 UTC
Created attachment 158447 [details]
test program
Unfortunately it is not as simple. bindtextdomain returns the directory even if the message catalog is not present. But it seems that I can check whether dgettext(domain, "") returns a non-"" (the translation of "" is reserved for the translation metadata).
Created attachment 163616 [details]
core/libycp/src/YCode0.diff - preparatory refactoring
Created attachment 163617 [details]
core/libycp/src/YCode1.diff - The fix
Grr, well that code works, but it still does not fix the bug. The problem is that gettext internally remembers that the file was not found and it does not want to retry. I'm afraid I cannot fix that unless I reimplement a nontrivial part of the gettext internals. Thanks for trying, anyway :) 10.3 ---> 11.0 (+Enhancement) Now, feel free to close it as WONTFIX or solve via FATE ;) ---> LATER No, this is a real WONTFIX, not a temporary one. We have clarified that the original bug 280828 has alternative fixes, so we don't need to push for black magic here. So. Maybe _nl_msg_cat_cntr can invalidate the caches: http://www.linux-foundation.org/spec/refspecs/LSB_1.2.0/gLSB/baselib--nl-msg-cat-cntr.html |