Hi,
I am trying to add an icon to my Cpanel that will redirect the user to a different URL based on language.
Example conf file entry:
description=>$LANG{'namestring'},url=>[FRENCH-OR-ENGLISH URL DEPENDING ON ACTIVE LANGUAGE HERE]
So basically how can I get this to work? The way I see it there are two solutions that may work:
- Make the field url accept the LANG function, so that I could hardcode the link per language in the language file
- Use some js trigger to force a window.location based on an existing language condition that the js script would be able to read (if this is possible, can you please provide a concrete example how to use this function)
- point url to an internal cpanel page that would then redirect to a different url based on language (again a language condition would need to be read, would need a specific example on how to do this).
Finally, perhaps more importantly, how do I go about adding a new language entry? ie. would like to add entry 'namestring' to all existing themes in all languages. Is this done via the WHM, or is there a specific file on the server I can access to edit and add new strings. I noticed WHM has an option to edit existing strings, but not to add new strings (at least as far as I could tell).
Thanks for your help!



LinkBack URL
About LinkBacks
Reply With Quote





