|
View previous topic :: View next topic |
| Author |
Message |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 3:47 pm Post subject: Language definitions - Supporters 9.1.2 |
|
I don't know if this is a bug - more likely a peculaiarity of my system, but anyway...
On the supporters table of donors, donations, ranks, etc, 4 language definitions are not working, even though to me they look fine in the supports.php language file, the index and the template:
"{ Rank } { Rank calc } { Donation } { Lastdate }"
Using { Donation } as an example.
index.php:
'L_DONATION' => $lang['Amount'],
supports.php (language):
'Amount' => 'Amount<br/ Donated',
supporters.html:<th class="thTop" nowrap="nowrap">{L_DONATION}</th>
CMS debug error:
Notice line 28: Undefined index: Amount
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
|
|
| Back to top |
|
 |
Phoenix Chairman


Offline Joined: Mar 18, 2004 Posts: 1457 Location: Netizen
|
Posted: Wed Jul 02, 2008 3:58 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
Unless it's this forum removing the >, it should be,
'Amount' => 'Amount<br />Donated',
which is what I have in my lang file v1.2
Mind you, the most recent separate release was 9.1.3 but I have 9.1.4 in the full Treasury package.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 4:02 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
My mistake in writing the post - it does have it. Also I have the version number wrong! I just downloaded the most recent Supportes, but will try the one out of the Treasury package now.
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
|
|
| Back to top |
|
 |
Phoenix Chairman


Offline Joined: Mar 18, 2004 Posts: 1457 Location: Netizen
|
Posted: Wed Jul 02, 2008 4:06 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
What may cause an issue like { Rank } showing is if you update a module, and update the default template, but still have the old template in a specific theme and that is not updated.
In that case, the specific theme will continue to use the template in its template folder, and ignore the updated default template.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 4:23 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
I'm on the latest version from Treasury and still have the problem. There's only one template file (in the default theme), and only one language file. Thanks for the quick response BTW. Any other ideas?
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
|
|
| Back to top |
|
 |
Phoenix Chairman


Offline Joined: Mar 18, 2004 Posts: 1457 Location: Netizen
|
Posted: Wed Jul 02, 2008 4:54 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
Try clearing the cache files.
Otherwise, I'm not sure of what's causing the conflict - I may need to redefine the language file.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 5:45 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
I was clearing the cache as I went. Leave it with me for a while and I'll have a play around. - edit: sorry, but I'll have to leave this for a while. Meanwhile though, does this help:
[root@arrse_apache_server cpgn2]# grep -r L_DONATION *
cache/tpl_default_supporters.html.inc: <th class="thTop" nowrap="nowrap"><?php echo ((isset($this->_tpldata['.'][0]['L_DONATION'])) ? $this->_tpldata['.'][0]['L_DONATION'] : '{ '.ucfirst(strtolower(str_replace('_', ' ', 'DONATION'))).' }'); ?></th>
modules/Supporters/index.php: 'L_DONATION' => $lang['Amount'],
themes/default/template/supporters.html: <th class="thTop" nowrap="nowrap">{L_DONATION}</th>
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Last edited by hqarrse on Wed Jul 02, 2008 5:59 pm; edited 1 time in total |
|
| Back to top |
|
 |
Phoenix Chairman


Offline Joined: Mar 18, 2004 Posts: 1457 Location: Netizen
|
Posted: Wed Jul 02, 2008 5:52 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
It doesn't explain why it's happening, and shouldn't be necessary but, add this to blank line 17 of index.php,
get_lang('Supporters');
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 6:01 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
I tried that before (and just have done again following your post) and no difference. Could it be that it's not installed properly? I'll uninstall and reinstall. It may be my fault from all the changes I was doing during Treasury / DonationsPro switches.
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
|
|
| Back to top |
|
 |
hqarrse Director


Offline Joined: Jan 08, 2006 Posts: 153
|
Posted: Wed Jul 02, 2008 6:13 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
Just uninstalled, deleted the rank_value column and reinstalled and the same. I wouldn't worry Phoenix. If it's not happening on other installs it's probably some peculiarity on ours that has crept in somewhere. Only the admins see it so it doesn't matter really so much.
hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
|
|
| Back to top |
|
 |
Phoenix Chairman


Offline Joined: Mar 18, 2004 Posts: 1457 Location: Netizen
|
Posted: Wed Jul 02, 2008 6:35 pm Post subject: Re: Language definitions - Supporters 9.1.2 |
|
It's a puzzle - I'll rewrite the language file anyway when I produce the new version which will allow you to select which "DP" module you want it to pull data from.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
|
|