Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
xml:lang=YOUR LANG de en ... [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

xml:lang=YOUR LANG de en ...

FIXME überstzen

Forum: http://forum.phpwcms.org/viewtopic.php?p=112333#p112333

Author: Jensensen


You probably noticed that –> config

$phpwcms['default_lang']      = 'ABC';  //default language

is responsible for the xml:lang source code of the page, like for example:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ABC" lang="ABC">

But what happens when you have a multilingual site [SEO] running with many different site structure levels for each language (so called 'trees')?

The visitor and any –> search engine will get –> DEFAULT =⇒ 'ABC' –> for EVERY PAGE in –> each tree - EVEN for those pages which content ACTUAL was written for example in ES, IT, SE, DK, UK. FR, EN…

You'll succeed by –> CUSTOM templates that will override –> CONF

Just ADD [this conf-var!]:

$phpwcms['DOCTYPE_LANG'] = "whatever_lang";

to

[a custom template : for me THIS was new because THERE never was DOCTYPE_LANG in]

/template/inc_settings/template_default/MYcustom_settings.php

Google code: http://code.google.com/p/phpwcms/issues/detail?id=147

or frontend_init something


Bildunterzeile untersch. (mehrsprachig) trotz ContenAlias

Forum: http://forum.phpwcms.org/viewtopic.php?p=129056#p129056

Autoren: kvika, Oliver Georgi, Heiko H.



” … Gibt es irgendwie die Möglichkeit, dass ich je nach Sprache eine andere Bildunterzeile angezeigt (und damit auch verlinkt) bekomme?
mein “Wunsch”:
Klick auf Bildunterzeile die je nach Sprache unterschiedlichen Link enthält→ Pferdedetails auf englisch / bzw. deutsch etc… ”

” … Es geht derzeit nur mittels @@Tag@@ simpel. Dann kannst Du quasi default den Link einstellen und dann in der Übersetzungsdatei anpassen:
template/template_lang/ … ”

” … vielleicht hab ich den @@Tag@@ falsch verstanden…
Ich dachte dieser richtet sich nach der Browsersprache?
Das würde das Problem höchstens halb “erschlagen”.
Eine andere Idee als den Referer abzufragen hätte ich aber auch nicht. … ”

” … Du kannst das auch nutzen – mit entsprechendem Script – um die Sprache auf Basis des aktuellen Seitenbaumes fix zu definieren.

<?php
 
/**
* language setting based on site tree
*/
$phpwcms['id_lang'] = array(
   1   => 'de', // default
   2   => 'en',
   3   => 'fr'
);
 
if(isset($LEVEL_ID[1]) && isset($phpwcms['id_lang'][ $LEVEL_ID[1] ])) {
 
   $phpwcms['DOCTYPE_LANG'] = $phpwcms['id_lang'][ $LEVEL_ID[1] ];
   $phpwcms['default_lang'] = $phpwcms['id_lang'][ $LEVEL_ID[1] ];
 
}
 
$phpwcms['i18_lang'] = $phpwcms['default_lang'];
 
?>


deutsch/technik/aufruf-interner-funktionen/xml-sprache.txt · Last modified: 2011/03/11 07:54 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79