ocastaned Posted March 7, 2020 Share Posted March 7, 2020 (edited) I need some help translating some "view ticket" section into spanish, as you can see on this image: I already created my override file into spanish, but I am not sure what to put there to translate that above. Also if possible, I need to translate this other section: Thank you guys in advance. Note: I am currently using WHMCS version 7.9.2. Edited March 7, 2020 by ocastaned 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 7, 2020 Share Posted March 7, 2020 you're going to have to post those images again - as they haven't been linked properly and aren't showing. 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted March 7, 2020 Author Share Posted March 7, 2020 1 hour ago, ocastaned said: I need some help translating some "view ticket" section into spanish, as you can see on this image: I already created my override file into spanish, but I am not sure what to put there to translate that above. Also if possible, I need to translate this other section: Thank you. I just put the images again. Thank you guys in advance. Note: I am currently using WHMCS version 7.9.2. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 8, 2020 Share Posted March 8, 2020 19 hours ago, ocastaned said: I need some help translating some "view ticket" section into spanish, as you can see on this image: CC Recipients & Email... $_LANG['support']['ccRecipients'] = "CC Recipients"; $_LANG['support']['addCcRecipients'] = "Enter Email Address"; This ticket is closed... $_LANG['supportticketclosedmsg'] = "This ticket is closed. You may reply to this ticket to reopen it."; Manage SSL Certificates (I think)... $_LANG['navManageSsl'] = "Manage SSL Certificates"; Manage SSL table headings (and a lot of other text strings) are hardcoded in the managessl.tpl template - and have been for nearly 3 years, but I can't see why they need to be... *sighs* <tr> <th>Domain</th> <th>SSL Product</th> <th>Order Date</th> <th>Renewal Date</th> <th>Actions</th> </tr> so there are a few ways to resolve this... you could replace these hardcoded strings with Language Overrides... Domain/Order Date and Actions already exist as language strings used elsewhere, so assuming their Spanish translations are correct in this context, then you only have to worry about making new translations (in English & Spanish) for the other two (SSL Product & Renewal Date)... if they're wrong, then just make 5 new translations for each of the above hardcoded strings and then update the template with these language strings... $_LANG['ManageSSL']['Domain'] = "Domain"; $_LANG['ManageSSL']['OrderDate'] = "SSL Product"; $_LANG['ManageSSL']['SSLProduct'] = "Order Date"; $_LANG['ManageSSL']['RenewalDate'] = "Renewal Date"; $_LANG['ManageSSL']['Actions'] = "Actions"; and then you reference the language overrides in the template... <th>{$LANG.ManageSSL.Domain}</th> and so on.. the other way would be to use a hook and replace the five table headings if the language was anything other than English (in your case Spanish)... those five Spanish heading titles would need to be defined either as language overrides or within the hook itself - for two languages, I don't think it would particularly matter which... if it were 25+ languages, then you would use language overrides and reference them in the hook. Choose File / No File chosen... these are defined by the browser, e.g No FIle chosen is shown in Chrome, No File Selected is used in Firefox and it's left blank in Edge... you can't change the text shown, so about the only other option would be to hide the default input and use css restyled code to reproduce the file input. 0 Quote Link to comment Share on other sites More sharing options...
ocastaned Posted March 8, 2020 Author Share Posted March 8, 2020 1 hour ago, brian! said: Thank you, It worked fine. Quote and so on.. the other way would be to use a hook and replace the five table headings if the language was anything other than English (in your case Spanish)... those five Spanish heading titles would need to be defined either as language overrides or within the hook itself - for two languages, I don't think it would particularly matter which... if it were 25+ languages, then you would use language overrides and reference them in the hook. Choose File / No File chosen... these are defined by the browser, e.g No FIle chosen is shown in Chrome, No File Selected is used in Firefox and it's left blank in Edge... you can't change the text shown, so about the only other option would be to hide the default input and use css restyled code to reproduce the file input. 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.