Thursday 05 July 2007 7:25:01 am
I'm having some trouble with translation on a site. Even though everything <i>seems</i> right, only template text strings are translated, not regular content. I have this: settings/override/site.ini: [SiteSettings]
DefaultAccess=mysite_no
SiteList[]=mysite_no
SiteList[]=mysite_en
settings/siteaccess/mysite_en/site.ini.append: [RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
[ExtensionSettings]
ActiveExtensions[]=mysite_site
# This doesn't seem right, but settings aren't properly read
# from the extension without it. Putting it in override/site.ini
# 'destroys' the admin...
ActiveAccessExtensions[]=mysite_site
In extenstion/mysite_site/settings/site.ini.append: [RegionalSettings]
ShowUntranslatedObjects=enabled
SiteLanguageList[]=nor-NO
SiteLanguageList[]=eng-GB
TextTranslation=enabled
TranslationExtensions[]=mysite_site
The text strings from extension/mysite_site/translation/eng-GB/translation.ts make their way into the GUI (ie they work). However, all content is displayed in nor-NO, even content that has been translated. I have a siteaccess with the exact same setup and locales nor-NO, which work (ie, all text and content is norwegian). All content has been added in norwegian, then translated, may that have something to do with this? Also, showing the guts of a node with attribute(show) tells me (among other things) this: name string 'Norskt navn'
default_language string 'eng-GB'
current_language string 'nor-NO'
language_js_array string '[ { locale: 'nor-NO', name: 'Norsk (Bokmål)' }, { locale: 'eng-GB', name: 'English (United Kingdom)' } ]'
Anyone spot any errors on my end?
|