Zen Cart Logo
Forums / General Questions / The language changes the layout!?

The language changes the layout!?

Views: 563

Results 1 to 7 of 7
23 Aug 2012, 4:19 AM
#1
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

The language changes the layout!?

How is it possible? Is there language dependent css-info?:blink:

23 Aug 2012, 6:31 AM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: The language changes the layout!?

Link to site?

You can use language-specific css, that's built into ZC. See the docs folder.

But if you are not using language-specific css and are seeing changes when you change the language, something is broken or missing somewhere in one of the sets of language files you are comparing.

23 Aug 2012, 7:09 AM
#3
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: The language changes the layout!?

Yes, well I do get some blanks, when using/switching from Finnish to Swedish - I assume typo in some define-statement, but haven't been able to find it so far...
The address: dtc.fi/tge

23 Aug 2012, 7:57 AM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: The language changes the layout!?

Its as quick to copy groups of language files from the good to the bad or vice versa on your test server, to narrow down when the problem clears.

23 Aug 2012, 8:39 AM
#5
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: The language changes the layout!?

Would you happen to know any file comparison that would compare "characterwise" not per line? I would like to see the true differences so I could spot the problem better!? Linux would be a dream, but unfortunately I have Windows7.

23 Aug 2012, 9:03 AM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: The language changes the layout!?

Beyond Compare flags a character difference as a line difference. But you are comparing filesets that are supposed to be different so it will flag them all.
Thats why I suggested a more brute approach of overwriting the "bad" fileset with groups of files from the good fileset (mixing the languages of course) until the problem goes away. Then you can soon find the offending single file...maybe there's more than one.
This is better done with Beyond Compare as you can see easily which ones you have overwritten.

23 Aug 2012, 11:16 AM
#7
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: The language changes the layout!?

It was the email_extras.php - probably the copyright at the bottom of the page.