将 Joomla 模块中的一些单词更改为其他语言 3.x

Change some words to other language in module in Joomla 3.x

我在网站上有一个侧边栏是用 Joomla 设计的。这个侧边栏是一个模块,它工作正常,但我想改变这个模块中一些单词的语言。我如何在 Joomla 或我的文件中执行此操作?现在这个侧边栏是波兰语,我想换成英语。在 Joomla 中,我打开了这两种语言。在波兰语菜单上它应该像现在这样波兰语,但是当我把它改成英文菜单时我希望这个侧边栏显示英文单词。

感谢您的帮助!

这是一个例子:

$lang = JFactory::getLanguage();
$extension = 'com_helloworld';
$base_dir = JPATH_SITE;
$language_tag = 'en-GB';
$reload = true;
$lang->load($extension, $base_dir, $language_tag, $reload);

以下是对变量的解释

  1. $extension - This is the extension whose language file will be loaded
  2. $base_dir - Should be JPATH_SITE in case you have language files stored elsewhere. Defaults to JPATH_BASE. [optional]
  3. $language_tag - This is the locale string. Language files for this locale will be loaded. Defaults to the one set in backend. [optional]
  4. $reload - Flag that will force a language to be reloaded if set to true. [optional]