Support » Theme: Hueman » MORE, FOLLOW and CATEGORY in Norwegian

  • Resolved kaarmikk

    (@kaarmikk)


    My page is in Norwegian and I found out how to change MORE and FOLLOW and it worked but the top-text in the mid-column was CATEGORY when I select a Kategori in the sidebar, not KATEGORI as it should be in Norwegian
    To-day I updated, and then MORE and FOLLOW turned back to English.
    Can you please inform where I shall change the MORE, FOLLOW and CATOGORY, in order to make it survive next updates, will that be in the wp-content/languages/nb_NO.po?

    Please see my page

Viewing 15 replies - 1 through 15 (of 16 total)
  • You need to create a child theme and follow the instructions here under the section “Internationalization”.

    A sample child theme can be downloaded via the Help dropdown top right in Theme Options.

    You would copy over the whole alx_setup from functions.php to your child theme’s functions.php, then modify this line:

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

    To:

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

    And put your language file in the /languages/ folder, which you need to create in the child theme.

    Thread Starter kaarmikk

    (@kaarmikk)

    This is a bit too complicated for my limited php knowledge. Is it somebody I could ask to make the child theme for me i such a way that I only have to upload it?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you considered hiring someone to do this for you?
    http://jobs.wordpress.net

    Thread Starter kaarmikk

    (@kaarmikk)

    A few questions:
    1. Shall the hueman child folder be named hueman-child-master, hueman-child or hueman child?
    2. Shall the hueman child folder be uploaded to wp-content/themes or to wp-content/themes/hueman?
    3. Which language files shall be uploaded to the hueman child language folder. en_US.mo/en_US.po or nb_NO.mo/nb_NO.po?

    Thank you. That’s solution I was asking in other topic.

    Thread Starter kaarmikk

    (@kaarmikk)

    I have tried to upload hueman child according to instructions from Alex but when I activate Hueman Child the screen get blank and the URL reads
    http://fotobloggen.net/wp-admin/themes.php?activated=true

    What should I do to get further?

    1) It can have any name you wish, although hueman-child is considered the standard. The -master is added by GitHub, as it’s the master repository download link.
    2) to /wp-content/themes/ as if it were its own theme.
    3) You could do both.

    Interesting that the page goes blank. Did you modify the child theme in any way?

    Thread Starter kaarmikk

    (@kaarmikk)

    I did the folloving:
    1. Renamed hueman-child-master to hueman-child
    2. Copied everything from hueman/functions.php to hueman-child/functions.php
    3. Modified get_template_directory to get_stylesheet_directory
    4. Used FileZilla to upload hueman-child to server
    4. Made a new directory under hueman-child on the server and copied in the en_US.mo and en_US.po files.

    2. Copied everything from hueman/functions.php to hueman-child/functions.php

    Everything? Just copy the the alx_setup() function (without the add_action / add_filter / !function_exists parts). It would look like this in the child theme’s functions.php:

    function alx_setup() {
    // lots of code here
    }

    Thread Starter kaarmikk

    (@kaarmikk)

    That was working, thanks.
    One last question for now:
    Where do I change FOLLOW, MONTHLY ARCHIVE, CATEGORY and MORE to Norwegian?

    Dowload PoEdit, and then either edit en_US.po in your child theme or copy it and create a nb_NO.po (if that is the right naming for it). Modify the text lines you wish, then save.

    You fill it in like this.

    Thread Starter kaarmikk

    (@kaarmikk)

    Downloaded PoEdit, modified en_US.po saved as nb_NO.po and uploaded to hueman chils/languages. It worked.
    Thank you very much.

    Hi,
    changed the languages files to Norwegian with PoEdit, put them in a new folder called
    hueman-child/languages/

    Changed functions.php in hueman-child folder to this:

    <?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( 'hueman-child', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    ?>

    — and it does not work. It uploads fine, but it’s still in english. What have I forgotten? I’m going nuts! Help!

    Probably the same mistake I did. What theme do you have activated? You need to activate the human-child theme.

    I did activate the human-child theme in WP, very easy – uploaded it and activated. I suspect the problem is in my PHP coding, as I’m a bit lost outside HTML 🙁
    I’m stuck here, as I do not want to make any changes to the theme before I have the language in place at least.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘MORE, FOLLOW and CATEGORY in Norwegian’ is closed to new replies.