Hi,
this is a note by Manuel from WikiMedia Switzerland, having a good tip
for a multilingual wiki. Will follow-up later (at the moment, only a
hand full of people can modify the wiki configuration).
Thanks, Manuel!
Florian
Manuel Schneider wrote on 2010-10-10 20.42:
Hallo Flo,
hier die Daten zur Mehrsprachigkeit:
== Links / Artikelnamen ==
Artikelname/Sprachkürzel
also zB. Tasks/de, Tasks/fr
Tasks entspricht Task/en
== Berücksichtigung der Spracheinstellung anonymer Nutzer ==
require_once('extensions/LanguageSelector/LanguageSelector.php');
$wgLanguageSelectorDetectLanguage = LANGUAGE_SELECTOR_PREFER_CLIENT_LANG;
$wgLanguageSelectorLocation = LANGUAGE_SELECTOR_MANUAL;
== Berücksichtigung der Spracheinstellung angemeldeter Nutzer ==
require_once( 'extensions/Polyglot/Polyglot.php' );
$wfPolyglotExcemptNamespaces = array(
NS_CATEGORY,
NS_TEMPLATE,
NS_IMAGE,
NS_MEDIA,
NS_SPECIAL,
NS_MEDIAWIKI
);
$wfPolyglotExcemptTalkPages = true;
$wfPolyglotFollowRedirects = true;
== "lang"-Tag für mehrsprachige Ausgabe (bspw. in Templates) ==
require_once( 'extensions/Multilang/Multilang.php' );
== Lokalisierter Seitentitel ==
überschreibt den vom Wiki generierten Titel aus dem Artikelnamen:
{{DISPLAYTITLE:Hauptseite}}
== Sprachtoolbar ==
<div class="divlang">
<ul>
<li class="firstlang">[[{{NAMESPACE}}:{{BASEPAGENAME}}/de|Deutsch]]</li>
<li>[{{SERVER}}/{{NAMESPACE}}:{{BASEPAGENAMEE}}/ English]</li>
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/fr|Français]]</li>
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/it|Italiano]]</li>
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/rm|Rumantsch]]</li>
<li class="pagetitle">Article Title: {{PAGENAME}}</li>
</ul>
</div>
== Sonstiges ==
$wgNamespacesWithSubpages[NS_MAIN] = true;
$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;
http://www.wikimedia.ch/index.php?title=Main_Page/de&action=edit
Grüsse,
Manuel
--
Florian Effenberger <floeff@documentfoundation.org>
Steering Committee and Founding Member of The Document Foundation
Tel: +49 8341 99660880
Fax: +49 8341 99660889
Mobile: +49 151 14424108
Skype: floeff | Twitter/Identi.ca: @floeff
--
To unsubscribe, e-mail to website+help@libreoffice.org
List archives are available at http://www.libreoffice.org/lists/website/
All messages you send to this list will be publicly archived and cannot be deleted.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.