[Closed] how to translate custom field and custom css

Home Support English Support [Closed] how to translate custom field and custom css

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by  DavidGW 11 months ago. The support staff assigned to this topic is DavidGW.

Viewing 9 posts - 1 through 9 (of 9 total)
Author Posts
Author Posts
June 21, 2012 at 4:44 pm #64219

Fabrice

Hi there,

thanks for your plugin! works great…

just have few questions:

I have installed a template from themeforest : RSW

but in the contact form that use custom field (you can edit the field of the contact)

http://img7.imagebanana.com/img/exppiz6d/Slection_495.png

http://img6.imagebanana.com/img/ep6ksx0l/Slection_496.png

the page :
http://www.ethernitylab.com/creation/HeraSITE/?page_id=29

so i need to translate this custom field..

also, I am looking to have the language selector with only flags side by side.

thanks in advance
fab

June 21, 2012 at 5:03 pm #64220

DavidGW

Dear Fabrice,

With the Translation Management plugin installed, browse to your Dashboard -> WPML -> Translation Management -> Multilingual Content Setup.

There you have a list of custom fields and you can select which ones need translation.

As for the language select, you should probably try building a custom one:
http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Regards,
David

June 21, 2012 at 6:00 pm #64231

Fabrice

Hi David!

Thanks for your help!! :-)

so in Dashboard -> WPML -> Translation Management -> Multilingual Content Setup.
I cannot find the field that i need to translate…

http://www.webpagescreenshot.info/img/609882-621201285629PM

so I should find : Nom, Sujet or e-mail field but i cannot find…

Regards,
Fabrice

June 22, 2012 at 9:00 am #64307

DavidGW

Dear Fabrice,

If you cant find it there, its probably not a custom field. My guess is that this text is kept in the options table.

We have a program here to work with theme authors and take care of the compatibility issues.
http://wpml.org/documentation/theme-compatibility/go-global-program/

Would you like to interest your theme author in it?

We are ready to join forces with him and work together to solve this compatibility problem.

Please contact the author and ask him if he is ready to work with us. If he is, please provide us with his contact details and we will do the rest.

Thank you
David

June 22, 2012 at 9:45 am #64311

Fabrice

Dear David,

thanks for your support!

So I post a request on the support of the theme author :

imaginem

http://support.imaginemthemes.com/forums/topic/rsw-and-wpml-issue/
(themeforest) Theme : RSW

I look forward for a complete and clean translation!

thanks again,
Fabrice

June 22, 2012 at 10:04 am #64316

DavidGW

Dear Fabrice,

Keep us informed of your progress.

Thanks,
David

June 22, 2012 at 10:52 am #64326

Fabrice

Hi David,

I have some problem with : Language selector with flags only
http://www.ethernitylab.com/creation/HeraSITE/

http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

So I follow the tuto but i cannot get to the result..

* I put the function below into functions.php (of my theme)

function language_selector_flags(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages)){
foreach($languages as $l){
if(!$l['active']) echo '<a href="'.$l['url'].'">';
echo '<img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" />';
if(!$l['active']) echo '</a>';
}
}
}

* I add the code below into style.css (of my theme)

#flags_language_selector img{
margin:1px;
border:1px solid #333;
}

and after I put the code below into a widget text..

<div id="flags_language_selector"><?php language_selector_flags(); ?></div >

but it is not working… :-(

what i am doing wrong!?

thanks in advance

June 22, 2012 at 10:57 am #64327

Fabrice

OK,

I place

<div id="flags_language_selector"><?php language_selector_flags(); ?></div >

into the header.php,
and in my case I place the code into header-navigation.php and the widget part (social header)

thanks
Fabrice

June 22, 2012 at 2:57 pm #64358

DavidGW

Dear Fabrice,
I can see the flags now, did you resolve it?
Regards.
David

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘[Closed] how to translate custom field and custom css’ is closed to new replies.