joomla如何修改SP Page Builder中的字段名

修改SP Page Builder中的字段名的方法,和翻译语言是一个道理。参看https://www.joomshaper.com/documentation/joomla-extensions/sp-page-builder-2-x 官方文件。

以修改contact addon为例:

我用的是第一种原始方法,将原字段名Subject 改为country。在language\en-GB\en-GB.com_sppagebuilder.ini 中找到所有Subject 改为country

Method #1:

SP Page Builder (Pro) like any other component includes .ini files which contains all of the English terms we have used. In most cases you have to translate at least those two files:

  • language\en-GB\en-GB.com_sppagebuilder.ini
    (this file include words used in contact form fields, twitter, Social Share addon, Optin Form and front-end editor)
  • language\en-GB\en-GB.mod_sppagebuilder.ini
    (this file is used for SPPB module view only, not if have contact in Page or SPPB inside Article)
  • administrator\language\en-GB\en-GB.com_sppagebuilder.ini
    (this file include all admin phrases)

The example language phrases used in Ajax Contact Addon:

 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_NAME="Name"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_EMAIL="Email"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_SUBJECT="Subject"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_MESSAGE="Message"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_SEND="Send Message"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_WRONG_CAPTCHA="Wrong answer! Please enter right answer."
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_SUCCESS="Email sent successfully!"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_FAILED="Email sent failed."
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_CAPTCHA_NOT_INSTALLED="Please make sure that, re-captcha pluging is enabled"
 COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_INVALID_CAPTCHA="Invalid Recaptcha"

Translate the strings to your language and save them as with native language prefix and copy to your language folder. File (.ini) must be saved as UTF-8 without BOM encoding. Once the phrases inside file have been translated, you can copy your language file into your language directory using an FTP client.

Method #2:

In some cases language phrase from contact form can be located in template language file (.ini) so please check also there: language\en-GB\en-GB.tpl_THEME_NAME.ini

Method #3:

You can translate selected phrases also using the overrides feature in Joomla (Admin Top Menu): Extensions > Language Manager > Overrides tab. But first you have to get know BIG LETTERS phrases, take them from language file. Below is basic example from back-end.
Languages_Overrides

Joomla Language Overrides documentation link: https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla

升级到SP Page Builder pro 3后,明显感觉到加载速度变慢,而且和第二版兼容性不是很好,许多addons插件不好用了。

country  [‘kʌntrɪ]  详细X
基本翻译
n. 国家,国土;国民;乡下,农村;乡村;故乡
adj. 祖国的,故乡的;地方的,乡村的;国家的;粗鲁的;乡村音乐的
网络释义
Country: 国家
developing country: 发展中国家
North Country: 对抗性侵犯

发表评论

电子邮件地址不会被公开。 必填项已用*标注