Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
13 Language file changes
All front-end messages and pages displayed by CB are generated by language
strings that are defined in the CB language file.
As mentioned in chapter 8.2, CB language plugins are used to extend CB to work in other languages.
CB is installed with one default_language plugin that just happens to be English. This
default_language plugin appears as a folder in our {website-root} à components à
com_comprofiler à plugin à language path and it contains the following files of
interest:
• default_language.xml is the XML file defining the language plugin
• default_language.php is the PHP file containing all the language string
definitions
• calendar-locals.js is a javascript file that contains language definitions used by
the calendar pop embedded in CB
• admin_language.php is the PHP file containing all backend language string
definitions
The default language plugin is used if CB cannot find the proper language plugin
based on the CMS language specified on our site.
Language plugins are available on Joomlapolis as they are contributed by community members.
Page 168 of 170
If you open the default_language.php file with any text editor you will see all the
language string definitions used by CB (component and modules). You can easily
make any wording changes you see fit to make CB better and easier for your
community project. Particular care must be taken not to break the PHP language
syntax, so be cautious when making changes and always keep backup copies. You
will also see similar language related strings in the calendar-locals.js file that you can
re-word.
krileon wrote: You won't lose any changes as long as you don't modify the source of core files. Changing a field or tab title for example in CB > Field Management or CB > Tab Management will persist with each CB update (you won't lose your changes). If you use language strings though and you modify the default language file then you will lose those changes on update; you should be editing the English language plugin instead, which you can find below.
forge.joomlapolis.com/projects/lan-cb-en/files
Please Log in or Create an account to join the conversation.