Jump to content

pagetitle variable and language


Sonu2007

Recommended Posts

works gr8 thanks,

 

what to use in case of ALL default pages of WHMCS, i am thinking to use something like following, It is working good in case of english language but no with other language

 

{if $pagetitle eq "Client Area" || $pagetitle eq "Shopping Cart" || $pagetitle eq "Announcements" || $pagetitle eq "Knowledgebase" || $pagetitle eq "Submit Ticket" || $pagetitle eq "Downloads" || $pagetitle eq "Support Tickets" || $pagetitle eq "Affiliates" || $pagetitle eq "Logout" || $pagetitle eq "Network Issues" || $pagetitle eq "View Ticket" || $pagetitle eq "Lost Password Reset" || $pagetitle eq "Register" || $pagetitle eq "Espace client"}

Link to comment
Share on other sites

take a look at the lang/english.php file and find the variables for these entries...

 

e.g, Client Area is...

 

$_LANG['clientareatitle'] = "Client Area";

therefore, you can use $LANG.clientareatitle if your {if} statement...

 

Shopping Cart...

 

$_LANG['carttitle'] = "Shopping Cart";

use $LANG.carttitle if your {if} statement...

 

then it's just a case of finding all the entries you want in the language file and adding them to your {if} statement.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated