translation overwrites original

Author Message

Erland Flaten

Thursday 12 November 2009 5:32:32 am

Have some issues related to language and translations

 

I have an article, select edit, select translate with translate from "Norsk bokmål" as option. When the article is in edit view the line under the title is like this (Norwegian text):

 

"oversetter innhold fra Norsk (Bokmål) til Norwegian (Bokmål) "

 

As far as I understand I am translating the article to the language its already in. There is one english word in the line above: "Norwegian". The two flags are Norwegian.

 

If I finish and save the translation there will be english text in the Norwegian version.

 

The other issue is about the language switcher. It works on the frontpage, but not on article level when switching from Norwegian to English. But It works switching from English to Norwegian.

 

After pressing "eng" the URL is:

http://www.vintersportsregionen.no/eng/artikler/Norwegian-Skating-Festival

 

Should be:

 

http://www.vintersportsregionen.no/eng/Norwegian-skating/artikler/Norwegian-Skating-Festival

 

Her are some settings from the ini-files the might have something to do about it.

 

override/site.ini.append.php

 

[SiteSettings]
DefaultAccess=vsp
SiteList[]=vsp
SiteList[]=site
SiteList[]=nor
SiteList[]=eng
SiteList[]=siteadmin

 

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=vsp
AvailableSiteAccessList[]=site
AvailableSiteAccessList[]=nor
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=siteadmin
MatchOrder=uri
HostMatchMapItems[]

 

[RegionalSettings]
Locale=nor-NO
ContentObjectLocale=nor-NO
SiteLanguageList[]=nor-NO
SiteLanguageList[]=eng-GB
TranslationSA[nor]=Nor
TranslationSA[eng]=Eng

 

3 site accesses.
Two languages and one for the design extension.

 

siteaccess/nor/site.ini.append.php:

 

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=site
RelatedSiteAccessList[]=nor
RelatedSiteAccessList[]=siteadmin
ShowHiddenNodes=false

 

[DesignSettings]
SiteDesign=vsp
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base

 

[RegionalSettings]
Locale=nor-NO
ContentObjectLocale=nor-NO
ShowUntranslatedObjects=disabled
SiteLanguageList[]=nor-NO
TextTranslation=enabled

 

[ContentSettings]
TranslationList=eng-UK

 

siteaccess/eng/site.ini.append.php

 

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=site
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=nor
RelatedSiteAccessList[]=siteadmin
ShowHiddenNodes=false

 

[DesignSettings]
SiteDesign=vsp
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base

 

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-GB
TextTranslation=disabled

 

[ContentSettings]
TranslationList=nor-NO

 

The design extension.

 

siteaccess/vsp/site.ini.append.php

 

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=vsp
RelatedSiteAccessList[]=siteadmin
ShowHiddenNodes=false

 

[DesignSettings]
SiteDesign=vsp
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base

 

[RegionalSettings]
Locale=nor-NO
ContentObjectLocale=nor-NO
ShowUntranslatedObjects=enabled
SiteLanguageList[]
SiteLanguageList[]=nor-NO
SiteLanguageList[]=eng-GB
TextTranslation=enabled

 

[FileSettings]
VarDir=var/ezwebin_site

 

[ContentSettings]
TranslationList=

 

Erland Flaten
Lilllehammer, Norway

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:51:39
Script start
Timing: Jan 29 2025 23:51:39
Module start 'layout'
Timing: Jan 29 2025 23:51:39
Module start 'content'
Timing: Jan 29 2025 23:51:40
Module end 'content'
Timing: Jan 29 2025 23:51:40
Script end

Main resources:

Total runtime0.8658 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1328151.2109
Module start 'layout' 0.00430.0022 739.343836.6641
Module start 'content' 0.00650.8583 776.0078419.1250
Module end 'content' 0.86480.0010 1,195.132811.8516
Script end 0.8658  1,206.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3403160.0002
Check MTime0.00130.1474160.0001
Mysql Total
Database connection0.00060.070710.0006
Mysqli_queries0.812393.8229460.0177
Looping result0.00040.0467440.0000
Template Total0.840997.120.4205
Template load0.00200.232120.0010
Template processing0.838996.893020.4195
Template load and register function0.00040.042510.0004
states
state_id_array0.00070.083810.0007
state_identifier_array0.00160.179320.0008
Override
Cache load0.00180.21271400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.061810.0005
Fetch class attribute name0.00120.143210.0012
XML
Image XML parsing0.00010.013110.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00060.0732100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
22content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
17content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 46
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs