• Hi,(sorry for my english)

    I try since two days to change all my configurations to make loco work but i dont find my error. There is no translation that appear. I have a child thème “maxstore-child” and the parent thème “maxstore”. Both are visible in loco so i dont know if there is a conflict in the database. I tried to delete ” maxstore bundle” but i dosent work, it still reapear.

    I dont know much about back-end fonctions and thing like that… I added :

    / Load translation files from your child theme instead of the parent theme
    function my_child_theme_locale() {
    load_child_theme_textdomain( ‘maxstore-child’, get_stylesheet_directory() . ‘/languages’ );
    }
    add_action( ‘after_setup_theme’, ‘my_child_theme_locale’ );

    And change in loco.XML

    <?xml version=”1.0″ encoding=”utf-8″?>
    <bundle>
    <domain name=”maxstore”>
    <project>
    <!– As above –>
    </project>
    </domain>
    <domain name=”maxstore-child”>
    <project name=”” slug=””>
    <source>
    <directory>wp-content/themes/maxstore-child/languages</directory>
    <exclude>
    <file>lib/src/admin.php</file>
    </exclude>
    </source>
    <target>
    <directory>lib/i18n</directory>
    </target>
    <template>
    <file>maxstore.pot</file>
    </template>
    </project>
    <project name=”” slug=”admin”>
    <source>
    <directory>wp-content/themes/maxstore-child/languages</directory>
    </source>
    <target>
    <directory>wp-content/themes/maxstore-child/languages</directory>
    </target>
    <template>
    <file>maxstore.pot</file>
    </template>
    </project>
    </domain>
    </bundle>

    The loco page say ” unconfigure bundle” for my maxstore-child bundle. I want to save my .po and .mo in my maxstore-child/languages. I dont know what to do? I am mix up.. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Several things are wrong here.

    1. Don’t enter wp-content into any fields. All file paths are relative. This is documented here: https://localise.biz/wordpress/plugin/manual/bundle-config#paths

    2. Don’t store parent and child themes in the same configuration. They are separate bundles.

    3. You seem to have specified two projects using the same template file.

    There is no need to use a loco.xml file if you’re not distributing your theme. I suggest you configure your child theme using the Advanced config tab instead.

    Thread Starter Jennifer

    (@jenniferg648)

    OK so i delete what i add added in loco.xml and dont touch it. The files was already there.

    1) OK thanks

    2) I am not sure to understand you. In my database they are two separated themes “Maxstore” and “Maxstore-child” in wp-content/themes. In the plugin loco they are two separated bundles with each their “thème name”. I Just links both on the loco.xml to try to open only the link of the bundle “maxstrore-child”. Because i didnt know how to make loco open the good bundle.

    3)You are talking on the loco.xml? So if i delete what i added on loco.XML how do i set the project “maxstore-child” to the good template file?

    4)The advanced configuration in loco plugin? I dont know how it work. Do You have doccumentation on this field? What I have to enter?

    I am really lost…

    • This reply was modified 7 years, 11 months ago by Jennifer.
    Thread Starter Jennifer

    (@jenniferg648)

    I am french and not to good in english.. so its even harder to understand.

    It say “This bundle isnt set up for translation in a way we understand. It needs configuring before you can do any translations.”

    And it show “Advanced config””import config fromage xml””check config repository””get help with this”

    I dont know What to enter in “advance config”.You say to not touch xml so I ski it. If I check config repository with “maxstore” or “maxstore-child” it say ; “Sorry, we dont know a bundle by this name”…

    • This reply was modified 7 years, 11 months ago by Jennifer.
    Plugin Author Tim W

    (@timwhitlock)

    The advanced configuration in loco plugin? I dont know how it work. Do You have doccumentation on this field? What I have to enter?

    Documentation for the fields in the Advanced Config tab are at the link I provided earlier. https://localise.biz/wordpress/plugin/manual/bundle-config

    If you authored the child theme yourself, you should probably check the advice for authors too: https://localise.biz/wordpress/plugin/authors

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mix up with child-theme’ is closed to new replies.