Jump to content

Recommended Posts

Posted

Using strings for translation in templates

__("Some Text")

I have french translation which often contains a single quote ' like in "d'or".

They will get converted to htmlentities.

so ' becomes '

I can convert them back with something like

html_entity_decode(__("Some Text"), ENT_QUOTES, "UTF-8")

But I don't think this is practicable solution to do all over the code.

I don't think it's really something solvable in the translation system? 

It seems ' single quote is not the typographic correct ones anyway and should be written using ´ that seems to not get converted. 

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.
×
×
  • Create New...