DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Languages TS Auto-Configuration

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2011-03-16T12:23:32.410000000
Classification:langfeautoconfig
Keywords:language, fe, config, realurl
Author:Zorik Pavlenko
Email:zorik@zorik.net
Info 4:
Language:en

img-1 img-2 Languages TS Auto-Configuration - langfeautoconfig

Languages TS Auto-Configuration

Extension Key: langfeautoconfig

Language: en

Keywords: language, fe, config, realurl

Copyright 2009-2010, Zorik Pavlenko <zorik@zorik.net>Copyright 2004-2009, Karsten Dambekalns, <karsten@typo3.org>Copyright 2004, Kasper Skårhøj, <kasperYYYY@typo3.com>

This document is published under the Open Content Licenseavailable from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

Languages TS Auto-Configuration 1

`Introduction 3 <#__RefHeading__2733_1749758843>`_

What does it do? 3

Technical details 3

Introduction

What does it do?

The extension adds automatically typoscript configuration

for each website language defined in sys_language table.

When L get parameter is passed in FE, correct language configuration is used.

The script sets default typoscript values, so that they can be easily overridden in your website template typoscript.

It adds:

  • config.sys_language_uid,
  • config.language,
  • config.htmlTag_langKey,
  • page.meta.content-language,
  • config.htmlTag_dir

to typoscript template.

(if you dont know what they do - have a look at TSREF).

And, constants in TSCONF, that may be used in website template:

  • sys_language_uid
  • language – 2 letters (lg_typo3)
  • htmlTag_langKey
  • meta-content-language
  • lg_name_en
  • lg_name_local
  • flag – language icon filename

added in

TSFE.constants.langfeautoconfig.[sys_language_uid]

where “sys_language_uid” is integer.

Optionally adds realurl configuration for _DEFAULT website.

just install the extension and clear configuration caches TWICE (first time it writes new config in localconf, second - localconf is read by system)

IMPORTANT!

You must update Website languages and set their “Official Language” (ISO Code). This creates connection between Website Language and languages static tables. If the official language is not set – no configuration will be created.

Technical details

first “clear config cache” - ext_tables.php is triggered, new text file is created (typo3temp/langfeautoconfig.txt)

second “clear config cache” - ext_localconf is triggered, includes the text file and inserts typoscript for pages and website, localconf for realurl;

4