• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

I need help to translate Genesis Framework in my language

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Internationalization and Translations › I need help to translate Genesis Framework in my language

This topic is: not resolved

Tagged: translate genesis

  • This topic has 7 replies, 2 voices, and was last updated 5 years, 8 months ago by Roberto Porcar.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • October 15, 2016 at 5:28 am #194762
    rafael74
    Member

    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 #194828
    Roberto Porcar
    Member

    I 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 #194831
    rafael74
    Member

    Hello 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 #194838
    Roberto Porcar
    Member

    What 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 #194875
    rafael74
    Member

    Hello 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 #194905
    Roberto Porcar
    Member

    Could 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 #194914
    rafael74
    Member

    Hello 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 #194947
    Roberto Porcar
    Member

    Check 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).

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble