Plugin translations and Poedit updates

First of all.. what is the difference between the `plugins` folder and the `zp-core/zp-extensions` folder?
Is the `plugin` folder some left over from previous versions maybe, kept for compatibility?

Than there is something I don't understand.. I did some translations with `gettext_th()` like explained in the translating tutorial and all works fine. I can set the path in Poedit > catalog > settings > to parse the custom function (keyword).
I can't get doing the plugin translations however. Poedit does not allow me to point to the plugin file, only a folder.
The tutorial says:
If your plugin consists of just one single file <plugin name>.php, you have to create an additional folder of the same name next to the plugin file.
Where? In `plugins` like the setup example in the tutorial or in `zp-core/zp-extensions`?

In `zp-core/zp-extensions` I can not put my <plugin name>.php in a folder, so how can I point Poedit to this file?

Comments

  • At least some of these posts were held by the spam monitoring software. Why that would be so I do not know.

    But to answer your question:

    zp-extensions is where the extensions we the devlopers create and distribute reside. Only those scripts that come with the install belong here.

    plugins is where User and third-party plugins go.

    I have to leave the translations questions to acrylian.

    [edit] I accidentally deleted too many of the posts in the other thread.
  • acrylian Administrator, Developer
    Lets say your plugin is named xy. If you want to create a plugin translation you have to do:
    1. put your plugin xy.php into a random folder on your computer so you don't catch translations from elsewhere.
    2. Create a folder xy to hold the translation files as described on the tutorial.
    3. Now point Poedit to that random folder to translate your plugin.
    I am on mac and I had to create a separate non workin install of Zenphoto within the system's applications folder as Poedit for me at leasat only accepts direct paths on its same or below level. So pointing to another directory or harddisk (where my localhost stuff resides) does not work.

    For gettext and the translation it does not matter if you translate in the actual install space as the functions look for the files in the subfolder.
  • Ok, I'll try that. Thanks guys!
Sign In or Register to comment.