Kapitel 17. How to translate Moregroupware

Inhaltsverzeichnis

Structure of Moregroupware
Moregroupware lang-file
Using newslines for long text
Variables inside lang files
Test new language
Common Errors
When adding a completely new language...

This document describes the way of localize moregroupware or special modules of moregroupware. It should give the reader the chance to add a complete new language to moregroupware or to a module within the moregroupware framework.

Structure of Moregroupware

The graphic below demonstrates the directory structure of moregroupware. On the first level you have the modules, in the shown tree you can see the module "admin"; and the module "calendar". There are also some folders which are on the first level which are not a module but other application based directories, but thats not the focus of the document. We will use the "calendar" module for a detailed explanation:

Abbildung 17.1. Moregroupware Tree

Moregroupware Tree

The lang folder contains language files for a certain language.

A moregoupware language file has the following file name: m.x.lang, where m = module name, x = international language code.

[Wichtig]Wichtig

Each module has this language structure, or at least, it must have it to be moregroupware compliant.