Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:20:15 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Wrong language in sourcecode <!Doctype...  (Read 412 times)
sax

Offline Offline

Posts: 3


« on: November 15, 2011, 07:48:32 PM »

Hi,
I have a new installation of Version 2.8.2, Revision 1506.
I set language in site-options, general-options and in database to German.
If I look in sourcecode I get: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

What's wrong with it?
Regards Mat
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: November 15, 2011, 07:58:42 PM »

The output depends on the template. You can modify the template (either offline or online with AFE) to incorporate this "feature". For intructions on how to modify your template please check our Helpsite, especially the section Designer Guide.

The Carset issue (Metatag) is explained here: http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php#anker2

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

sax

Offline Offline

Posts: 3


« Reply #2 on: November 15, 2011, 09:19:59 PM »

Thank you for the info.
I found no module AFE, what is it?
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: November 15, 2011, 10:06:49 PM »

The full name of the module is "AddOn File Editor" ... it can be found in the Forum, AMASP and here: http://www.websitebaker2.org/en/add-ons/modules/admin-tools.php

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

sax

Offline Offline

Posts: 3


« Reply #4 on: November 17, 2011, 02:11:29 AM »

Thanks I got it.
If I understand that right, I have to create an own template for every language, just to set the doctype.
Isn't there an easier solution?

Regards Mat
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1254


« Reply #5 on: November 17, 2011, 02:46:17 AM »

If I look in sourcecode I get: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

What's wrong with it?

use this...
Code:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo strtolower(LANGUAGE); ?>" lang="<?php echo strtolower(LANGUAGE); ?>">

... it should solve your problem with one template only.
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!