Breadcrumbs

Home / Support Center / FAQ / Tutorials / DJ-Classifieds FAQ / How to add missing language constants

Top Menu

Content

How to add missing language constants
How to add missing language constants 5.0 out of 5 based on 1 votes.

Add missing language constants

Currently there is 20 language packs for DJ-Classifieds available.

You can find them all here: https://dj-extensions.com/downloads/cat_view/130-dj-classifieds/138-language-packs

Once the language pack of the chosen language is installed, the component will use it automatically if your front/back-end language is set to the corresponding one.

Please note that the component's language pack you downloaded may be outdated and you may need to add missing language constants to it.

You will know that language pack is missing the latest language constants if you see on your site texts like:

COM_DJCLASSIFIEDS_SOME_TEXT_UNAVAILABLE_IN_COMPONENT_LANGUAGE_PACK

or

MOD_DJCLASSIFIEDS_MODULE_SOME_TEXT_UNAVAILABLE_IN_MODULE_LANGUAGE_PACK

In such case, please do as follows:

1. Copy the missing language constants (especially the ones you see on your site):

a) (front-end component texts)

from:
components/com_djclassifieds/language/en-GB/en-GB.com_djclassifieds.ini

into:
language/xx-XX/xx-XX.com_djclassifieds.ini

(where xx-XX is your language code)

We have prepared and constantly updating original language files (available for all active subscribers). All you need to do is RENAME the files to reflect your language code and COPY it to the respective folders as described below.

b) (back-end component texts)

from:
administrator/components/com_djclassifieds/language/en-GB/en-GB.com_djclassifieds.ini

into:
/administrator/language/xx-XX/xx-XX.com_djclassifieds.ini

2. After copying, translate them from English to your language.

3. Do the same for module DJ-Classifieds language files if there is a need - paths to module's default English language files are:

/modules/mod_djclassifieds_items/language/en-GB/en-GB.mod_djclassifieds_items.ini
/modules/mod_djclassifieds_maps/language/en-GB/en-GB.mod_djclassifieds_maps.ini
/modules/mod_djclassifieds_menu/language/en-GB/en-GB.mod_djclassifieds_menu.ini
/modules/mod_djclassifieds_search/language/en-GB/en-GB.mod_djclassifieds_search.ini
/modules/mod_djclassifieds_user_menu/language/en-GB/en-GB.mod_djclassifieds_user_menu.ini
/modules/mod_djclassifieds_user_points/language/en-GB/en-GB.mod_djclassifieds_user_points.ini

The corresponding paths for translated language files are:

/language/xx-XX/xx-XX.mod_djclassifieds_items.ini
/language/xx-XX/xx-XX.mod_djclassifieds_maps.ini
/language/xx-XX/xx-XX.mod_djclassifieds_menu.ini
/language/xx-XX/xx-XX.mod_djclassifieds_search.ini
/language/xx-XX/xx-XX.mod_djclassifieds_user_menu.ini
/language/xx-XX/xx-XX.mod_djclassifieds_user_points.ini

Joomla offers the "DEBUG LANGUAGE" option, which is very helpful in finding bugs in the translation if it is not working properly.

More informations you can find here: https://docs.joomla.org/Debugging_a_translation


Found this article interesting? Subscribe for more.
Or share this article with your friends.
Tuesday, 16 June 2015 06:19
 
User Rating:  (1)
PoorBest
 

Footer Menu