Jump to content

poedit long paragraphs translation


thosecars82

Recommended Posts

Hello people

I am writing you to ask you whether you know how to tackle this problem. It turns out that I was quite glad by using poedit to translate websites. Nevertheles, I have just realized that it is a pain in the ass when you have really long paragraphs in your website.

Moreover, I have just been able to translate without using variables. Otherwise poedit does not recognize the strings.

For example:

If you put

echo _("whatever fjdsljfaslo

djofaesnfoaenoe.....fdasfas.... fdsfas");

Then you might do a translation for this string using poedit. However, this translation does not work when I browse my php file. I have come to the conclusion that in order to get this translation working, you must put the string of each echo sentence

in just one line. Otherwise, the translation is not done and I just see the original text. Does any one how to solve this issue?

 

I am asking just because it is a mess having to write an echo sentence for each

sentence of your website instead of for each paragraph.

What I mean is that what I have is something like:

echo _("Let's say what I am going to say here to let you understand what ");

echo _("my problem is");

 

Therefore, it would be much easier if I had to put just:

echo _("Let's say what I am going to say here to let you understand what my problem is");//***

 

Do you understand what I mean?

The last example (***) was a paragraph with just 2 lines but you might find a paragraph which is 5 lines and it is not a good system having to be dividing the paragraph in tons of lines.

 

I would appreciate if anybody could tell me a solution to this problem since you might know how to solve it either through poedit or through any other tool similar to poedit or whatever.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.