On Wed, Oct 29, 2008 at 12:19:58PM +0900, Takao Fujiwara - Tokyo S/W Center 
wrote:

> OK, I see. I thought you were convinced since you didn't reply the previous 
> mail.

No, I didn't understand it, so I spent some time tracing the python code to
try to figure out what you meant.

> When the argument of C-version textdomain(3) is NULL, the behavior is 
> defined and then the compatible functions are needed in Python 
> applications.
>
> E.g.
> current_domain = textdomain (None)
> open (something + current_domain + ".txt", "r")
> print dgettext (current_domain + "-lib", "msgid")

So you need to retrieve the current domain because you're going to alter it
in some cases to retrieve other messages.  That wasn't at all clear.

I don't see anywhere you're actually doing that, though.  Nor do I
understand why you'd want to do that.  (I can hazily imagine some things,
but I'd appreciate a real use-case.)

I do see, however, how what the docs call the "class-based API" doesn't
allow you to do this (at least, not by default), and how the "GNU gettext
API" does.

So what I think I need to know now is what domains you're expecting to use
in the various pkg(5)-related apps, and in the modules they use.  From
that, I may be able to figure out how to make the code to manipulate all
this stuff more consistent across the .py files.

Thanks for walking me through this -- I think I'm beginning to understand
this (though that's usually the first sign that I understand nothing at
all).

Thanks,
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to