1501 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+9 more
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

1509 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
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.

1501 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+9 more
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?

1509 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
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.

1509 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

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

3752 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
+9 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
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
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 :)

1509 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
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/

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by