TYPO3/Configure language and currency

Arcavias supports multiple languages and currencies in one shop site. The site/language/currency combinations available for customers must be configured in the locale panel of the administration interface.

Language configuration
The default language is English if nothing else is configured via TypoScript. To change the language for a complete page tree, insert the following line into the setup section of the root page of the (sub-)page tree:

config.language = 

The language code must be one of the codes that is enabled and used in the locale panel of the administration interface for the site. You can use two letter ISO codes like "fr", "es", etc. or ISO language codes in combination with the country code like "de_CH".

To use the french translations, product names and descriptions:

config.language = fr

For the Swiss variant of the German translations, product names and descriptions:

config.language = de_CH

If the translation for a language variant is not available, the base language will be used, e.g. German translations would be used if the Swiss variant isn't available.

Note: The fallback to the base language is only available for translations! Product names, descriptions and all other texts in the shop need to be available in the language variant. Otherwise, the product labels (or more generally speaking, the item labels) will be used.

Manual currency configuration
By default, Euro is used as default currency if nothing else is configured. You can change this via TypoScript by using the setting:

plugin.tx_arcavias.settings.mshop.locale.currency = 

The currency must be enabled and used in the locale panel of the administration interface for the site like the language.

To use US Dollar as default currency for the site and the page tree, add this configuration to the setup section of the root page of the (sub-)page tree:

plugin.tx_arcavias.settings.mshop.locale.currency = USD

Using the locale selector
Since version 1.3 of the Arcavias TYPO3 extension, there's a plug-in for a language and currency selector available. It allows users in the front-end to change the used language and currency. In the TYPO3 context, the language is normally determined by the "config.language" TypoScript variable. Therefore, if only the currency selector should be shown, use this configuration:

plugin.tx_arcavias.settings.client.html.locale.select.default.subparts { 0 = currency }

The generated list of currencies or language/currency combinations depends on the configured list in the locale panel of the administration interface.