Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation doesn't work if string has breaks/spaces #14

Open
utamilah opened this issue Jan 4, 2019 · 2 comments
Open

Translation doesn't work if string has breaks/spaces #14

utamilah opened this issue Jan 4, 2019 · 2 comments

Comments

@utamilah
Copy link

utamilah commented Jan 4, 2019

I apologize in advance if this has been resolved but I believe I have the latest iteration of this plugin and this is still an issue for me.

I will try to explain as best as I can. I had some HTML that looked something like this:

  <div class="col-md-12 text-center">
        <p class="trn">
              The text I want to translate goes here
        </p>
  </div>

The plugin wouldn't translate that text. But when I changed it to this:

<div class="col-md-12 text-center">
   <p class="trn">The text I want to translate goes here</p>
</div>

It now works fine.

Is there a way to make it so both ways work and I won't have to reformat my HTML? Thanks! :)

@sumo89
Copy link

sumo89 commented Jan 8, 2019

I've submitted a pull request that fixes this. It's a very small change that you could replicate locally.
#15

@utamilah
Copy link
Author

Thanks! I'll check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants