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 8 replies, has 2 voices.

Last updated by bilalZ-2 1 year, 4 months ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
May 11, 2018 at 3:43 pm

bilalZ-2

I am trying to:edit theme option value in string translation but it is not applied to the website

Link to a page where the issue can be seen:hidden link

I expected to see:at the footer the string 'RECENT BLOG' should start from right to left

Instead, I got:left to right even i have changed it in string translation

May 14, 2018 at 10:39 am #2116098

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support. I'd be happy to assist you further on this issue.

I can see the issue on your site, to debug this issue further, I tried to download your theme but since your FTP details are not working I was unable to do so, so I need to request temporary access (wp-admin and FTP) to your site in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link

This info is private, and available to you and supporters only. Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note that:

#1
Backup (both files and database) your site before giving us your credentials. You can use a plugin for this if you like. I often use the Duplicator plugin for this purpose.
See: http://wordpress.org/plugins/duplicator/

Duplicator instruction
hidden link

#2
It would be better if you give me the test site rather than the live site.

#3
If the issues need some changes in the plugins updates/disabling we will install a plugin called “duplicator” and replicate the site in our local server for testing.

Look forward to your reply.

Thanks

May 15, 2018 at 12:56 pm
May 16, 2018 at 11:28 am #2155830

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please follow the below steps to fix the issue:

- Go to \wp-content\themes\deeds\framework\helpers\enqueue.php line no.224 and replace the code with the following

if ( sh_set( $options, 'rtl_style' ) != 1 ):

- Now go to theme options and enable the RTL option.

- Register the strings using the following config file.

<wpml-config>
	<admin-texts>
	 <key name="wp_deeds_theme_options">
	 	<key name="rtl_style"/>
	  </key>
	</admin-texts>
</wpml-config>

- Since the string will be registered in English and will have the value of 1, for the Arabic language set the value to 2 and complete the translation.

Let me know if this helps.

Thanks

May 16, 2018 at 1:29 pm #2158300

bilalZ-2

Hey
Thanks for help but the line no.224 on my copy of enqueue.php is just an array items it doesn't look right to replace it. can you please make sure the line number is correct or please send edited file
Thanks again

May 16, 2018 at 1:37 pm #2158431

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have changed the code on your theme, It's in line no. 115

Thanks

May 16, 2018 at 2:02 pm #2159131

bilalZ-2

Thanks that works like a charm.. but may i do the same to other theme options like Pastors Message or copy rights??

thanks

May 16, 2018 at 2:22 pm #2159574

bilalZ-2

Hey i am sorry.. i was able to make work for copy rights but not for Pastors Message can you please help with this so i can apply same for other options
Thanks

May 17, 2018 at 3:20 am #2166631

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You can use the following xml file to register the message

<wpml-config>
    <admin-texts>
        <key name="wp_deeds_theme_options">
            <key name="dynamic_pastors">
                <key name="dynamic_pastors">
                    <key name="0">
                        <key name="pastor_msg"/></key>
                    <key name="1">
                        <key name="pastor_msg"/></key>
                    <key name="2">
                        <key name="pastor_msg"/></key>
                    <key name="3">
                        <key name="pastor_msg"/></key>
                </key>
            </key>
        </key>
    </admin-texts>
</wpml-config>

To know more about creating config files, please visit the following documentation: https://wpml.org/documentation/support/language-configuration-files/

Look forward to your reply.

Thanks

May 18, 2018 at 11:08 pm #2192594

bilalZ-2

Thanks problem has been solved.