Last post Aug 24, 2007 10:04 AM by johnaspnet
Aug 23, 2007 10:10 AM|johnaspnet|LINK
we have existing web site that have aspx pages in English. Now, we want to make or modify web pages in Spanish. I do not know what architecture design, direction to go or some methology that can save us efforts and time.
1. How can we deal with static texts (captions of labels, buttons, grid headers, etc.) and databound controls like gridview, formviews, etc that have English dynamic contents?
2. Are there some new functions for this issue in .NET 3.5?
3. Any ideas to do the site with efforts and time as least as possible?
4. Every page must be changed?
5. Translation issues?
Thanks so much in advance.
Aug 23, 2007 04:30 PM|shabrandi|LINK
hi you can use resource string for each language in your app_globalresource folder ... mybe the open source project
www.codeplex.com/blogengine can help u too do that
Aug 23, 2007 09:33 PM|Artistic Developer|LINK
I have architectured a Web application for a Digital Pubishing company that support multiple languages. To have full control over the web application with the wording I stored the text information within a database. However, In my database design, I have
a table named LanguageType which has the culture code as the primary key. The primary key becomes the foreign key value in any table were I store the wording which will be displayed on the user interface. To obtain the user's language settings from their web
browser, use the Language property (see MSDN on line help how to use), which will return the culture code. For instance, the culture code for English - United States is 'en-US'. I take the culture code as the input paramter to a stored procedure which then
obtains the wording, in the user's language, the control name, and web page name that populates all the label server controls. The input parameters are used to obtain the wording from a table name [dbo].[WebPageWording] to return what will be displayed on
the user interface. To obtain a complete list of th culture codes, I went to MSDN on-line help in Visual Studio and wrote insert scripts for each culture code.
This is the best solution because you do not have to make any modification to the resource files within the application. In addition, another advantage is that you can add support for another language at anytime without making modifications to the web application
because everything is stored within the database.
If you need addtional information, please let me know and I will help.
Aug 24, 2007 10:04 AM|johnaspnet|LINK
I think using "satellite resources assemblies and app_GlobalResource" means I still need "pre-defined translation dictionary" for each English-Spanish word and when a new term appear, then I have to add to resource file and re-compile again! What if for
a dynamic databound control like a gridview that has its ad-hoc and dynamic contents for each row and column in English, and how to translate those to Spanish automatically?
Using pre-defined dictionary resource files and time and efforts nightmare?
Who can translate those ad-hoc and dynamic contents?
Is somebody has any other ideas about this issue? Thanks in advance.