User Rating: 2 / 5

Star ActiveStar ActiveStar InactiveStar InactiveStar Inactive
 

Because Joomla can be made into multiple languages. I would not set such a label Title or message headers. Code directly into the But to set the value of words in the language file, which is located in the language split into 2 parts: the admin language file language and file of the Site.

 

Create Language files in the Admin

Go to /administrator/language Followed by the language code, such as en-GB fr-FR th-TH enter, you will find ini file to set the file name in the format of Joomla began with the language code followed by the extension.

For example:

- Thailand's com_users language file to the file name. th-TH.com_users.ini 

- English com_users file is the file name. en-GB.com_users.ini 

- English mod_login file is the file name. en-GB.mod_login.ini

 

Usually if you can do it, it will load the file extension of the language of that section to such use com_users system will load the file. th-TH.com_users.ini to 

But if the other parts like com_menu already has the required message from com_users to create a file extension. Sys.ini to come by.

For example:

for example, 

- Thailand's com_users language file to the file name. th-TH.com_users.sys.ini 

- English com_users file is the file name. en-GB.com_users.sys.ini 

- English mod_login file is the file name. en-GB.mod_login.sys.ini

 

Create Language file in the Site

Into the folder / language folder, followed by the language code, such as en-GB fr-FR th-TH enter, you will find ini file to set the file name in the format as part of the Joomla admin.

After creating the file Specify the file name successfully Later set the variable and the text.

COM_MENUS="Menus Manager"
COM_MENUS_ADD_MENU_MODULE="Add a module for this menu type."
COM_MENUS_ADVANCED_FIELDSET_LABEL="Advanced Options"
COM_MENUS_BASIC_FIELDSET_LABEL="Basic Options"

The above code Left side is the variable that will be used instead of text. Be all caps The right side is the text in the variable itself.

 

For example, adoption COM_MENUS be brought into use.

<?php echo JText::_('COM_MENUS'); ?>

 

 

Chapter 15 - Media (css,js,img) Component Development