Book Image

TYPO3 Extension Development

By : Dmitry Dulepov, Adrian Zimmerman
Book Image

TYPO3 Extension Development

By: Dmitry Dulepov, Adrian Zimmerman

Overview of this book

Table of Contents (13 chapters)


Localization is one of the important topics in TYPO3. TYPO3 is being used all over the world and users prefer to see it in their own language. The same applies to extensions. This section covers issues related to localization.

Being Localization-Aware

Different countries use different formats for numbers and dates. While TYPO3 includes configuration parameters for date and time, it is better to make such parameters configurable in an extension. It is preferable to use sprintf() for formatting numbers. Formatting dates is more complex because there are two choices: the date() and the strftime() functions. Localization-aware plugins should use the strftime() function because it has much better localization support than the date() function. In particular, it can show months and days according to the current language and locale.

Localizing Strings

A plugin should not have hard-coded strings. All strings should be in the locallang.xml file. This ensures that the plugin can be translated...