Search code examples
macospathdirectorypoedit

POEDIT : Impossible to set up the right path


I run under Max OSX.

I've installed Poedit in /Applications.

The website I have to translate is located in /Dropbox/Sites/mywebsite.

In Poedit preferences I've got to set up the base path and the path of the website. I tried many combinations and each time Poedit tells me something like "no code has been found"...

Do you know how to set up the right path ?


Solution

  • For the benefit of others that may stumble upon this question, the correct solution is to set it up as follows:

    1. The "base path" should be a path relative to the PO file location, e.g. ".." or ".". If you must, and don't care about portability to other computers, use an absolute path there, but not elsewhere.

    2. The other paths in PO file properties, must be relative to the base path and should be under the base path in the tree (i.e. the base path should be the "root").

    For example, you could save PO files under languages/ and have basepath=".." and "src" and "includes" paths.

    EDIT: In modern versions of Poedit (1.8 and up), you don’t have to worry about this. Just drag the paths you want to the source paths window and Poedit will generate correct settings automatically.