• Love this plugin.
    My site is bilingual: French/English
    I have created a French translation. The files are located at:
    wp-content/languages/plugins/better-search-fr_FR.mo
    wp-content/languages/plugins/better-search-fr_FR.po

    When I search in French, I get these French strings:
    Résultats 1 – 3 de 7 Page 1 de 3
    Résultats par page: 10 | 20 | 50 | 100
    Pertinence: 100% Posté le: 2016-12-12

    When I search in English, I still get these French strings:
    Résultats 1 – 3 de 7 Page 1 de 3
    Résultats par page: 10 | 20 | 50 | 100
    Pertinence: 100% Posté le: 2016-12-12

    If I remove the French translations from:
    wp-content/languages/plugins/

    Then… Everything shows in English:
    Results 1 – 3 of 7 Page 1 of 3
    Results per-page: 10 | 20 | 50 | 100
    Relevance: 100% Posted on: 2016-12-12

    I use Loco Translate to work with translations.

    Here’s the Debug information Loco Translate gives me after I removed my fr_FR files (to avoid any possible conflict):
    ————————————————————————
    This information is for developers to find problems in the bundle setup.

    “Better Search” 2.1.0 by Ajay D’Souza — Visit official site

    Configuration auto-detected from file headers
    WordPress says primary text domain is “better-search”
    Primary domain path declared by author as “/languages”
    1 domain path[s] configured for “better-search” -> [“languages”]
    No template file configured for “better-search”
    Possible non-standard name for “better-search” template at “languages/better-search-en_US.pot”
    119 strings extracted from source code for “better-search”
    2 unconfigured domain[s] found in source code: “twentyeleven” & “default”
    Current configuration as XML:

    <?xml version=”1.0″ encoding=”utf-8″?>
    <bundle name=”Better Search”>
    <domain name=”better-search”>
    <project name=”Better Search” slug=”better-search”>
    <source>
    <directory>.</directory>
    </source>
    <target>
    <directory>languages</directory>
    </target>
    <template>
    <file>languages/better-search-en_US.pot</file>
    </template>
    </project>
    </domain>
    </bundle>
    ————————————————————————

    Kind Regards,

    • This topic was modified 7 years, 10 months ago by Anticosti. Reason: better formulation
    • This topic was modified 7 years, 10 months ago by Anticosti.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ajay

    (@ajay)

    What is the debug information when you have the French files. Do they always override the English files?
    How are you managing the bilingual install? I think that’s the source of the problem.

    Thread Starter Anticosti

    (@anticosti)

    Hi Ajay,

    01. Regarding the debug info
    Answer: I use Log Viewer (wp-admin/tools.php?page=wp-log-viewer) and it does not output any errors for your plugin. The only debug info I have is the one I posted above:

    Configuration auto-detected from file headers
    WordPress says primary text domain is “better-search”
    Primary domain path declared by author as “/languages”
    1 domain path[s] configured for “better-search” -> [“languages”]
    No template file configured for “better-search”
    Possible non-standard name for “better-search” template at “languages/better-search-en_US.pot”

    02. Do they always override the English files?
    Answer: Yes!

    03. How are you managing the bilingual install?
    Answer: I am managing this translation the same as I do with many other plugins where I don’t have this problem.

    Thanks again for your follow up on this,

    Plugin Author Ajay

    (@ajay)

    I need to do a bit more testing on this, as I’m not sure why this is happening. Does your debug plugin give a different output for this with and without the French language files?


    Configuration auto-detected from file headers
    WordPress says primary text domain is “better-search”
    Primary domain path declared by author as “/languages”
    1 domain path[s] configured for “better-search” -> [“languages”]
    No template file configured for “better-search”
    Possible non-standard name for “better-search” template at “languages/better-search-en_US.pot”

    Thread Starter Anticosti

    (@anticosti)

    Hi Ajay,
    I’ll try to find more debug info when I’m back…
    Thanks again!

    Kind Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My translation fr_FR is overtaking the default en_US’ is closed to new replies.