Translate "posted by"

This topic contains 14 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #15034

    MJJ Dam
    Expired Member
    Post count: 64

    Hi,

    Which .po file should I use to translate “posted by” or “filed under” I can not find it anywhere…

    Thanks in advance.

    Matthijs

    #15035

    Guust
    Moderator
    Post count: 29970

    I guess you are using GDF and I think you are looking for this string in
    /wp-content/themes/GeoDirectory_framework/languages/GeoDirectory_Framework-en_US.po

    Posted <time class="updated" datetime="%1$s" >%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.

    Let me know if I guessed wrong.

    #15045

    MJJ Dam
    Expired Member
    Post count: 64

    Found it! Is this gonna change when the GDF is updated? I also use the GD child theme, is there a way to save it there?

    #15051

    Guust
    Moderator
    Post count: 29970

    Have a look at
    http://docs.wpgeodirectory.com/translate-core/

    You need to move the MO file to /wp-content/languages/plugins/GeoDirectory_Framework-nl_NL.mo

    Then it will not be overwritten. That is where all your plugin translation MO files should be.

    #15054

    MJJ Dam
    Expired Member
    Post count: 64
    This reply has been marked as private.
    #15055

    Guust
    Moderator
    Post count: 29970

    Hi Matthijs, I would need to get your FTP details as well, to see why your language file is not working.

    #15056

    MJJ Dam
    Expired Member
    Post count: 64
    This reply has been marked as private.
    #15057

    Guust
    Moderator
    Post count: 29970

    I’ll get Stiofan to look at this, I think we need to update your functions.php but not sure how.

    #15058

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #15095

    Paolo
    Site Admin
    Post count: 31206

    did you update to wordpress 4.0? In that case you have to switch language in your wordpress settings and remove the LANG definition from your wp-config file.

    Let us know,

    Thx

    #15131

    Guust
    Moderator
    Post count: 29970

    Paolo and Matthijs
    The setting for your language is correct at WP-admin > settings > general and in your config file.
    I think it has something to do with the fact that the GDF child theme does not know to pick up the translation from the GDF framework, and I think that could be solved by an edit to the child’s functions.php.
    Paolo, let us know if I am on the wrong track.

    And that was news to me, that now you only need to set the language in the backend. It seems when upgrading from 3.9 to 4.0 that is automatically picked up though.

    #15133

    Paolo
    Site Admin
    Post count: 31206

    In that case we will need for Stiofan’s to debug it.

    We’ll keep you posted.

    Thx

    #15327

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Theme translations work a bit different in WP, the translations of GDF was done in the main theme but i have just released an update (i have updated your site) that will look for the translation in the child theme if active.

    To translate GDf you should create a folder in your child theme called “languages” and add in the translation .mo files, unlike plugins the theme .mo files must only have the language name, so for English en_US.mo or Dutch nl_NL.mo

    Guust if you could add a bit of documentation for this that would be great!

    Thanks,

    Stiofan

    #15328

    Guust
    Moderator
    Post count: 29970

    Thanks for looking into this, Stiofan.
    Is the info you just posted for all themes (and child themes) or only for GDF?

    #15330

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This applies to all themes but in GDF i have told it to look in the languages folder to make it better organised, technically in any theme you should be able to just add it to he root of the theme for it to work.

    Please see here for reference: http://codex.wordpress.org/Function_Reference/load_theme_textdomain

    Stiofan

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket