Hi folks,
I've set up a German (and other sections) for our non-English speaking viewers. At the bottom of every page (in place of the forumrules) I've placed a google-translate pulldown menu.
I'm struggling to get it to recognise different forums.
For example, I'd like all forums (except those within the conditional statement) to offer 'translate from English' but for the German forum (as an example) to offer 'translate from German' and the French forum to offer 'translate from French'.
What I have is:
Yet it doesn't seem to function. Any ideas folks?
Now as I understand it, the functions should check the forum ID and assuming it isn't 123,456 or 789 it should instead run the English translation tool, right?
Note: I am not a coder by any standard, just a guy trying to figure out the basics.
I've set up a German (and other sections) for our non-English speaking viewers. At the bottom of every page (in place of the forumrules) I've placed a google-translate pulldown menu.
I'm struggling to get it to recognise different forums.
For example, I'd like all forums (except those within the conditional statement) to offer 'translate from English' but for the German forum (as an example) to offer 'translate from German' and the French forum to offer 'translate from French'.
What I have is:
HTML Code:
<if condition="in_array($forum[forumid], array(123))"> <!-- German translation tool --> </if> <if condition="in_array($forum[forumid], array(456))"> <!-- French translation tool --> </if> <if condition="in_array($forum[forumid], array(789))"> <!-- Spanish translation tool --> </if> <if condition="!in_array($forum[forumid], array(123) or $forum[forumid], array(456) or $forum[forumid], array(789))"> <!-- English translation --> </if>
Now as I understand it, the functions should check the forum ID and assuming it isn't 123,456 or 789 it should instead run the English translation tool, right?
Note: I am not a coder by any standard, just a guy trying to figure out the basics.
Comment