ocastaned Posted March 10, 2019 Share Posted March 10, 2019 I need some help translating "mm/yy" during the checkout process to Spanish. This is a screensot: https://bit.ly/2HaNBaA 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 20 minutes ago, ocastaned said: I need some help translating "mm/yy" during the checkout process to Spanish. This is a screensot: https://bit.ly/2HaNBaA the MM/YY is hardcoded in the checkout.tpl template - perhaps a bug, more likely laziness on WHMCS' part in dealing with multilingual issues. 🙄 one option would be to create Language Overrides for every language that you use, and then update the template to use that override (MM / YY is used twice in the template) - or if your concern is only with Spanish, then change the line to... <input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="{if $language eq "spanish"}MM/AA{else}MM / YY{/if}{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp"> and every language other than Spanish will still see MM/YY - i'm assuming it should be MM/AA for Spanish? you'll know better than me! 🙂 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted March 10, 2019 Author Share Posted March 10, 2019 I already have created an overrides files, but I am seeing most of the lines starts with "$_LANG[" as you can see on this screesnhot: https://bit.ly/2UvgDEW I am not sure if I should put all the line you just gave me or a different one? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 4 minutes ago, ocastaned said: I already have created an overrides files, but I am seeing most of the lines starts with "$_LANG[" as you can see on this screesnhot: https://bit.ly/2UvgDEW if you have created this ccdate language override for ALL of your languages, then you can use your override... <input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="{$LANG.ccdate}{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp"> if you've only created the override for Spanish, and don't want to create the overrides for the other languages, then adapt my previous code to... <input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="{if $language eq "spanish"}{$LANG.ccdate}{else}MM / YY{/if}{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp"> 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted March 10, 2019 Author Share Posted March 10, 2019 I only created the override file for Spanish language. Just to be clear. Am I going to put this code line below into the Spanish override file? <input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="{if $language eq "spanish"}MM/AA{else}MM / YY{/if}{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp"> I already put it, but I am seeing an error in my site. On the other hand, If I am going to add that line to "my template" as you mention before, I would like to know which file in my template directory am I going to add it? I am currently using "Six" template. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 5 minutes ago, ocastaned said: I only created the override file for Spanish language. Just to be clear. Am I going to put this code line below into the Spanish override file? no - it goes in the checkout.tpl template, not in any language overrides file (that will be why you get the error message). 5 minutes ago, ocastaned said: On the other hand, If I am going to add that line to "my template" as you mention before, I would like to know which file in my template directory am I going to add it? I am currently using "Six" template. for you, it will go in the /clientes/templates/orderforms/standard_cart/checkout.tpl template - i'm assuming that you're using v7.7.1, if not, then your existing code might be different, but the replacement code for MM/YY of {if $language eq "spanish"}MM/AA{else}MM / YY{/if} won't change regardless of WHMCS version. 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted March 10, 2019 Author Share Posted March 10, 2019 Thank you so much. It worked fine. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.