Skip to main content

Questions tagged [language]

For questions related to making an extension support many languages, adding translation strings, creating language overrides etc. * For questions related in creating Joomla sites with multi-lingual content, better use the multilingual tag.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

Text::_() with an alternate language not working

My custom component has a need to render pages in different languages based upon some signals not included in the standard Joomla system. Consequently, I have the following code to trigger a change of ...
John Rix's user avatar
  • 563
0 votes
0 answers
14 views

CSS changes with language - what could be possible causes?

I'm editing a website on Joomla 4.4.3 with someone's custom template, based on T4. I noticed that some of CSS is missing when I switch to German language. For example: @media (min-width: 992px) { ....
Destroy666's user avatar
1 vote
0 answers
23 views

Smart Search translation

In Joomla 4.4.2 the Smart Search component translation doesn't work for any other language then english but it happens only for 6 translations: COM_FINDER_ADVANCED_TIPS_AND; ...
Mario Carta Serra's user avatar
0 votes
1 answer
61 views

Joomla 4 / 5 Module Layouts naming

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 687
0 votes
0 answers
8 views

Joomla 4 / 5 Module Layouts naming [duplicate]

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 687
1 vote
1 answer
60 views

Line Breaks in Joomla 5 language fles

It seems that a fresh install of J5.0.1 does not allow line breaks in the text value part in a component language file. Is this correct? In previous versions you could break long text strings over ...
RogerCO's user avatar
  • 81
0 votes
1 answer
100 views

Getting a Joomla 4 API component to work with language files

When programming a component for an API, the config contains the following language file definitions: <api> <files folder="api"> <folder>src</folder> &...
cappu's user avatar
  • 169
1 vote
1 answer
182 views

Is it possible to remove language code for all languages from the URL Joomla 4 website

I have two languages installed on my website I went to the Language Filter plugin, and configured it. "Remove URL Language Code" to "Yes". www.example.com/en/company/contact.html ...
user4571727's user avatar
0 votes
0 answers
42 views

Why does JText::_ not translate in model field?

Not quite sure how to debug this. We have a modal where labels are shown translated, but the options in the select input are not. $options[] = JHtml::_('select.option', 'GB', JText::_('...
Olle Härstedt's user avatar
0 votes
1 answer
37 views

Special character (%) in language string

I want to output a float price using a language constant like this: MYCONST_VAT="incl. %.2f&#37 VAT" So doing this: echo Text::sprintf('MYCONST_VAT', 19); outputs: incl. 19.00% VAT ...
maidan's user avatar
  • 463
1 vote
1 answer
56 views

Parsing errors in language files

My joomla 3.10 website was transferred to a new server. I get the following error message from the joomla debug console: "JROOT/administrator/language/en-GB/en-GB.plg_system_jdom.ini : error(s) ...
Yves Parrat's user avatar
1 vote
0 answers
148 views

Joomla 4 ajax php file in component, $application missing LanguageFactoryInterface::class

In Joomla4 i am creating a ajax.php file for getting json results // Boot the DI container $container = \Joomla\CMS\Factory::getContainer(); $container->alias('session.web', 'session.web.site') ...
Sabin's user avatar
  • 21
2 votes
1 answer
360 views

language file naming conventions

Under Joomla 4 the language files for the core extension are no longer prefixed with the language code, e.g. en-GB.com_banners, however when I look in the manifest folders the files are defined with a ...
Irata's user avatar
  • 4,301
0 votes
1 answer
422 views

Joomla 4 extension language files no longer go to 'site/languages/en-GB' when install via discovery

I'm developing a template and I find it both interesting and confusing to how Joomla 4 loads language files. First there is the templateDetails.xml notation: Cassiopeia uses <languages folder="...
thednp's user avatar
  • 415
1 vote
1 answer
38 views

Should language file definitions/translations be used by multiple forms with the same text?

If you have a set of forms and some of the same fields are used on each form, do you create a language definition for each form's version of the field or just create a definition for the field? For ...
mfleeson's user avatar
  • 128
0 votes
1 answer
34 views

Home flag in content languages is set to NO and cannot be set back to YES

I am trying to build a multilingual site with Joomla 3.9. Due to unknown reason, one of the "Home" flag in content languages is set to "NO" and I can't set it back to "YES&...
zai's user avatar
  • 11
3 votes
1 answer
305 views

Joomla 3.9 not reading language override strings for English only

In Joomla 3.9.20, I created a custom front end template. Inside I have the language folder with various languages in this format. For German (example): /templates/mytemplate/de-DE/de-DE.tpl_mytemplate....
Sandro Antonucci's user avatar
2 votes
1 answer
55 views

Language Override Include Site Details

I would like to create a language override for both site and administrator. The language constant I am changing is; RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY The content of this is; Hello ...
jonboy's user avatar
  • 3,623
0 votes
1 answer
289 views

Installer cannot find language file, but it does exist

I regularly get an error similar to this: JInstaller: :Install: File does not exist /*******/public_html/dev/tmp/install_5e834b10a9f88/en-GB.plg_system_kou_address_mapper.ini Here is my XML <...
Eoin's user avatar
  • 2,033
1 vote
2 answers
774 views

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

Joomla 3.9.14 I have a category with no articles, although the sub categories do contain articles. - colours (no articles) -- red (1 article) -- blue (2 articles) I have a menu type Category ...
jonboy's user avatar
  • 3,623
2 votes
2 answers
182 views

Language Constant Not Displaying in External Script

Joomla 3.9.14 I have an external application that uses the script below, allowing users to register as a user on my Joomla site. It all appears to be working apart from error displaying. My code is ...
jonboy's user avatar
  • 3,623
1 vote
1 answer
355 views

Load language files inside custom library

I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory:...
Mike's user avatar
  • 351
1 vote
0 answers
22 views

Need help getting website multilingual

I'm on Joomla 3.9x and trying to make my site multilingual. Currently it's in Dutch (NL) and I'm trying to get it to English (EN-US). Things I've done so far: Made menu in NL (currently visible) Made ...
Saskia's user avatar
  • 11
1 vote
0 answers
54 views

Why do examples show reload=true for loading language files?

Nearly every example I've seen, both in documentation and code examples, show setting the $reload parameter to \Joomla\CMS\Language\Language->load() method as true (e.g. forcing reload of the ...
webstackdev's user avatar
1 vote
2 answers
194 views

Installing language from CLI

Does anybody know of a way to automate the installation of language packs via the CLI, as opposed to using the Extensions -> Language(s) menu in the administrator CMS? I am automating a site build ...
John Rix's user avatar
  • 563
1 vote
1 answer
146 views

Code for the Content Language Field type

What is the proper way to call for the Content language field type. My below code works but I don't use the content language field type. I am building a drop down from all available languages. $...
Niel Buys's user avatar
0 votes
0 answers
52 views

Incorrect redirect using ZOO item with Joomla's native Language Switcher

I am using the Zoo item component with ZOOlingual and the native Language Switcher. My problem is that when I am on an item detail from a catalog in english, switching in french redirect in french but ...
francescoli's user avatar
0 votes
1 answer
54 views

How to display the appropriate language in an article?

I have 7 languages installed in my website, but when I try to display content in one country, it shows in another country. How can I change the options? For example, I want to display content in ...
Rajkumar's user avatar
5 votes
1 answer
147 views

How to adjust search keyword sanitization settings as language override?

I am working on some custom search plugins and I have a 2-part question regarding the file administrator/components/com_search/helpers/search.php. I want to adjust the sanitization settings without ...
mickmackusa's user avatar
  • 4,826
0 votes
1 answer
114 views

Joomla! inserts \n in my language string

When I create a language string with multiple HTML elements Joomla! automatically inserts \n between them. This shows up as a literal \n in the string. Does anyone know why and how to overcome ...
Eoin's user avatar
  • 2,033
1 vote
1 answer
29 views

"COM_CONTENT_created_DATE" does not show translation

I am using the FJRelated plugin. There is a menu item for fjrelated to display a page almost the same as Joomla's default Category List. I have this line: <?php echo JHtml::_('grid.sort', '...
JoePanpi's user avatar
2 votes
1 answer
391 views

Using language constants in external file

How can I use language constant like JText::_('MY_STRING_FROM_INI_FILE') in external file? UPD: I include joomla system files require_once JPATH_BASE . '/includes/defines.php'; require_once ...
user3774771's user avatar
1 vote
1 answer
115 views

How to override language filter plugin?

I'd like to tweak my language filter plugin a bit, and if possible, I'd like to do that as an override. I know how to override some features in Joomla, but I'm not sure what to do in case of a system ...
louisv's user avatar
  • 11
2 votes
1 answer
105 views

Load language file in view constructor

I'm trying to break up my translation strings into several files and avoid parsing them all on every request. I know base language files are loaded at Joomla! application initialization. From the API ...
webstackdev's user avatar
2 votes
1 answer
308 views

Export language overrides

I need to export the language overrides which i set in the joomla 3.8 admin. I couldn't find any option at extensions->languages->overrides and i also couldn't find the overrides inside the database. ...
rhauger's user avatar
  • 123
1 vote
1 answer
184 views

Installing Language Filter and Language Code system plugins

I have a Joomla website (which I didn't install myself) that seems to be lacking the system plugins "Language Filter" and "Language Code". It seems like it wasn't installed as a multi-language site in ...
Virus721's user avatar
  • 121
3 votes
1 answer
162 views

Fallback language when translation does not exist

I have a working multi-language site (joomla core support). My question is, in the case of having an untranslated, for example, an article, is it possible to fallback to the one in the default ...
n.h.'s user avatar
  • 871
2 votes
1 answer
352 views

I found languages installed and I can't install one

First of all, I have 3 new languages installed on my Joomla! I don't know how, I have no new users so i assume there is a vulnerability that allows languages to be installed somehow. I was on 3.7.4 ...
Eoin's user avatar
  • 2,033
3 votes
1 answer
36 views

Home page a mix of language

Joomla noob here. I've installed vanilla Joomla 3.5.7. Installed a second language (Russian), made it a default language for the site and for the administrator, published it as a content language. ...
Seva Alekseyev's user avatar
1 vote
0 answers
29 views

When I install a custom component, language is installed but jomla not detect

That's the structure to a custom component. The installation is OK, but Joomla don't detect the languages that I have to that component. That is the structure to my xml file.
Jesús Martín Ruiz's user avatar
1 vote
1 answer
564 views

Homepage is redirecting to Spanish even though site default language is English (303 redirect incorrect)

My client's site http://antoniniandcohen.com is automatically redirecting to /es/ rather than /en/ on the homepage, despite the fact that the site default language is English. I'm not an expert in ...
technocookie's user avatar
1 vote
1 answer
388 views

Joomla Search Result Article Text Length: Text is truncated in strange places

I am using the Joomla Search module with a Menu Item pointed to '/search'. When a search is performed, the results list a linked title, a snippet, category and the created date. The snippet is ...
sifu's user avatar
  • 1,105
0 votes
2 answers
435 views

Customize User Account Approved Email

I'm new to Joomla and I'm taking over some other person's previous work. I'm trying to change the wording of the email that a new user receives after they've verified their email and the ...
chavab_1's user avatar
  • 195
1 vote
1 answer
310 views

Updating component language file without reinstalling it

I'd like to construct a script that imports an XLIFF file and updates the INI language files of our component. However, it seems that the language won't be updated unless the component is fully ...
Olle Härstedt's user avatar
1 vote
2 answers
810 views

Multilanguage component, language is not loaded by manifest

I am trying to create a component. I have the following manifest file: <?xml version="1.0" encoding="utf-8"?> <extension type="component" version="3.4" method="upgrade"> <name>...
inf3rno's user avatar
  • 391
2 votes
3 answers
3k views

Language files in a plugin

I'm writing a plugin that needs some translatable strings at runtime, but I'm having trouble getting my language file to be picked up. I've got the following: /language/en-GB/en-GB....
Simba's user avatar
  • 610
3 votes
2 answers
455 views

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

So, I am in the process of adding a second content language to my joomla site and I'm running into an issue. I have successfully added my second language (German) and have rebuilt my site with the ...
nizz0k's user avatar
  • 537
3 votes
2 answers
134 views

Change multi-language admin panel setup

I am new to Joomla. I want to create a multi-language website using Joomla CMS. I followed the instructions at https://www.templatemonster.com/help/joomla-3-x-configuration-multilanguage-site.html#...
Ishan Jain's user avatar
0 votes
1 answer
69 views

Spanish language of my custom component is not working

I have created English and Spanish language file for my Joomla component but when I trying to change Joomla default language then my Spanish language file not working or not overwrite . Please give me ...
surjeet's user avatar
1 vote
0 answers
197 views

How I can load a sys.ini language file

I need in an own system plugin some language values from a sys.ini language file. I could only found this way to load the normal .ini file: $language = JFactory::getLanguage(); $language->load('...
mikael's user avatar
  • 31