Page 1 of 1

html lang showing just "code" instead of correct "de"

Posted: Wed Jun 01, 2016 5:28 pm
by napok
Hi.
I have noticed that the first line of my page source,
when using the German version of the site, the language identifier does not show in my alternative language German.

"DE-de" or "de" but the word “code”. (https://mysite.co.uk/de/)
<!DOCTYPE html>
<html dir="direction" lang=“code”

In the english version it is right with “en” (https://mysite.co.uk)
<!DOCTYPE html>
<html dir="ltr" lang="en"

Would you know how to rectify this, so it shows the correct language identifier also in the german version?

Kind regards,
Alexandra

Re: html lang showing just "code" instead of correct "de"

Posted: Wed Jun 01, 2016 9:00 pm
by IP_CAM
this is, how opencart works. But if you want to have the language displayed, as part of a link, check here:
http://forum.opencart.com/viewtopic.php ... 35#p618822
Ernie

Re: html lang showing just "code" instead of correct "de"

Posted: Wed Jun 01, 2016 9:10 pm
by napok
Thanks, Ernie.
My site
https://adfk.co.uk
is already
https://adfk.co.uk/de/
in the German version due to SEO URLs and the language pack.

It was just in the page source, that I was advised that there was only the "en" in the english version

Code: Select all

lang=“en“
but in the German version,there is

Code: Select all

lang=“code“
instead of

Code: Select all

lang=“de“
like it should be.

Best Regards,
Alexandra

Re: html lang showing just "code" instead of correct "de"

Posted: Sat Jun 04, 2016 11:06 pm
by OSWorX
Just to close this successfully: customer used my German Language Translation.
Shopsystem is 2.1.0.2 and in language definitions, the language path was incorrect defined.
That was all.