Admin language strings not working [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Admin language strings not working [solved]

Post by chrisbt »

Are custom admin language strings still working in CMSMS 2.1.2?

I uploaded the following to cmstest/admin/custom/lang/en_US/admin.inc.php, and clear the cache

Code: Select all

<?php
$lang['title'] = 'Title Tag with keywords (including keyword1 | keyword2)';
$lang['titleattribute'] = 'Page Description with keywords (max 150-155 characters)';
$lang['extra1'] = "Extra Page Attribute 1";
?>
but not effect.

also tried $lang['admin']['extra1'] = "Menu Options"; - just in case?

Has anyone else found this or just me?

Thanks

Chris

----------------------------------------------
Cms Version: 2.1.2
Installed Modules:
AdminSearch: 1.0
CGExtensions: 1.51.1
CGFeedMaker: 1.0.20
CGFeedback: 1.7.5
CGGoogleMaps2: 0.99.3
CGSimpleSmarty: 2.0.5
CGSmartImage: 1.21
CMSContentManager: 1.1
CMSMailer: 6.2.14
Captcha: 0.5.2
CustomGS: 2.1
DesignManager: 1.1.1
ECB: 1.7.1
FileManager: 1.5.2
FormBuilder: 0.8.1.3
Gallery: 2.1
JMFilePicker: 1.0
JQueryTools: 1.3.8
LISE: 1.1
LISEWidgets: 1.1
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Outsourcer: 1.3.1
Search: 1.50.2
TinyMCE: 3.1.2

Config Information:
php_memory_limit:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.6.16
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 120
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-431.29.2.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/binnodev/public_html/cmstest/tmp (0755)
tmp_cache: /home/binnodev/public_html/cmstest/tmp/cache (0755)
templates_c: /home/binnodev/public_html/cmstest/tmp/templates_c (0755)
modules: /home/binnodev/public_html/cmstest/modules (0755)
uploads: /home/binnodev/public_html/cmstest/uploads (0755)
File Creation Mask (umask): /home/binnodev/public_html/cmstest/tmp/cache (0755)
config_file: 0444
----------------------------------------------
Last edited by chrisbt on Wed Feb 24, 2016 5:29 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Admin language strings not working

Post by calguy1000 »

The <admin dir>/custom/lang/en_US.php file still applies for some admin strings.

However, CMSContentManager and DesignManager are modules.

So you must use the module_custom/<ModuleName>/lang/en_US.php approach.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: Admin language strings not working

Post by chrisbt »

Thanks Calguy. I wouldn't have thought of checking out CMSContentManager and DesignManager.

The strings I were trying to change are in: <admin dir>/lang/en_US.php

The issue I had was that I was trying to change them in <admin dir>/custom/lang/en_US/admin.inc.php

But the location/name of the custom file has changed and as you advised is now: <admin dir>/custom/lang/en_US.php

All sorted thanks. :)
Post Reply

Return to “CMSMS Core”