WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Translation (French) issue (5 posts)

  1. Aranarth
    Member
    Posted 3 years ago #

    Hiya, I just started using the theme. My website and Windows are in French, so I guess the them automatically translates, which is really nice.

    Except for one thing, at the end of each post, before the category, the French words are "Remplis sous", followed by the category. It does make sense, but it's definitely not what a proper French translation should be.

    Is there any way I can change these words in the php/css theme files? I don't know much about theme customisation yet.

    Thanks!

  2. Samuel B
    moderator
    Posted 3 years ago #

    post's are displayed by theme's single.php and pages by page.php
    index.php or home.php is used to display front page

  3. Aranarth
    Member
    Posted 3 years ago #

    Thanks, but I have no idea what to change there. I looked for the french phrase but didn't find it.

  4. Antanarive
    Member
    Posted 3 years ago #

    Aranath,

    You will have to look for the precise function that is building the line containing that text, as the bottom of posts.

    I am personnaly using the Thematic Framwork theme, that I am customizing. The default function to generate the post footer is in the file content-extension.php and is the following:

    // Create post category
    function thematic_postfooter_postcategory() {
    
        $postcategory = '<span class="cat-links">';
        if (is_single()) {
            $postcategory .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
            $postcategory .= '</span>';
        } elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { /* Returns categories other than the one queried */
            $postcategory .= __('Also posted in ', 'thematic') . $cats_meow;
            $postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
        } else {
            $postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');
            $postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
        }
        return apply_filters('thematic_postfooter_postcategory',$postcategory); 
    
    } // end thematic_postfooter_postcategory

    As you see, it contains the words "Posted in", which could be replaced by your preferred words. That means you would edit the theme directly
    (In my case, I did something esle, since I am not directly editing the theme, but creating a child theme).

  5. Aranarth
    Member
    Posted 3 years ago #

    Thanks!, I found what I was looking for.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags