1090 posts The Last Man Standing
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Exclusive Author
  • Bought between 10 and 49 items
  • Sold between 50 000 and 100 000 dollars
  • Beta Tester
ImanGM says

Hello Community,

Here is the scenario: I want to put some text variables in my theme options to let users change them to what they want. But I’m not sure what should I do when users are using WPML or such plugins…

How can make these strings WPML ready?

And even more, I have a special contact page template that I’ll let users choose the contact page’s contact form from theme options. So I let them to choose one contact form in theme options. Now, how should I deal with these issues in a multi language site?

Thank you very much!

Cheers,
Iman

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

Why not having separate Options panel data for each language?

That way you solve all your problems and customers can customize their multilingual site completely.

1090 posts The Last Man Standing
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Exclusive Author
  • Bought between 10 and 49 items
  • Sold between 50 000 and 100 000 dollars
  • Beta Tester
ImanGM says

Thank you for your response.

You mean I should add a language switcher in theme options and let users set separate theme options for each language?

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

That’s how we do it.

We don’t have multilingual feature inside the framework, but we do have WPML support. Once WPML is activated, in the admin bar you can switch between active languages. Framework detects that and automatically loads theme options panel with data for that active language.

No one complained about it so far.

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

Note: You don’t need to add switcher manually, that’s part of the WPML.

3747 posts
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Spain
  • Referred between 200 and 499 users
+5 more
pezflash says

Not sure if this could help, but i’m using plain Wordpress multisite (network) + language swichter plugin to generate sites on different languages and i find it just great and straight-forward, not to mention the advantage of getting rid of yearly paid plugins (WPML) for my final clients.

In this scenario, themes using PO-MO files to get all theme strings are a must.

332 posts
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Envato Studio (Microlancer) Beta Tester
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
dekciw says

For example, if you have an option ‘footer text’, print it out on the frontend using _( $text, ‘xxx’); so that it’ll make that string entered in ‘footer text’ appear in WPML string translation :)

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

For example, if you have an option ‘footer text’, print it out on the frontend using _( $text, ‘xxx’); so that it’ll make that string entered in ‘footer text’ appear in WPML string translation :)

That’s actually a bad idea: http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/

by
by
by
by
by
by