Closed battye closed 5 years ago
I haven't merged this into the PR yet, because I wanted to double check something @Crizz0 - is there a particular reason why we are using the .phar / .bat file approach?
It just seems to be adding an extra layer of complexity I think. I've refactored the script now so that you can just do a git clone
and composer install
, then run:
php translation.php validate fr
And if you don't want to put a 3.2
directory inside root, you can specify it explicitly like:
php translation.php validate fr --package-dir=/path/to/where/is/3.2
So pending your response, I've just kept this as a separate branch at: https://github.com/battye/phpbb-translation-validator/pull/1 but I think it makes more sense to do it this way. I also moved all of the unit tests out of the src directory and put them into the tests directory.
The validator should work on MacOS, Linux and Windows. Maybe that is why the .bat/.phar version was chosen.
Maybe we should create a "develop"-branch in this repo to make PR against "develop", create feature-branch on it and and only merge working develop-branches into "master".
That's a good idea, are you able to create a develop branch on here (I don't have permissions) and I'll create a PR for it?
I think so.
Thanks, I've added a new PR #54
So is the idea that we'll merge that in now and use the develop
branch here for testing?
Don't need this PR anymore. Everything is in https://github.com/phpbb/phpbb-translation-validator/pull/54 now.
EDIT: this PR only exists for reviewing the safe mode code changes by themselves
Usage
To run (using the
ja
language for example):Changes
--safe-mode
Outstanding tasks