• Hi all!
    Thank you very much for developing this theme.
    I have a question, how can I set these ítems in spanish?

    -date
    -the text “Category” that is displayed when you go to a category,
    -the “next page” and “previous page” texts.

    Thanks again! Hope you guys can help me.

    (Sorry about my english, writing from Colombia)

    Sebastian Arias
    [email protected]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi. I like this theme so much, so, I will try help in this support forum anyone with issues that I know.

    First, sorry my english too. And I’m not a expert coder.

    Take a look: https://lh5.googleusercontent.com/-yTxdbEJVekI/UqlLFehuoYI/AAAAAAAABnE/hOvbXwrDICs/h542/printscree.png

    I change the order of next and previous. So, tha category display the post from 1 to 10, for example, and user can alternate between post in a better logic that original wp. Wp order is better to “news”, for example.

    You need to open the file post-nav.php, inside the folder “inc”.
    (\wp-content\themes\hueman\inc)

    In this file, just change the text ‘Next story’ and ‘Previous story’

    In my case, I change the order of <li class=”next”> and <li class=”previous”>. And change the icon. I just change the icon in li/next to the left icon, and li/previous to the right icon.

    after this, I have to change the float attribute of this icons in style.css

    in “.post-nav li.previous i” I change left by right,
    in .post-nav li.next i I change right by left.

    The results is in my printscreen above.

    To translate another words, the logic is the same. You have to find in php files, and write your text there.

    BUT, this is note recommended. The right way to translate I guess, is by PO files Language folder. This allow a easy way to translate all the theme, and alllow a better process of update the theme.

    This is for CSS editing. I’m edit CSS in style.css. This is wrong, because in a update, I will lose this modification. But, it’s temporarily, in my case, and a have a lot of things to study, like themes child, and how to keep my css modification after a theme update.

    Right now, I’m searching to a tutorial to how to translate themes, and them, I will translate to Portugues-Brasil.

    It would be nice if anyone recommend some tutorial, and them, we can make a list of PO/MO files for anothers languages.

    It’s not finished my “research”

    anyway, just open the en_US.po with the software POEDIT. Translate words, and save as sp_CO.po and sp_CO.mo

    -> I guess! In my case I save as pt_BR. This name you can find in some document in web, with languages code.

    Then, open wp_config, and change the en_US for yours language.

    Judith

    (@avanzarenpositivo)

    First of all, excuse for my english…

    I prepared the translations in spanish for my site. You can download de files here:
    https://dl.dropboxusercontent.com/u/16410304/traducciones_hueman.rar

    Just copy this files in the language folder.

    **********************************************
    He preparado las traducciones a espa?ol para mi site. Puedes descargar las traducciones en espa?ol del tema aquí:
    https://dl.dropboxusercontent.com/u/16410304/traducciones_hueman.rar

    Tendrás que copiar los ficheros en la carpeta de idioma del tema.

    @jefersonbmx: Please stop encouraging people to edit the theme itself. Almost all of the changes that you are suggesting will be lost when the theme is updated. First create a child theme for your changes.

    I’m sorry. I’m starting to study wp now, and learning these lessons.

    Hi Judith,

    I setup a “languages” folder under hueman child theme with your two files and added the following code to my child theme functions.php

    <?php
    /**
     * Setup My Child Theme's textdomain.
     *
     * Declare textdomain for this child theme.
     * Translations can be filed in the /languages/ directory.
     */
    function my_child_theme_setup() {
    	load_child_theme_textdomain( 'my-child-theme', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    ?>

    But unfortunately many text strings do not get translated, such as “previous” and “next” in post navigation.

    Any hints will be greatly appreciated

    Judith

    (@avanzarenpositivo)

    Hello, You do not have to modify de code. The theme already have a folder named “languages”, you just have to copy the files inside.

    In the theme folder you will find the original languages files “en_US.mo” and “en_US.po”. When you copy these new files “es_ES”, you will add this translation to the theme. (you can modify or create your own translations with the app poedit)

    BUT, VERY IMPORTANT, you have to configure wordpress in spanish. If you don’t do it, the site will not recognize this language.

    This link explains how you can do it:
    https://webconwordpress.wordpress.com/2011/04/06/cambiar-idioma-y-plantilla-al-configurar-wordpress/

    Another link:

    Home

    Thanks for your prompt response Judith.

    In case I wasn’t clear enough my problem resides in the CHILD THEME language files and not the parent one.

    That is the reason for the code beforementioned. And which was obtained from the WP codex.

    I finally managed to have my site translated, but by insalling your files in the PARENT theme.

    I am afraid I do not know the culprit which is causing the child theme to ignore language files.

    Regards,

    In order to have languages loaded from your child theme directory, you need to copy over the whole alx_setup function from functions.php (or alx_load function in 1.2.8 / 2.0.6+). And put it in your child theme’s functions.php.

    Then modify this line in it:

    // Load theme languages
    load_theme_textdomain( 'hueman', get_template_directory().'/languages' );

    To:

    // Load theme languages
    load_theme_textdomain( 'hueman', get_stylesheet_directory().'/languages' );

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Set some stuff in spanish’ is closed to new replies.