PDA

View Full Version : Hack for the word "Not" in functions.php


Khanoom
04-25-2002, 09:26 PM
If you are running a board with just one language, then changing the word "Not" in functions.php will do the trick....

But, what if you are running a board with two different styles, one for English and one for another language? Then your English language style will have the translated version of the word "Not" and this causes a problem!

Does anyone know a good Hack for a situation like this? Can anyone write a condition for functions.php where if the language is English, then the word is "Not" and if the language is French then the word is "?????".

Logician
04-26-2002, 10:53 AM
not tested but should work:

Find:
---
function getforumrules($foruminfo,$permissions) {
// array of foruminfo and permissions for this forum
global $offtext,$ontext,$forumrules,$session;
---

Replace it AS:
---
function getforumrules($foruminfo,$permissions) {
// array of foruminfo and permissions for this forum
global $offtext,$ontext,$forumrules,$session, $styleid;
---

Find:
----
$notword = 'not';
----

Replace it AS:
---
if ($styleid==X) {$notword = 'whateeveryouwordis';}
else {$notword = 'not';}
---

Substitute X with your non-english style's id..

Enjoy..

Logician

Khanoom
04-26-2002, 08:23 PM
Thank you Logician.

It works like a charmer! ;)