I'm using pootle to allow people to translate the .po files in a PHP Yii project.
Pootle can pull and push translations once a translator has updated the .po file. Separately we have developers working on the site, who may also update the translation files to add more text to be translated.
Yii requires the .po files to be located in:
yii-project/protected/messages/en_gb/messages.po
Pootle requires the directory structure to be:
pootle/yii-project/en_GB/messages.po
In order for pootle to pull & push, the .git directory needs to be in pootle/yii-project/.git.
I have tried using git sparse checkout, but that will pull the files into pootle/yii-project/protected/messages/en_gb/messages.po which unfortunately pootle does not pick up.
I can't do a pull of the repository elsewhere and then softlink, as then pootle will not be able to find the .git directory.
What I would really like to be able to do is a sparse checkout of a directory and map the result to another directory, i.e. checkout:
pootle/yii-project/protected/messages/ -> pootle/yii-project
I don't want to use git-subtree, as I want the files to be able to be updated either by the developers or the translators. I don't want to use submodules, as I don't like the extra pull overhead, and we would like the developers to include all changes to do with a new feature in a single commit (instead of one commit on the main project and one on the submodule).
Any suggestions?