How to add missing language constants

How to add missing language constants

Currently, there are 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 a 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: 

  1. /modules/mod_djclassifieds_items/language/en-GB/en-GB.mod_djclassifieds_items.ini
  2. /modules/mod_djclassifieds_maps/language/en-GB/en-GB.mod_djclassifieds_maps.ini
  3. /modules/mod_djclassifieds_menu/language/en-GB/en-GB.mod_djclassifieds_menu.ini
  4. /modules/mod_djclassifieds_search/language/en-GB/en-GB.mod_djclassifieds_search.ini
  5. /modules/mod_djclassifieds_user_menu/language/en-GB/en-GB.mod_djclassifieds_user_menu.ini
  6. /modules/mod_djclassifieds_user_points/language/en-GB/en-GB.mod_djclassifieds_user_points.ini 

The corresponding paths for translated language files are: 

  1. /language/xx-XX/xx-XX.mod_djclassifieds_items.ini
  2. /language/xx-XX/xx-XX.mod_djclassifieds_maps.ini
  3. /language/xx-XX/xx-XX.mod_djclassifieds_menu.ini
  4. /language/xx-XX/xx-XX.mod_djclassifieds_search.ini
  5. /language/xx-XX/xx-XX.mod_djclassifieds_user_menu.ini
  6. /language/xx-XX/xx-XX.mod_djclassifieds_user_points.ini 

Joomla offers the "DEBUG LANGUAGE" option , which helps find bugs in the translation if it is not working properly.

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


      • Related Articles

      • Translation missing?

        If you see an incomplete translation to the desired extension you can easily update it. You can add missing translations to the language files,  You can update missing translations with language overrides, Contact us, and we will provide you with a ...
      • How to add social buttons to DJ-Classifieds

        DJ-Classifieds allows you to display social buttons from various sharing platforms. Take a look at a few simple steps on how to put them to the DJ-Classifieds single ads. Step1: Get the social buttons’ code Many sharing tools allow you to generate a ...
      • User profiles in DJ-Classifieds

        We want to show you how to manage the user profile in DJ-Classifieds. In our short article, you can learn how to make a profile, see how the registration process goes and check how the user's profile looks on the front page. The administrator can ...
      • How to add new extra field in DJ-Classifieds

        It's easy to add a new custom field in DJ-Classifieds. The extra fields can be used in the Category, Contact, Profile, and the Ask Seller Form. Just follow this simple tutorial to get it working. We will show the example assigning the field to the ...
      • GDPR Agreements in DJ-Classifieds forms

        DJ-Classifieds ver. 3.7.3 introduced additional form controls, which compliant with the General Data Protection Regulation (GDPR). In this article, we would like to demonstrate how to configure those controls. In DJ-Classifieds there are five types ...