On Thu, Jun 4, 2009 at 10:15 PM, Yuki KODAMA<endflow....@gmail.com> wrote: > On Fri, Jun 5, 2009 at 11:57 AM, Steve Borho <st...@borho.org> wrote: >> Since our shell context menus are going to be purely C++ based in 0.8, >> they will not be able to use the i18n framework we have built for the >> Python code. Since we are also running short on time, I've decided to >> make the context menu code simply try to read translated strings from >> the registry when the extension is first loaded. >> >> We may not get proper cmenu translations into the 0.8 installer, but >> at least we should be able to offer *.reg files for various languages >> that users can load into their registry. I was thinking of using >> registry keys like: >> >> HKLU\Software\TortoiseHg\shellmenu\LANG\commit >> HKLU\Software\TortoiseHg\shellmenu\LANG\init >> HKLU\Software\TortoiseHg\shellmenu\LANG\clone >> ... >> >> Where each key would have two string values: >> >> * name - the translated menu name >> * help - the translated help text or description >> >> Then there would be the one key that selects the shell language: >> >> HKLU\Software\TortoiseHg\shellmenu\Language >> >> We can easily back-fill tools for these later. When I get the >> mechanism working, I'll post an example .reg file here to the list as >> a template for people to base their translations. >> >> -- >> Steve Borho
> > I see. I'll translate it when you post example .reg file. > By the way, will you change this solution to proper way after 0.8 > release? (0.8.1) > or 0.9 release? It's not clear we ever want a full-blown gettext implementation just for this couple dozen strings. But we could probably select translations at install time, etc. in later releases. -- Steve Borho ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Tortoisehg-discuss mailing list Tortoisehg-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss