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
5 votes
Accepted

How to create a custom 404 Error page for every language

you also could use the standard 404 (or similar) php-file of your template if it already exists. The Joomla! alias standard would be /404 or /404.html according to the global configuration for the ...
PCo's user avatar
  • 86
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,926
4 votes
Accepted

Multilingual Joomla site with multiple domains

There is a nice free plugin Language Domains from Yireo, which allows you to switch the domain-name as soon as a specific language is selected. Each domain is bound to a language, by configuring ...
Mikan's user avatar
  • 3,007
4 votes

Language switcher doesn't show all languages

To create a multi-language website you need to: install and enable other languages enable language plug-in assign default menu item for each language create content languages for each language Make ...
Artur Stępień's user avatar
3 votes

How to create many pages with the same content except for one variable?

Check the JED for any suitable Mass Content extensions which can help with uploading bulk articles and menu options: https://extensions.joomla.org/tags/mass-content For example, I have used OSContent ...
Neil Robertson's user avatar
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.7k
3 votes
Accepted

Using Language Constant File in a Module

Yes, you set them up in a similar way to components. In your module directory create a folder language, and then a subfolder for the language within that, and into that subfolder put your language ...
Robbie Jackson's user avatar
2 votes

Multilingual Joomla site with multiple domains

Try adding the following to your .htaccess file. RewriteEngine on RewriteRule ^se(.*)$ http://www.mydomain.se$1 [R=301,L] RewriteRule ^dk(.*)$ http://www.mydomain.dk$1 [R=301,L] If you only have a ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

Multilingual site: Why do I need the language "all"?

Since version 1.7, Joomla requires Home menu item for 'All' languages, as soon as you enable System - Language Filter plugin and have Language Switcher module published. That menu item can be stored ...
Mikan's user avatar
  • 3,007
2 votes
Accepted

How to insert a link to some file in multilangual website

You have this error because the default language in your site is "en", the language is managed by joomla!, not by directories, we have some solutions: First of all, maybe the best way is create a new ...
AlejandroVega's user avatar
2 votes
Accepted

One link to point a multilanguage article

Joomla router just doesn't work that way. Only way you could have a link /article-for-all is to create a menu for each article and to manualy set that alias in both menu items, because Search ...
Mikan's user avatar
  • 3,007
2 votes

Joomla 3.0 direct link to file with multi language

Not sure of your configuration for multi-language but I suspect the /en/ is coming from the language plugin config. As a workaround, you could create a new "hidden" menu item for an external location ...
BodgeIT's user avatar
  • 677
2 votes

Duplicated template files

all the language files of the frontend side template is located in the language folder. for example if you have protostar template : en-GB.tpl_protostar.ini en-GB.tpl_protostar.sys.ini then these ...
Joomler's user avatar
  • 1,811
2 votes

How to create a custom 404 Error page for every language

Based on: How to detect the current language of a Joomla! website? Creating a Custom 404 Error Page $lang = JFactory::getLanguage(); $result = $lang->getTag(); if (($this->error->getCode(...
user9849's user avatar
2 votes

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

So, in my case it was that the strings were hard-coded into the template through the inclusion of a single language pack in the template language folder for English. What I did was to create my own ...
nizz0k's user avatar
  • 537
2 votes

Fallback language when translation does not exist

Duplicating untranslated articles is a good option. Also, you can set the language of untranslated articles to "All", until you have a translation, then set the correct language for each translation. ...
Mohamed Abdelaziz's user avatar
2 votes

How to use joomla language in a script?

According to this issue, as of Joomla 3.3.0 core.js was rewritten in jQuery, including Joomla.JText. If you're using that version or later and core.js is loading on our page, then the Mootools issue ...
Drew G's user avatar
  • 890
2 votes

How to create many pages with the same content except for one variable?

Personally, I would make the first one. Then download the database file from PHPMyAdmin as a CSV file. If you want you can only export the relevant tables for ease. Then I would use Excel or Google ...
Eoin's user avatar
  • 1,909
2 votes
Accepted

How to create many pages with the same content except for one variable?

The simple administration method would be Install Regular Labs' Add To Menu plugin After saving the first article, click the Add To menu button and quickly add Next, do Save as copy and change the ...
Nadal's user avatar
  • 188
2 votes

Change user default language programmatically

If you want to change the language of the site, you can store the language in the user param language and you will have to load it on your condition on plugin events such as onAfterRoute or ...
Pratyush's user avatar
  • 496
2 votes
Accepted

Translate only one string in component rest of component stay with default language

There is an alt method of the Text class that appears to allow you display translations in another language, https://api.joomla.org/cms-3/classes/Joomla.CMS.Language.Text.html The example is not ...
Irata's user avatar
  • 3,822
2 votes
Accepted

Possible to associate item with itself?

I'm presuming it's the Joomla Language Switcher module which you're using to switch languages. In this case, this module has to generate the links which are behind the little flag symbols. It does ...
Robbie Jackson's user avatar
2 votes

Multilingual site where several countries share the same language

I have done similar to this before, where the end user was not happy using FR for French because they use a variant of French for which a language pack doesn't exist. In the end, I duplicated the ...
Grant G's user avatar
  • 714
2 votes
Accepted

Multilingual site where several countries share the same language

I have managed to reproduce your use case in a development environment using Docker. Here is a short video for the demo: Video demo of how it works Here is the link to the plugin source code, zipped ...
mralexandrelise's user avatar
2 votes

How to get Joomla article association?

You can use JLanguageAssociations::getAssociations. This function will return an array containing associated items. You can also check if the language filter Items Associations parameter is enabled ...
Sagar Shah's user avatar
1 vote

Generate link to a page with specific language

If you have a multilingual site and your articles are associated, enable Show Associations option in com_content configuration.
Sharky's user avatar
  • 11.1k
1 vote

Installing Language Filter and Language Code system plugins

Ok my bad, they were installed. I failed to find them because their names were translated into French in the administration panel...
Virus721's user avatar
  • 121
1 vote

Call Joomla Native Language Title

try this : <?php $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $this->language = $doc->language; $lng=explode('...
David Bereihi's user avatar
1 vote
Accepted

How to get the active language variable in javascript on a multilingual site?

$lang, which I assume in your case derives from $lang = JFactory::getLanguage(); will give you the entire language object. From this object, you can then access one of it's properties. So to get the ...
Lodder's user avatar
  • 26.9k

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