Community Forums › Forums › Internationalization and Translations › I need help to translate Genesis Framework in my language
Tagged: translate genesis
- This topic has 7 replies, 2 voices, and was last updated 8 years, 1 month ago by Roberto Porcar.
-
AuthorPosts
-
October 15, 2016 at 5:28 am #194762rafael74Member
Hello to everyone,
I need to translate the Genesis Framework in my language (Spanish) as the current website I am creating shows the "read more" and other strings in English.
I have installed the plugin Genesis Translations and once activated it says:
"You're using the Genesis Framework in a language we don't support yet. We'd love for Genesis Translations to be translated in that language too, but unfortunately, it isn't right now."
I would be very grateful if someone could guide me how I can make the translations manually. I found some files translated in the next link but I don't know which files to upload to my wordpress installation directory:
https://translate.studiopress.com/global/projects/genesis/genesis-2.4/es/default/
Thank you.
October 16, 2016 at 6:48 am #194828Roberto PorcarMemberI use genesis translations on all my sites (spanish) and works perfectly.
You can do some "manual" fine tuning from your functions.php file, but the translation plugin should do the big job.
Sometimes I change a bunch of strings with this function:
function flamerz_translate( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Next Page' : $translated_text = __( 'Següent', 'genesis' ); break; case 'Previous Page' : $translated_text = __( 'Anterior', 'genesis' ); break; case 'Search this website' : $translated_text = __( 'Buscar en el web', 'genesis' ); break; case 'Search Results for:' : $translated_text = __( 'Resultats de búsqueda per a:', 'genesis' ); break; case 'by' : $translated_text = __( 'per', 'genesis' ); break; case 'Filed Under: ' : $translated_text = __( 'Archivada en: ', 'genesis' ); break; case 'Tagged With: ' : $translated_text = __( 'Etiquetes: ', 'genesis' ); break; case '1 Comment' : $translated_text = __( '1 Comentari', 'genesis' ); break; case '% Comments' : $translated_text = __( '% Comentaris', 'genesis' ); break; case 'Leave a Comment' : $translated_text = __( 'Deixa un comentari', 'genesis' ); break; } return $translated_text; } add_filter( 'gettext', 'flamerz_translate', 20, 3 );
October 16, 2016 at 7:52 am #194831rafael74MemberHello Roberto, thank you for your help, do you know why is that Genesis translations plugin does not work on my website? Is it because of the Child Theme I am using?
I will try to edit the functions file and make the translations. Also I found a .pot file inside the Genesis framework and I would like to know how I can make my own translations manually.
Thank you again.
October 16, 2016 at 10:15 am #194838Roberto PorcarMemberWhat theme are you using? you can download poedit (https://poedit.net/), but I never had to use this tool for a genesis theme.
October 17, 2016 at 4:16 am #194875rafael74MemberHello again Roberto,
I am afraid I am using a child theme from other theme designer (Web Savvy Marketing). The child theme is called "James". So are you saying that Genesis should not have any problem with its plugin Genesis Translations and that the problem I have is due to my child theme?
Thank soo much for your help!!
October 17, 2016 at 10:25 am #194905Roberto PorcarMemberCould you try to activate genesis translations on the genesis starter theme?
Maybe you have a languages folder on your theme, with a ¿james.pot? file inside.
You should translate those with poedit too.
PD: I never hear before about that error on a genesis theme.
October 17, 2016 at 12:45 pm #194914rafael74MemberHello again Roberto,
I thought that Genesis Translations plugin was not working properly with my Genesis Framework but perhaps the error is because of the James child theme. I will create a new blog next week just using Genesis and I will try again and see how goes with the Genesis Translations plugin.
I checked the in the James child theme languages folder and there is a "james.pot" file and also en_US.mo and en_US.po files. I would be very happy to translate james.pot using poedit software. Is that james.pot file the one I need to use to create the .mo and .po files? If so then I will proceed to translate.
Thank you so much for your help, much appreciated here, really, thank you !!!
October 18, 2016 at 1:08 am #194947Roberto PorcarMemberCheck it with a clean install (maybe you can use instant wordpress if you are on a PC (http://www.instantwp.com/).
For the theme translation you will have to open the pot file from Poedit. You will see a button below with the label "crear traduccion nueva". Choose your desired language from the combo box and you are ready to translate the strings.
You will see some translated sugestions on the right pane and there are shortcuts to go faster 🙂
When saving you will see 2 generated files with po and mo extensions. You can keep both on the theme folder (and maybe you should keep them separately for backup).
-
AuthorPosts
- You must be logged in to reply to this topic.