Difference between revisions of "Change Language Files"
PeterRobert (talk | contribs) |
PeterRobert (talk | contribs) |
||
| Line 65: | Line 65: | ||
Click it to open it to make changes. | Click it to open it to make changes. | ||
| − | Look in the file for the line - <code>define('MODULE_CONTENT_FOOTER_TEXT_TEXT', '<p>Lorem Ipsum is... </p>');</code> | + | Look in the file for the line - <code><nowiki>define('MODULE_CONTENT_FOOTER_TEXT_TEXT', '<p>Lorem Ipsum is... </p>');</nowiki></code> |
For example, change '''Lorem Ipsum is... ''' to '''This is some example text about us.''' and click Save. | For example, change '''Lorem Ipsum is... ''' to '''This is some example text about us.''' and click Save. | ||
Revision as of 08:28, 4 September 2020
<historylink type="back">🠈 Back</historylink> 🠉 SET UP SHOP
ABOUT LANGUAGE FILES
CE Phoenix is English by default but other Language Packs are available to download - the links to find them are shown in the README file in the CE Phoenix download - download and install now if required. These Language Packs are independently maintained by volunteers so contact the maintainer if you need support for them.
Changes to the text shown in the shop can easily be made to localise and personalise the shop to suit you.
Let's first explain a little about the basic working mechanics of Phoenix.
Using a new installation and the main page (home page) as an example, in your browser go to your website to see similar to this:
Look in your browser address bar and you will see the page as yoursite.com/index.php (if it only shows yoursite.com, click the shop logo to refresh the page) so this page is named index.php.
Note that most everything in CE Phoenix is modularised so a lot of the text showing on the page will be in language files associated with those modules.
As seen in the example, the page could be described in groups of modules.
So, from the top, there are:
- navbar modules shown in the navigation bar at the top of the page.
- content/header modules shown just below the navigation bar.
- boxes modules shown on the left and right of the central page contents.
- content/index modules shown in the central page contents specific to this page i.e. index
- content/footer modules shown at the base of the page.
- content/footer-suffix modules shown below the footer at the bottom of the page.
You can change the text in a language file from admin - go to
Tools → Define Languages to see this list:
For example, change the text that shows as Welcome on 1078.
It is in the central page contents so look in the list for files beginning with modules/content/index/
The specific file for this module is modules/content/index/cm_i_title.php
- Backup any files before making changes.
- Click it to open it to make changes.
- Look in the file for the line -
const MODULE_CONTENT_I_TITLE_PUBLIC_TITLE = 'Welcome on %s';
The %s is magic code that automatically gets your Store Name that you entered when installing CE Phoenix, that was entered as 1061 in the example. (That can be changed in admin Configuration → My Store.) Do not change or delete that %s and be sure not to delete one of the single quote marks by mistake or you will break things!
For example, change Welcome on to Welcome to and click Save.
Open the website page again to see your changes or if you still have the page open, refresh or reload the page to see the changes.
As a second example, let's change the text that showsLorem Ipsum is... (the text has been abbreviated here)
It is in the footer of the page so look in the Tools → Define Languages list for for files beginning with modules/content/footer/
The specific file for this module is modules/content/footer/cm_footer_text.php
Click it to open it to make changes.
Look in the file for the line - define('MODULE_CONTENT_FOOTER_TEXT_TEXT', '<p>Lorem Ipsum is... </p>');
For example, change Lorem Ipsum is... to This is some example text about us. and click Save.
Open the website page again to see your changes or if you still have the page open, refresh or reload the page to see the changes.
Just about every page and module in CE Phoenix will work this way and have it's own corresponding language file.
Have a good look in the list, explore and open the files to have a look - as long as you don't change anything, you can't break anything.
The exceptions are the main language files named english.php, there is one for the admin and one for the shop, which control text for many different pages.
IMPORTANT: If you enter any more quotes in your text, you must use a backslash before the quote e.g. don\'t or you will break things!
Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org