I'm preparing a site that i
want to be multi-language. I've searched and found
some ways to do multi-language sites. What's the best way?
I don't want to have different
site, different structures or different contents for each language. Neither do
i want to have xslt methods to select the appropriate fields. So I defined each document
type to have one tab with the set of fields repeated for each language. Suffixing
the extra languages fields with the country code.
I've made a little proof-of-concept
and developed a behind-code class that inherits from
umbraco.cms.businesslogic.web.Document and exposes only the fields that refer
to the selected language. In the template instead of using the umbraco field
tags i use my class filtered fields to merge the document attributes.
Is this a good approach?
Will exists performance costs too expensive that i'm not seeing now? Or there
will be other negative consequences?
Multilanguage sites 1:1
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} p {mso-style-noshow:yes; mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle15 {mso-style-type:personal; mso-style-noshow:yes; mso-style-unhide:no; mso-ansi-font-size:11.0pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
Hi everyone (again :) :
I'm preparing a site that i want to be multi-language.
I've searched and found some ways to do multi-language sites. What's the best way?
I don't want to have different site, different structures or different contents for each language. Neither do i want to have xslt methods to select the appropriate fields.
So I defined each document type to have one tab with the set of fields repeated for each language. Suffixing the extra languages fields with the country code.
I've made a little proof-of-concept and developed a behind-code class that inherits from umbraco.cms.businesslogic.web.Document and exposes only the fields that refer to the selected language. In the template instead of using the umbraco field tags i use my class filtered fields to merge the document attributes.
Is this a good approach? Will exists performance costs too expensive that i'm not seeing now? Or there will be other negative consequences?
Thanks everyone for your help,
FS
is working on a reply...