2009/5/10 Yuki KODAMA <[email protected]>
> 2009/5/8 Steve Borho <[email protected]>:
> > 2009/5/8 Yuki KODAMA <[email protected]>:
> [cut]
> >> import gettext
> >> from gettext import gettext as _
> >> gettext.bindtextdomain("hg", "c:/path/to/locale")
> >> gettext.textdomain("hg")
> >>
> >> But I know this problem needs more thought because TortoiseHg has not
> >> only GUI, also CLI.
> >> Anyway, I suppose that using "_" function from "mercurial.i18n" module
> >> is not good way in the future.
> >
> > I think you're right. Having our own gettext wrapper will allow us to
> > use our own translation domain ('thg' rather than 'hg') so we don't
> > have to merge our translation files. This probably belongs in
> > shlib.py with the rest of the path 'magic'.
If you use 'tortoisehg' as domain (instead of 'thg') it will match the
launchpad setup as well as the project name on bitbucket.
I have started on a patch for separation of translation domain, but given my
usually slow speed I'm sure Steve can fix this much faster than I.
In my opinion, translation of 'tortoisehg' domain should be taken care of by
the tortoisehg setup.py script.
Regards,
Peer
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop