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

1476 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
+3 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.

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

1476 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
+3 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.

1476 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
+3 more
OriginalEXE says

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

3748 posts
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Won a competition
+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
+3 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 :)

1476 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
+3 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/

by
by
by
by
by
by