17 votes
Accepted

How to manage language variables inside JavaScript?

Joomla has a certain method for this. First, in view.html.php add all strings, what needs to be translated with this: JText::script('VALIDATION_ERROR'); This will add your string to javascript ...
Rene Korss's user avatar
  • 3,208
6 votes
Accepted

JText - multilingual string order

Add further abstraction. JText::sprintf('COM_MYCOMPONENT_DATETIME_AGO', $num, JText::_('SHOUT_TIME'), JText::_('SHOUT_AGO')); English language COM_MYCOMPONENT_DATETIME_AGO="%1$s %2$s %3$s" German ...
Nagarjun's user avatar
  • 2,991
6 votes
Accepted

How to adjust search keyword sanitization settings as language override?

Look for methods called set<PROPERTY>Callback on the same API documentation you linked. E.g. to override the lower limit use Joomla\CMS\Language\Language::setLowerLimitSearchWordCallback(). I'm ...
Sharky's user avatar
  • 10.5k
5 votes
Accepted

Add custom language to content language

Hope this can help you. You need to create a Languaje Content entry for your language. Go to Extensions->Language Manage -> Content And create a new record as shown in the picture In order to get ...
Piero Marsilio's user avatar
5 votes
Accepted

Language tags in article content

You can use this language plugin: http://extensions.joomla.org/extension/easy-language Once installed in your article you can do: {lang en}Monday{/lang}{lang es}Lunes{/lang} It will display the ...
Piero Marsilio's user avatar
5 votes
Accepted

Joomla 3.9 not reading language override strings for English only

I was not able to duplicate your issue. I used the Joomla core Beez3 template to test this, where the template by default has the language files in main (Joomla root) Language folder and at the same ...
Zollie's user avatar
  • 2,876
4 votes

Redirection to wrong language since 3.4.3

This is indeed a bug and has been fixed here: https://github.com/joomla/joomla-cms/pull/7427 The fix will be available in Joomla 3.4.4 If you need a quick fix now, see my comment above.
akame's user avatar
  • 231
4 votes
Accepted

Module title not getting from language file

The problem is I need to keep the language files inside en-GB folder <languages> <language tag="en-GB">language/en-GB/en-GB.mod_quickwrk.ini</language> <language tag="en-GB"...
Malaiselvan's user avatar
  • 2,701
4 votes
Accepted

Language files in a plugin

Since Joomla 3.1 it is not necessary to expand the constructor any more, like farahmand's answer. You can easily write / set the $autoloadLanguage like class myPlugin extends JPlugin { /** *...
Tom Kuschel's user avatar
4 votes
Accepted

Updating component language file without reinstalling it

The language files are loaded again (from their source) on each page load. You don't need to reinstall the component each time. Are you writing to the right file?
Hackwar's user avatar
  • 156
4 votes
Accepted

Remove 'There are no articles in this category.' Text

Got to; content > articles > options > category tab > No Articles Message > hide / show
TheOrdinaryGeek's user avatar
4 votes
Accepted

language file naming conventions

Use non-prefixed filenames in J4 (3.10 also supports this). Nothing is stripping the prefix, some core manifest files just haven't been updated.
Sharky's user avatar
  • 10.5k
3 votes

Remove language code from url

As far as I know what you want isn't possible. The /en/ is needed so Joomla knows that you want to change the language. Because with www.example.com/company/contact.html Joomla would look in your ...
Bakual's user avatar
  • 5,557
3 votes

Is there a way to change the column names in user manager?

Yes, it's possible using language overrides. In your admin area, go to Extensions -> Language(s), and select Overrides in the left menu. Make sure you select the desired language in the "...
johanpw's user avatar
  • 13.3k
3 votes

Joomla 3.4.4 - URL Problems with alias of products in submenu

I FOUND THE SOLUTION!!! Temporary change menu item type to Text Separator, modify alias to your liking and change type back to External URL. REFERENCE:http://www.mysysadmintips.com/other/web/...
Gabriel91's user avatar
  • 223
3 votes
Accepted

Save in logs files changes of Language Manager

Usually you would use "onContentBeforeSave" function of content-type plugin, but for some reason com_languages doesn't launch "onContentBeforeSave" and "onContentAfterSave" events. However there is ...
Krossfire's user avatar
3 votes
Accepted

How to rewrite JText to get my custom text translations from Database and not from files

Instead of overwriting or modifying the JText class why not just write a function call function in your model that retrieves your translation from the database and return the string? Echo the string ...
Terry Carter's user avatar
  • 1,787
3 votes
Accepted

How to add a language pack (or language specific string overrides) to a template?

There are a couple of ways to deal with this. 1. Create a German language ini file for your template. a. Go to languages folder -> EN-GB b. Spot your template's EN-GB language file: e.g. en-GB....
FFrewin's user avatar
  • 19.6k
3 votes

Language files in a plugin

Load the language files in the plugin's constructor like so: function __construct(&$subject, $config) { $lang = JFactory::getLanguage(); $lang->load('plg_system_myplugin', dirname(...
Farahmand's user avatar
  • 2,285
3 votes
Accepted

Home page a mix of language

This is the title of the Module - that is hand-written and editable. You can write anything you want on it. If you go to the Modules' Manager, you will be able to find this module - click to edit it ...
FFrewin's user avatar
  • 19.6k
3 votes
Accepted

Export language overrides

Like all languages strings, overrides are stored in .ini files in language directories: /administrator/language/overrides/ /language/overrides/
Sharky's user avatar
  • 10.5k
3 votes
Accepted

Load language file in view constructor

JROOT is not a valid path constant. Change it to JPATH_ROOT. Or use JPATH_ADMINISTRATOR instead of JROOT . DS . 'administrator'
Sharky's user avatar
  • 10.5k
3 votes
Accepted

Using language constants in external file

Your language files are not loaded. Load them with Joomla\CMS\Language\Language::load(). This example loads administrator/language/en-GB/en-GB.com_content.ini file: $app = JFactory::getApplication('...
Sharky's user avatar
  • 10.5k
2 votes

MVC component language file not overriding '_N_ITEMS_DELETED' string

Try to put COM_COURSELIST_N_ITEMS_DELETED="Successfully deleted course(s)" into file admin/language/en-GB/en-GB.com_courselist.ini NOT into en-GB.com_courselist.sys.ini The .sys.ini is rather ...
fruppel's user avatar
  • 3,723
2 votes

Getting current language in Joomla 3 in external script seems difficult.. but works fine in J2.5

I use the default Joomla multilingual management, no falang, no third-party plugin. Same problem, and I spent 1 hour to find the solution. The key is, don't try to use JFactory::getLanguage(). ...
user11516's user avatar
2 votes
Accepted

Change administrator site language through phpmyadmin

Based on the error you provided in the screenshot, you need to go to the following file: public_html/hammer/administrator/language/fo-FO/fo-FO.lcalise.php at the top of the file, you will see the ...
Lodder's user avatar
  • 26.8k
2 votes

Change administrator site language through phpmyadmin

So you are not able to access the backend correct? You just see a white page when you try to do so? if that is the case you should enable error reporting in order to see what is causing the issue. ...
Theodore Gavriilidis's user avatar
2 votes

Add text to registration form

You can find this string in this file - /components/com_users/models/forms/registration.xml I hope it will help you :)
Joomler's user avatar
  • 1,791
2 votes

Module title not getting from language file

The proper method is like follows, In your module's xml file it should have language file like follows: <languages> <language tag="en-GB">en-GB.mod_latesttweets.ini</language&...
Nehal's user avatar
  • 293
2 votes
Accepted

JText language doesnt work inside external ajax file

After you're require_once calls, add the following to initialise the applications: $mainframe = JFactory::getApplication('site'); $mainframe->initialise(); Then load the component's language file:...
Lodder's user avatar
  • 26.8k

Only top scored, non community-wiki answers of a minimum length are eligible