Jump to content

Recommended Posts

Hi Guys,

Does anyone know why the invoice pdf file is generated in default English language, instead of default language selected from the General settings> Localisation ? 

Share this post


Link to post
Share on other sites
2 hours ago, paldigit said:

Does anyone know why the invoice pdf file is generated in default English language, instead of default language selected from the General settings> Localisation ? 

the invoice should be generated in the client's own chosen language - if they choose a language while logged in, the database will update the appropriate table to store that language as their language choice and will remain that way until they (or you manually) change it.

I think if they logged in and hadn't changed the language, then that value should be empty in the database and WHMCS should default to using the localisation value... but it's been a while since I tested that in practice.

Share this post


Link to post
Share on other sites

Thank you, Brian, but the user have no option to chose languages because I disabled this possibility and set the default lang globally. Even the email templates are in English, despite the fact that I chose a different language, so I have translated them manually. I can translate the invoice.pdf by editing /lang/english.php file(I know this is not a permanent solution, as I need to move the file to /lang/overrides), but I do not understand why the invoice is generated in English even when the global localisation is different.

Share this post


Link to post
Share on other sites

False report. I re-created the test account to whom I was sending test invoices. The invoice language is correct now. This can be closed. Thank you.

Share this post


Link to post
Share on other sites
3 hours ago, paldigit said:

Thank you, Brian, but the user have no option to chose languages because I disabled this possibility and set the default lang globally.

even with those changes, they can set it in the URL if they know what they're doing and that would update the database too. 🙂

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines