rhbz1174516 - enable more flexible file mappings rules in podir project #40
Conversation
huangp
commented
Dec 16, 2014
- when push, podir project can no longer rely on translation files having locale as a directory
|
Are there any other strategies that we might need to modify for the same reason? |
|
Only Gettext may still have this problem. But we need to know what's the role of project type. e.g. gettext project and podir, the difference between these two are really the translation file convention. Now that we allow arbitrary file mapping rules, which means, these two project type can be combined into one. Podir: convention is to have local as directory. i.e. source dir "pot", file about-fedora.pot, trans-dir ".", translation will be put as ./de/about-fedora.po The man page l10n project is NOT a typical podir project nor a gettext project. It's more like a group of podir projects together. Unfortunately file type project don't support pushing pot using client yet otherwise it makes more sense to make project type 'file'. Gettext project still assume locale as file name. I think gettext is more strict on directory structure. This PR has loosen up Podir's expectation. It should be enough to cover the odd cases like this. All other project types do not seem to have this problem. ----- Original Message -----
|
5d00931
to
50a4028
Compare
|
I was wrong about gettext project. I should also change it so that push and pull are in sync. |
50a4028
to
3d5605b
Compare
…ettext project - when push, podir project will log warning on locales don't have any translation file but won't rely on directory convention - when push, gettext project will log warning on po file missing locale but won't rely on file name convention
3d5605b
to
20970d2
Compare
|
Ready for review again |
|
👍 Reviewed previous commits. |
192a71b
to
1ef4bdb
Compare
…(i.e. auto) - if after the stripping there is no entries left, we can skip the REST call for that translation file
1ef4bdb
to
2ba3685
Compare
rhbz1174516 - enable more flexible file mappings rules in podir project