G
Guest
Hi all,
I've been thinking of about adding new languages to our website and is
currently investigating how this could be done. And I know that one way to go
would be to create new aspx-pages with new codebehinds for each page I want
to have translated.
But my question is - is it ok to keep the same codebehind file for a certain
page which is translated into different languages. In this way I only need to
change to aspx-file (html) of the page for each new language I want to
support, and all my codebehind logic will centralized to one place.
Example:
I have one original page in english called 'Page1_eng.aspx' which has a
corresponding 'Page1.cs'. Now if I want to have this page translated to
swedish I will create a new page called 'Page1_swe.aspx' which uses the same
codebehind file ('Page1.cs'). Of course - this requires I have the same web
controls and ID's on the page.
I just wanted to see what you think about this idea? I have done some tests
and it seems to work perfect.
Thanks
Thomas
I've been thinking of about adding new languages to our website and is
currently investigating how this could be done. And I know that one way to go
would be to create new aspx-pages with new codebehinds for each page I want
to have translated.
But my question is - is it ok to keep the same codebehind file for a certain
page which is translated into different languages. In this way I only need to
change to aspx-file (html) of the page for each new language I want to
support, and all my codebehind logic will centralized to one place.
Example:
I have one original page in english called 'Page1_eng.aspx' which has a
corresponding 'Page1.cs'. Now if I want to have this page translated to
swedish I will create a new page called 'Page1_swe.aspx' which uses the same
codebehind file ('Page1.cs'). Of course - this requires I have the same web
controls and ID's on the page.
I just wanted to see what you think about this idea? I have done some tests
and it seems to work perfect.
Thanks
Thomas