• Hi!
    sorry about my english.
    when i want to translate a plugin (mobil menu is the name) i go to loco translate/plugin, i choose mobil menu, i get this message:

    “Additional files found”
    “This package is not completely configured, so we do not know what the following files are for. Click on the installation tab to end the package session”

    i go to new language, spanish, start, and this is all:
    http://es.tinypic.com/r/10ciubl/9

    what can i do? beacause i can not translate this plugin like anothers

    Thanks!

    The page I need help with: [log in to see the link]

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

    (@timwhitlock)

    Your immediate problem is that the plugin uses the text domain mob-menu-lang but does not declare this anywhere. That’s easily fixed by entering the custom text domain in the Advanced tab. See configuration section of the manual.

    This allows me to create a template (POT) file and I get 148 strings.

    However, there are further problems. The plugin doesn’t actually load this text domain at any point and WordPress won’t do it automatically. That means you’ll never actually see any translations of these strings. This should be reported as a bug to the author.

    Regarding the “Additional files found”: This plugin uses two frameworks (Freemius and Titan). Loco Translate can support multiple text domains, but they must be configured (see config below) These appear largely translatable once configured, but the POT files aren’t 100% in sync with the code, so I anticipate further issues if you need to translate these frameworks in full.

    Plugin Author Tim W

    (@timwhitlock)

    The following can be pasted into Loco Translate in the Setup tab >> “Import config from XML”

    <?xml version="1.0" encoding="utf-8"?>
    <bundle name="Mobile Menu">
      <domain name="mob-menu-lang">
        <project name="Mobile Menu" slug="mob-menu-lang">
          <source>
            <directory>includes</directory>
            <file>mobmenu.php</file>
            <exclude>
              <directory>includes/js</directory>
              <directory>includes/css</directory>
            </exclude>
          </source>
          <target>
            <directory>.</directory>
          </target>
          <template>
            <file base="LOCO_LANG_DIR">plugins/mob-menu-lang.pot</file>
          </template>
        </project>
      </domain>
      <domain name="freemius">
        <project name="Freemius" slug="freemius">
          <source>
            <directory>freemius</directory>
            <exclude>
              <directory>freemius/languages</directory>
            </exclude>
          </source>
          <target>
            <directory>freemius/languages</directory>
          </target>
          <template locked="true">
            <file>freemius/languages/freemius.pot</file>
          </template>
        </project>
      </domain>
      <domain name="titan-framework">
        <project name="Titan Framework" slug="titan-framework">
          <source>
            <directory>vendor/titan-framework</directory>
            <exclude>
              <directory>vendor/titan-framework/js</directory>
              <directory>vendor/titan-framework/css</directory>
              <directory>vendor/titan-framework/languages</directory>
            </exclude>
          </source>
          <target>
            <directory>vendor/titan-framework/languages</directory>
          </target>
          <template locked="true">
            <file>vendor/titan-framework/languages/titan-framework.pot</file>
          </template>
        </project>
      </domain>
    </bundle>
    
    Thread Starter matijdk

    (@matijdk)

    Hi!

    thank you so much!

    i going to read all, and talk to the author, because i just want to translate the plugin as a favor.

    i am going to send this post to him.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘issue with a plugin’ is closed to new replies.