Jump to content

help to create a If to translate {$service_billing_cycle}


hardbrasil

Recommended Posts

Hi Folks!

 

all non-English community have to find that we have one problem to translate

the {$service_billing_cycle} string on "Hosting Account Welcome Email"

 

 

so i have tried a lot of script, but i do not make to work until now, may you know how to help us.

 

 

this variable {$service_billing_cycle} can assume any one of this values:

Monthly, Quarterly, semi-Annually, Annually, Bi-Annually

 

so one friend build this: (doesnt work)

 

{php}
switch ($service_billing_cycle) {
   case "Monthly":
       echo "Mensal";
       break;

   case "Quarterlly":
       echo "Quadrimestral";
       break;

   case "Semi-Annually":
       echo "Meio Ano";
       break;

   case "Annually":
       echo "Anual";
       break;

   case "Bi-Annually":
       echo "Dois Anos";
       break;
}

{/php}

Link to comment
Share on other sites

Solution:

 

{if $service_billing_cycle eq "Monthly"}Mensal {/if} {if $service_billing_cycle eq "Quarterly"}Trimestral {/if} {if $service_billing_cycle eq "Semi-Annually"}Semestral{/if} {if $service_billing_cycle eq "Annually"}Anual{/if} {if $service_billing_cycle eq "Bi-Annually"}Bi-Anual{/if}

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
Where i change/put this? Which file? I'm with the same problem; i'm from Brazil too, and i need change these months! rs

 

I have the same issues. Can someone tell us where I can put this info so I can have the code change to french for french clients?

 

thanks

Edited by e_labranche
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