Theme Translation with WPML in Spanish

Posted in: Newspaper
Post count: 4

Hi there,

First of all, congratulations for your work.
Amazing theme, beautiful design, robustly build…. thumbs up!
Thank you!

I have a few question regarding the translation / localization, perharps you can point me in the right direction here. The main site is in Spanish, and I am using WPML for english as second language.
I’ve read and research, however still have some issues with:

1. Translation .po – .mo files / Theme panel options “mismatch”.

I am getting this error:
WPML Plugin is active! When the plugin is active, the *.po - *.mo files are used instead of Theme Panel Translation.

So following the indications in your documentation, I’ve added the .po – .mo files accordingly for spanish.
However:
a. The “error” message is still on.
b. Not all the string are translated.

Mainly you can see that in some parts of the signin form.
Example: “Create account”, “Welcome! Register for an account”, “Forgot your password? Get help”, etc…

Even if I see this options in the “theme panel” / “Translations” they are NOT in the .mo .po files to modify or translate.

Am I missing something here? 🙂
Any ideas?

2. How to Translate Widget “Custom Titles”.
Simply question, I’ve added quite a few different “theme widgets with custom titles”, however they are not appearing as “Strings” in WPML…
How can I translate the “custom titles”?

3. Banners by language.
I know this is a “hard one”, but I assume I am not the first one to ask and it could be useful for others.

Any way to change the banner by language?

Sorry to bother you guys, but help will be much appreciated!

Thanks in advance.

Fernando.

PS: The site is still on development, however here are the links in any case you need them:
http://dev.gabrielfariasiribarren.com/
http://dev.gabrielfariasiribarren.com/en/

Post count: 20688

Hi,

1. That message is not an error, it was added to let people know not to use the translation panel if they use WPML. You can simply dismiss the message.

2. I believe you must use the string translation module, for the widget titles
https://wpml.org/documentation/getting-started-guide/string-translation/
https://wpml.org/faq/getting-string-translation-to-work/
https://wpml.org/documentation/

3. I couldn’t say how you could display ads by language. The theme supports Adsense ads and also other ad implementations, but it does not have such advanced options by default
https://forum.tagdiv.com/ads-adsense-overview/
https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
I believe Adsense supports language ad targeting, if you use Adsense ads. Here you can find more information
https://support.google.com/adsense/answer/9713?hl=en&ref_topic=1628432
https://support.google.com/adsense/answer/2753586?hl=en

Thanks

Post count: 4

Hi,

Thanks for your response and all the info, much appreciated.
Most of the items are closed, just a couple of comments if you allow me:

1. “You can simply dismiss the message.”
Can you please explain the best way to do this permanently?
Each time I close it, stills comes up “site-wide”…

2. I’ve managed to “manually” change them all.
However the footer / “about us – FOOTER TEXT” is resisting… (WPML can’t find the string…)
Any comments on this?

3. We do not use Adsense, is just a static image, however we want to be able to change it by language (one in ENG and one in ESP).
A bit of php code will do that (an example attached)

<?php if(ICL_LANGUAGE_CODE=='es'){?>
             <div class="td-all-devices"><img src="/banner_top_ESP.jpg" /></div>
	 elseif(ICL_LANGUAGE_CODE=='en'){?>
	 		<div class="td-all-devices"><img src="/banner_top_ENG.jpg" /></div>
 <?php }?>

The question is where to put this on the theme without breaking anything..:-)
If you can point me on the right direction will be appreciated!

Thanks again for your all your help and patience.

Have a nice weekend!

Fernando.

PS: I realize that the “Per post category” on the theme settings only works for the main language categories and not the translations. I will be a great improvement to have this option for multilanguage sites as well.
Anyway, your theme rocks! Great work.

  • This reply was modified 8 years by monet. Reason: wrong code
Post count: 7909

Hi,

1. I will add this on our list and it will be fixed in a further update.
2. Please check this topic as reference – https://forum.tagdiv.com/topic/translate-newsmag-footer/#post-193130
3. You can do this the same using String Translation. Under td_011 you can find td_ads – https://www.screencast.com/t/ddrNSfzEhttps://www.screencast.com/t/58mE8KiVq

Thanks!

Post count: 4

Hi Alin!

Thanks for your reply! Much appreciated.

All is good and working now! (sorry for my late reply)

As for the “alert” message:
WPML Plugin is active! When the plugin is active, the *.po – *.mo files are used instead of Theme Panel Translation.

Any updates on how can I exclude this?
If you point me on the right direction I can modify the code accordingly.

Thanks again and have a nice day!

Post count: 22421

Sure.

You can find the code here: https://www.screencast.com/t/Imlyrexj

Thanks.

Post count: 4

Great! Thanks you!
Have a good day/week.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.