[MonoDevelop] WelcomePage localization

Todd Berman tberman at off.net
Mon Nov 21 16:43:53 EST 2005


On Tue, 2005-11-22 at 04:48 +0900, Atsushi Eno wrote:
> Hi,
> 
> During localization work, I noticed that the "welcome page" is written
> in xsl and not in .po files. So I made a tiny hack (and Japanese
> localization) to localize it.
> 
> I know that translations are very likely to be outdated. However it is
> not allowed for this welcome page since it somewhat plays roles of event
> handling. Thus, in this patch it compares the xsl file versions and uses
> default one if the translation has different value.
> 
> Would there be better ideas to do this task? I also wonder if we had
> better do
> it later since it requires code changes (it is not a big though).
> 


Would it be better to use intltool's built-in xml scraping (using
_propertyname) to translate? That plus an xsl extension object that
actually calls into GettextCatalog.GetString would likely work well.

That would make it so we wouldn't have the versioning issue, as the
strings would come out of the po file. This would be similar to how
gettext translates glade files, and our addin.xml files.

--Todd

> Atsushi Eno
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list