Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1170787
Translate back and next buttons on portfolios
Closed

Comments

  •  1
    Vitor started the conversation

    Hi,


    I would like to know how I can translate it, I attached a screenshot.

    Thanks,

    Vitor

  •  7,092
    Oliver replied

    HI!

    1. Take file languages/thegem.pot or xx_YY.po from theme directory .

    2. Open file with Poedit software.

    3. Translate necessary strings to your language.

    4. In software open Catalog - Settings and set Language to Translation to xx_YY.

    5. Then save file as thegem-xx_YY. You must have two files thegem-xx_YY.po and thegem-xx_YY.mo.

    6. These files you need to put to the wp-content/languages/themes of your site.

    With same operation you can translate TheGem elements plugin.

    Just put  translations in wp-content/languages/plugins

     


    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  1
    Vitor replied

    Hi,

    I've already found other solution.

    Here is the solution:

    - Go to Appearance - Editor and select content-page.php

    - Search for Next and Prev

    'thegem_portfolios')) : ?>
    <?php thegem_button(array(
    'text' => __('Av

    Avant

    ', 'thegem'),
    'href' => get_permalink($thegem_nav_post->ID),
    'style' => 'outline',
    'size' => 'tiny',
    'position' => $thegem_pf_data['fullwidth'] ? 'inline' : 'left',
    'icon' => 'prev',
    'border_color' => thegem_get_option('button_background_hover_color'),
    'text_color' => thegem_get_option('button_background_hover_color'),
    'hover_background_color' => thegem_get_option('button_background_hover_color'),
    'hover_text_color' => thegem_get_option('button_outline_text_hover_color'),
    'extra_class' => 'block-portfolio-navigation-prev'
    ), 1); ?>
    <?php endif; ?>
    <?php if($thegem_nav_post = get_next_post(false, '', 'thegem_portfolios')) : ?>
    <?php thegem_button(array(
    'text' => __('Après', 'thegem'),
    'href' => get_permalink($thegem_nav_post->ID),
    'style' => 'outline',
    'size' => 'tiny',
    'position' => $thegem_pf_data['fullwidth'] ? 'inline' : 'right',

    Thanks

  •  7,092
    Oliver replied

    In this way, you need to copy content-page.php  to the child theme for safety update. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  1
    Vitor replied

    Thanks Gregor