Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 22 replies, has 2 voices.

Last updated by Dražen 1 year, 8 months ago.

Assisted by: Dražen.

Author Posts
January 29, 2024 at 9:39 am #15236956

mahmoudA-39

Hi

Is this screenshot from plugin in Sand box?

The fix was done and the emails were in Arabic. I checked the Code and the fix is not there now. However in String translation , the fix is there in Arabic version.

It seems somehow the fix has been removed!!

I will again do the fix for all texts and will see.

Regards

January 29, 2024 at 9:43 am #15236991

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

sure, you can try and check if it works.. But as I said this needs to be done by plugin author and make sure it works, we can not check back and fix issue in not compatible code every few months.

Let me know how it goes.

Regards,
Drazen

January 29, 2024 at 9:50 am #15237051

mahmoudA-39

Hi

My only comment at this point is that , It was working fine before updating WPML.

will update you on the issue

Regards

January 29, 2024 at 10:15 am #15237261

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

if you have done these changes manually inside plugin files they where deleted if that plugin was updated, since those changes are not permanent, and would be good if you shared them with the plugin author so they can add them permanently.

Regards,
Drazen

January 30, 2024 at 11:09 am #15242866

mahmoudA-39

Hi

I managed to translate the email to Arabic by wrapping texts in Gettex and contacted the plugin author, However:

1- Direction is not RTL
2- Some texts not translated even though they are same format as the ones translated. For exempla, words Need Assistance & Reception are not translated but Contact us & Talk to us are translated . See Code Below

<div><?php _e( 'Need Assistance: ', 'vikbooking-mail' ); ?>
hidden link"><?php esc_html_e( 'Talk to us', 'vikbooking-mail' ); ?></div>

Regards

January 30, 2024 at 1:36 pm #15244103

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am sorry but as I have informed you before you will need to contact the plugin author and ask them to join our program and work with us on making the plugin compatible, we can not adjust their plugin code for them.

In this case you will probably also need to adjust the CSS of the email for when the language is RTL.

Kind regards,
Drazen

February 2, 2024 at 11:04 am #15258708

mahmoudA-39

Hi

Contacted the plugin author and relayed to them your request to join your program.
Also the code reviewed and now the email is translated correctly except 2 texts not translated although they are in GetText format like the other texts.

1- No. Of Reserved Chalets:

<div><h5><?php _e( 'No. Of Reserved Chalets: ', 'vikbooking-mail' ); ?><span>{rooms_count}</span></h5></div>

2- Visit your Booking Page:

<div><h5 style="color: rgb(34, 34, 34);"><?php _e( 'Visit your Booking Page: ', 'vikbooking-mail' ); ?><br>{order_link}<br></h5><h5>{condition: map}</h5></div>

Regards

February 2, 2024 at 11:41 am #15258934

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

great, glad to hear that, hope they will join and we can make it compatible.

As for text, it should work fine if they are wrapped, the only thing that comes to my mind is that they are coming from some other part of the code or from the admin string.

Can you try changing original string in code to confirm this is the correct string that is outputted in the email? I would also advise confirming this with plugin author.

Regards,
Drazen