List Info

Thread: Welcome Page Localization Patch




Welcome Page Localization Patch
user name
2006-11-28 13:44:19
I find this localization method a bit complex, but I don't
know enough
about intltool to know if there is a better way. Maybe
scottell has
something to say about it?

Lluis.

El dl 27 de 11 del 2006 a les 17:28 +0000, en/na Gideon de
Swardt va
escriure:
> Hi All
> 
> Please find attach a new updated patch for the Welcome
Page
> localization. The changes in this patch is that the
content of the
> Welcome Page is now specified in an xml document, which
allow
> intltool-update to merge any strings into the pot
files.
> 
> The Welcome Page then merge this xml with the list of
recent projects
> and use the new xml document to transform and output
the Html. The Xsl
> is still using the extension object then to extract the
correct string
> for the current specified language.
> 
> I have also created a proxy class for the GetString
method instead of
> changing the MonoDevelop.Core.GettextCatalog
constructor from private
> to public, as suggested by Lluis. 
> 
> Please review and let me know if it is okay to commit.
> 
> Regards
> 
> Gideon de Swardt
> 
> http://sonskyn-tec
hno.blogspot.com
> 
> 
> 
> 
>
____________________________________________________________
__________
> Now you can scan emails quickly with a reading pane.
Get the new
> Yahoo! Mail.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-listlists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-li
st

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
Welcome Page Localization Patch
user name
2006-11-28 23:21:21
On Tue, 2006-11-28 at 14:44 +0100, Lluis Sanchez wrote:
> I find this localization method a bit complex, but I
don't know enough
> about intltool to know if there is a better way. Maybe
scottell has
> something to say about it?

I would probably just put the strings in the actual code and
pass them
into the xsl as variables like I do the recent projects.

Scott

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
Welcome Page Localization Patch
user name
2006-11-29 09:21:14
> On Tue, 2006-11-28 at 14:44 +0100, Lluis Sanchez wrote:
> > I find this localization method a bit complex, but
I don't know enough
> > about intltool to know if there is a better way.
Maybe scottell has
> > something to say about it?
> 
> I would probably just put the strings in the actual
code and pass them
> into the xsl as variables like I do the recent
projects.
> 
> Scott

The only down side I see with doing it straight in the code
is that you have
to add an Xslt parameter for each string you want to
translate in the C# as
well as the xslt, before you would be able to reference it
from within the
xslt. 

This is not the case with using the xml document to store to
the content.
With the content declared and stored in the xml it means
less maintenance
when adding or changing content. Instead of having to add
parameters to the
C# and Xsl, you would only have to add more elements to the
content xml
document.


		
___________________________________________________________ 
Yahoo! Photos – NEW, now offering a quality print service
from just 7p a photo http://uk.photos.yahoo.com

_______________________________________________
Monodevelop-list mailing list
Monodevelop-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )