This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Changing custom language files not reflected on site
#1

I'm changing my language > english > custom.php file to alter wording.

It was working successfully, but has since stopped updating. Here's my current file:
Code:
<?php
$_['lang_text_required'] = '* Required';
$_['lang_text_notify'] = 'Update via email';
$_['lang_text_says'] = '';
$_['lang_heading_form'] = 'You can leave a comment below';
$_['lang_heading_comments'] = '';
$_['lang_button_submit'] = 'Comment';
$_['lang_placeholder_comment'] = 'Type your comment here...';
$_['lang_placeholder_name'] = 'Your name';
$_['lang_placeholder_email'] = 'Your email (optional)';
$_['lang_placeholder_website'] = 'Link to your website';
$_['lang_title_comment'] = 'Type your comment here';
$_['lang_title_notify'] = 'Email me about new comments';
$_['lang_entry_sort_by_3'] = 'Most likes';
?>

Even if I delete the custom.php entries, it does not default back to the original text.

Is there any reason why I can't directly change the words inside the default language folder? The only reason I could think is this might cause problems when updating?
Reply
#2

The only reasons I can think of at the moment are either caching (try clearing all of the cache in 'Tools -> Clear Cache') or you've installed a theme and it's using the theme's custom.php file rather than your own.

If you open the file /system/engine/controller.php, there should be a section of code starting with a comment which says "Load custom language file if it exists". If you add an 'echo' statement below each of the 3 lines that begin with the word 'require', that will help you to figure out which custom.php file it's using, if any.

Yes it's exactly like you said, it preserves your custom changes that would otherwise get overwritten whenever you upgrade.

Have you completed the interview?
Reply
#3

Hey Steven, 

Your suggested echos didn't work which really confused me until I checked my directory structure on my site.

Somehow I had a naming error - site commentics folder was named "comments", and my local folder was "commentics-master". I don't know when/how this changed, but thank you for your help in realising it!
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Renaud
26-Aug-2014, 07:28 AM
Last Post by noblues
04-Nov-2013, 12:41 PM
Last Post by Steven
10-Oct-2013, 09:51 PM
Last Post by 2hands
24-Jun-2012, 08:56 PM
Last Post by Steven
12-Dec-2011, 06:56 PM
Last Post by aivarlipp
28-Sep-2010, 05:08 PM
Last Post by james
28-Jul-2010, 05:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)