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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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"...
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
{
/**
*...
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?
4
votes
Accepted
Remove 'There are no articles in this category.' Text
Got to;
content > articles > options > category tab > No Articles Message > hide / show
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.
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 ...
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 "...
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/...
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 ...
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 ...
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....
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(...
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 ...
3
votes
Accepted
Export language overrides
Like all languages strings, overrides are stored in .ini files in language directories:
/administrator/language/overrides/
/language/overrides/
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'
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('...
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 ...
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().
...
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 ...
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.
...
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 :)
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&...
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:...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
language × 112joomla-3.x × 50
multilingual × 17
overrides × 15
translation × 8
joomla-3.4 × 7
joomla-2.5 × 6
plugin × 6
articles × 6
custom-component × 6
module × 5
joomla-api × 4
joomla-4.x × 4
jtext × 4
templates × 3
joomla-3.3.x × 3
template-override × 3
installation × 3
system-plugin × 3
php × 2
component × 2
extensions × 2
javascript × 2
user × 2
administrator × 2