Altering the Language files 10 years 1 week ago #1

  • Erik Folberth
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 04:07
  • Europe/Bucharest
  • Posts: 4869
For Joomla 2.5 and Later Joomla Versions please Skip this first post, since it's deprecated!
Altering the Language file - old type - valid for older components, like for example Joomla 1.0.x

For those of you who wants to alter a language file here is a small example of how to do it. The language files are stored in the 'lang' directories of the components (old language files, NOT newer INI files).

All you have to do is replace the words marked in red.

Example 1:

define('but_back','Back');
define('but_close_window','Close this window!');
define('but_new','New');
define('but_save','Save');
define('but_search','Search');

Example 2:

RELATIONSHIP REQUESTS=Relationship requests
FRIENDSHIP REQUESTS=Friendship requests
MESSAGES=Messages
INTERACTIONS=Interactions
thePHPfactory Team
The topic has been locked.

Altering the Language file - ini.files 6 years 5 months ago #2

  • Erik Folberth
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 04:07
  • Europe/Bucharest
  • Posts: 4869
Languages files are stored as *.INI files under /language/.. folder of the Joomla site.

[Joomla dir]/administrator/language
and
[Joomla dir]/language


You want to create a new language file for other language?

Just rename one of the existing INI-files (ex. en-GB.com_articleman.ini)
with the specific sufix (ex. de-DE for German, etc.), in the desired language folder of Joomla,
NOT component folder!!! (ex. language/de-DE/) and translate the content text from the renamed file.

Attention! Case-sensitive! Also please note to follow the standard language suffix,
in order to obtain compatibility with components like Joomfish, etc. (where the case is).

Attention! Make sure that they are no syntax mistakes when editing a language files since it won't be parsed by Joomla. You can verify all this by using the Joomla Language Debug function in the Joomla backend.
For example:
WRONG SYNTAX:
COM_LOVEFACTORY_BATCH_ACTIONS_LABEL=""Batch"

CORRECT  SYNTAX:
COM_LOVEFACTORY_BATCH_ACTIONS_LABEL="Batch"

Attention! When editing the language files make sure you do not change the file encoding (ANSI not UNICODE) or the file INI extension.
thePHPfactory Team
The topic has been locked.

other language files Paths 5 years 6 months ago #3

  • Erik Folberth
  • Project Manager
  • Bukarest, Rumänien
  • Localtime: 04:07
  • Europe/Bucharest
  • Posts: 4869
If they are language strings which you do not find in the standard language ini files, then please check also under the following path
[root]\administrator\components\com_[component name like for example "rbids"]\thefactory\language\en-GB\
where depending on the used extension you might find the following language files:

en-GB.thefactory.about.ini
en-GB.thefactory.category.ini
en-GB.thefactory.config.ini
en-GB.thefactory.fields.ini
en-GB.thefactory.installer.ini
en-GB.thefactory.integration.ini
en-GB.thefactory.mailman.ini
en-GB.thefactory.payments.ini
en-GB.thefactory.positions.ini
en-GB.thefactory.themes.ini

This is valid for extensive extensions developed in our software house, which are using our own theFactory framework.
thePHPfactory Team
The topic has been locked.