WordPress.org

Ready to get started?Download WordPress

Forums

Duster
Duster theme: translation just won't show... (6 posts)

  1. bbianca
    Member
    Posted 7 months ago #

    Hi guys,

    I'm setting up a self-hosted German website using the Duster theme and I'm working on the translations of some of the functions such as navigation, commenting, etc.

    I managed to get most of the code translated using the Code Styling Localization plugin, and they all show where they're supposed to, but there's one translation that the plugin didn't catch ("Leave a reply" in the comment box at the bottom of the page). I used the localization tool in the settings section of the dashboard and I can type the replacement but it just won't show.
    I didn't want to mess with the files but I even tried searching all of the php files to manually change the text shown but I couldn't find anything... what could I have overlooked? Is there anything else I absolutely have to adjust to make the translated text show up?

    I don't have a coding background and basically just read up on most of the coding and such that I copied, pasted, made minor adjustments to to set up the site - so please, if you do have a tweak or trick for me, break it down for a non-techie :-)

    Thanks a lot for your help in advance!

    Cheers

  2. Michelle Langston
    Theme Wrangler at Automattic
    Posted 7 months ago #

    Hi there, are you by chance using the Jetpack comment form? If so, please see this thread for more information: http://wordpress.org/support/topic/comment-form-missing-translation?replies=4#post-3752635

  3. bbianca
    Member
    Posted 7 months ago #

    Hi chelly, I'm using the regular comment form that came with the theme. Would the Jetpack comment form be a good workaround for my problem?

  4. Hi there, I'm not sure why that string isn't being saved correctly through your plugin. Here are the Duster theme files where the words "Leave a reply" are included, in case you want to change the text directly there:

    content-aside.php
    content-gallery.php
    content-link.php
    content-status.php
    content.php
    showcase.php

    The code looks like this:

    <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'duster' ), __( '<b>1</b> Reply', 'duster' ), __( '<b>%</b> Replies', 'duster' ) ); ?></span>

    Just a heads-up that the best way to make changes to a theme is to use a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

  5. bbianca
    Member
    Posted 7 months ago #

    Thank you, Kathryn. I re-checked and I had already changed the text in all of those files and still my translation is not saved.

    I'm facing another problem with the sidebar that I can't seem to add to all of my pages... so I just might restart, switch themes and create a child theme :-/

  6. If you've hard-coded in the German phrase in those files and they're still not showing, Codestyling Localization (and its problematic saving of the "leave a reply" text) may be overriding those changes.

    Does the translation work with a default theme? You may actually want to check out Twenty Ten, which was actually the successor to Duster and is quite similar.

Reply

You must log in to post.

About this Theme

About this Topic