WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
Leaf Option translation problem on Admin page (24 posts)

  1. AurelBz
    Member
    Posted 1 year ago #

    I have problems with the French translation of Leaf for the admin section.
    The menu title "Leaf Option" is well translated, but all other strings in the option page are not.
    I've tried on a fresh new install of WP 3.5.1-fr, and also to renew the po/mo files with Poedit.

    I do not see the problem :\
    Did you experiencing this problem with other languages ?

    Thx in advance

  2. wp-aj
    Member
    Posted 1 year ago #

    I also cannot get the French translation to work with the Leaf theme.

    Great that the french translation is provided but there's something wrong somewhere.
    I've loaded the po file in poedit and created a new output file, but that
    also doesn't work.
    I've tried several recommendation for loading a theme translation file by editing the relevant php file from the Leaf theme, but that also didn't help. I'm curious what the solution is for this problem.

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    Wp-aj,

    You can create your own thread for support with your issue.

  4. lupi73
    Member
    Posted 1 year ago #

    hi,
    Maybe should recreate a complete translation of the theme or use a translation plugin, perhaps the administration part is not intended for translation po and mo often does not reflect the administration part, must be translated directly into files , then you need a child theme

  5. AurelBz
    Member
    Posted 1 year ago #

    Hello wp-aj, parlez-vous Français ?
    Is your problem only on the admin section ?
    I have made the same research as you, also in the WP l10n code, without understanding what the problem is...

    @noaneo the po files contains all the strings for the admin section, and the code is ready for translation ( e.g. theme-options.php )

    @andrew imho my problem and wp-aj problem seems to be the same.

  6. wp-aj
    Member
    Posted 1 year ago #

    Salut AurelBz,

    Unfortunately my french language knowledge is very minimal.

    The problem is at a website for some friends of mine, and they are
    not so good with computer things.

    I have set fr_FR as WPLANG, and WordPress things are all in French (like the admin dashboard, and things like "Articles récents" in the widgets are in French as well, but things like "More articles" and "Search" and "Full article" from the Leaf theme are not getting translated.

    The website runs on Debian Linux with WordPress 3.3.2 on it.
    I have enabled the locales for fr utf-8 and some others for fr,
    and done some php gettext tests that I came across.

    For now I have translated those last three things in home.php from
    the Leaf theme manually.

    Regards,
    AJ

  7. wp-aj
    Member
    Posted 1 year ago #

    Oh, and in the admin dashboard everything is in French except the Leaf options in the theme settings part, which is in english.

    I responded to the question from AurelBz because I thought we have the same problem, and to show that there's more people with the same problem. A few days ago I also read another post from someone who could not get the French translation for the Leaf theme to work, and there was no solution for that :(

    Regards,
    AJ

  8. AurelBz
    Member
    Posted 1 year ago #

    To precise : for me, only the "Leaf Options" page is not translated ( except the menu title and the title : "Options Leaf" !? ). Despite the strings are presents in .po file.

    For the rest, I've also remark some rare missing/erroneous strings.
    ( For "Search" it's "Search..." )
    Try these :

    #: content.php:44
    msgid "Full Article"
    msgstr "Article entier"
    
    #: home.php:189
    msgid "More Articles"
    msgstr "Autres Articles"
    
    #: comments.php:30
    msgid "One thought on “%2$s”"
    msgstr "Un commentaire sur “%2$s”"
    
    #: comments.php:30
    msgid "%1$s thoughts on “%2$s”"
    msgstr "%1$s commentaires sur “%2$s”"
    
    #: searchform.php:13
    msgid "Search..."
    msgstr ""

    I'm collecting these translation problems and I will submit them to the theme author on github.
    https://github.com/bradthomas127/leaf

  9. wp-aj
    Member
    Posted 1 year ago #

    I just download the fr_FR mo and po for the theme Twenty-Ten here http://www.dominiqueleweb.com/creation-de-site-blog/wordpress/2010-09-wordpress-3-traduction-twenty-ten-1-1 and did a test with the Twenty-Ten theme version from around that time.
    In that test everything is in french. The search button text is in french and the search results : shows "Résultats de la recherche :".
    So there's no software problem in my setup regarding translation.

    But for the Leaf theme it is still all in english :
    "Search..." and "Search Results for:".

    I've used poedit software for the fr_FR.po file and created a new fr_FR.mo for the Leaf theme, with the same result (all in english).

    How to get it working ?

    AJ

  10. AurelBz
    Member
    Posted 1 year ago #

    try with these po/mo files and let us know

    https://www.dropbox.com/s/untba9eo4z04e7o/fr_FR.zip

  11. wp-aj
    Member
    Posted 1 year ago #

    Thanks AurelBz. Those po/mo files are for Wordpres 3.4.x, and not for the Leaf theme though.

    I've just done some more testing.
    With Leaf version 1.0 the french translation works much better.
    Not for the Search button text but for example "powered by WordPress" gets translated, as well as "More articles" and "Full article".
    (Most of the admin "Leaf options" part does not get translated)

    I've been trying a few times to manually create a new fr_FR.mo file with poedit, and that failed each time to translate anything at all.

    Conclusion : With Leaf version 1.0 the french po/mo worked pretty well
    for the webpages but not the small "Leaf options" admin part.

    With Leaf version 1.0.4 nothing seems to get translated into french with the supplied po/mo files or new po/mo files based on leaf.pot.

    By the way. Here's the other post I mentioned above :
    http://wordpress.org/support/topic/problem-with-the-arrows-back?replies=10

    I tried his suggestion
    >>I tried in "Poedit" option "update from a file .POT"<<
    but that didn't help.

  12. AurelBz
    Member
    Posted 1 year ago #

    Sorry,
    I did not take good files.

    These are my po/mo files for Leaf 1.0 ( Github master )
    https://www.dropbox.com/s/untba9eo4z04e7o/fr_FR.zip

  13. wp-aj
    Member
    Posted 1 year ago #

    Great, thanks a lot! This is much better, almost everything in french on the front-page now, and part of the admin "Leaf options" is in french. Thanks AurelBz! Regards, AJ

  14. lupi73
    Member
    Posted 1 year ago #

    hi,

    https://github.com/bradthomas127/leaf/tree/master/languages
    I put the file in languages ​​/ but the theme remains in English, why?
    thank you

  15. AurelBz
    Member
    Posted 1 year ago #

    hi noaneo,

    your WordPress is configured in fr ?

    Locate this in wp-config.php

    define('WPLANG', 'fr_FR');
  16. lupi73
    Member
    Posted 1 year ago #

    yes.

    il est en français avec les thèmes par défaut.
    que j'utilise le thème Leaf ou le thème enfant à part de ce thème pareil.

    it is in French with the default themes.
    I use the Leaf theme or child theme to share this same theme

  17. AurelBz
    Member
    Posted 1 year ago #

    If you use a child theme, the languages files have still to be in the main theme.

    ( because in theme-functions.php the "load_theme_textdomain" use "get_template_directory" and not "get_stylesheet_directory" ... )

  18. lupi73
    Member
    Posted 1 year ago #

    I put the language files in the main theme and child theme

  19. lupi73
    Member
    Posted 1 year ago #

    theme-functions.php
    /**
    * Make Leaf available for translation.
    * Translations can be added to the /languages/ directory.
    * If you're building a theme based on Leaf, use a find and replace
    * to change 'leaf' to the name of your theme in all the template files.
    */

    site test http://er-v.olympe.in/

  20. AurelBz
    Member
    Posted 1 year ago #

    Your po /mo files are not good ( you have downloaded github html files !? )

    http://er-v.olympe.in/wp-content/themes/noaneo/languages/fr_FR.po

  21. AurelBz
    Member
    Posted 1 year ago #

    .. or my version mentioned above .

    https://www.dropbox.com/s/untba9eo4z04e7o/fr_FR.zip

  22. lupi73
    Member
    Posted 1 year ago #

    yes I downloaded those Brad Thomas127 chez github, this where
    https://github.com/bradthomas127/leaf/tree/master/languages

    and not your version.

    better take yours?

  23. AurelBz
    Member
    Posted 1 year ago #

    When I get http://er-v.olympe.in/wp-content/themes/noaneo/languages/fr_FR.po
    i see HTML from GitHub ...
    Try do download all the theme with the zip button

  24. lupi73
    Member
    Posted 1 year ago #

    yes from GitHub.
    with your version, the main theme is good, in french, thank you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic