You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This console application allows you to validate [phpBB](https://www.phpbb.com) language packages.
3
+
With the help of this command line application you are able
4
+
to validate [phpBB](https://www.phpbb.com) language packs.
5
+
This application runs on your local machine and can be integrated
6
+
into a [GitHub](https://www.github.com) repository.
4
7
5
-
## Requirements
8
+
## 📋Requirements
6
9
7
-
This tool requires PHP 8.1 or above.
10
+
This tool requires PHP 8.1 or above. In addition it needs several
11
+
symfony and other packages, which need to be downloaded and installed with [Composer](https://getcomposer.org).
8
12
9
-
### Installation
10
13
11
-
Firstly, download the latest British English (`en`) [language pack from phpBB.com](http://www.phpbb.com/customise/db/translation/british_english/) as this is the default source language. Then clone this repository and download the dependencies:
For the easiest results, create a directory called `4.0` in the root of the Translation Validator. Upload the `en` language page into this directory, along with the languages you wish to test. Which leads e.g. to:
24
+
Create a directory called `4.0` in the root of the Translation Validator. Afterwards download
25
+
the [British English language pack](http://www.phpbb.com/customise/db/translation/british_english/)
26
+
and put its content into ``4.0/en/``. Do the same with the languages you wish to test. Which leads e.g. to:
17
27
18
28
phpbb-translation-validator/4.0/en/
19
29
phpbb-translation-validator/4.0/de/
30
+
phpbb-translation-validator/4.0/fr/
20
31
phpbb-translation-validator/translation.php
21
32
22
-
The simplest way to validate is to then run this command (the final argument is the language you wish to test and that has already been uploaded to the `3.2` directory; eg. `fr` for French):
33
+
## ⚗️ Validate language packs
34
+
35
+
The simplest way to validate this language packages,
36
+
is to open a command line tool in the validator directory.
37
+
Then run this command (the final argument is the language you wish to test and that has already been stored to the `4.0` directory; e.g. `fr` for French):
23
38
24
39
php translation.php validate fr
25
40
26
-
There are more arguments that can be supplied. For example, suppose you wanted to have your `3.2` directory in a different location, you wanted to explicitly specify phpBB version 3.2 (default validation is against 3.3), you wanted to run in safe mode and you wanted to see all notices displayed - you would run this command:
41
+
There are more arguments that can be supplied. For example, suppose you wanted to have your `4.x` directory in a different location, you wanted to explicitly specify phpBB version 4.x (default validation is against 4.0), you wanted to run in safe mode and you wanted to see all notices displayed - you would run this command:
27
42
28
43
php translation.php validate fr
29
44
--package-dir=/path/to/your/4.0
30
45
--phpbb-version=4.0
31
46
--safe-mode
32
47
--display-notices
33
48
34
-
The `--safe-mode` flag indicates that you want to parse files instead of directly including them. This is useful if you want to run validations on a web server.
49
+
The `--safe-mode` flag indicates that you want to parse files instead of directly including them.
50
+
This is useful if you want to run validations on a web server.
35
51
36
-
If you are missing the English language files for the official Viglink extension, they can be easily donwloaded using this command:
52
+
If you are missing the English language files for the official Viglink extension,
If you notice any problems with this application, please raise an issue at https://github.com/phpbb/phpbb-translation-validator/issues.
83
+
If you notice any problems with this application, please raise an issue at the [Github-Repository](https://github.com/phpbb/phpbb-translation-validator/issues).
63
84
64
-
To submit your own code contributions, please fork the project and submit a pull request at https://github.com/phpbb/phpbb-translation-validator/pulls.
85
+
To submit your own code contributions, please fork the project and submit a pull request at [Github-Repository](https://github.com/phpbb/phpbb-translation-validator/pulls).
65
86
66
-
When a new version is released, the version number will be updated in `composer.json` and `translation.php`. A new tag will be created and the package will become available at https://packagist.org/packages/phpbb/translation-validator.
87
+
When a new version is released, the version number will be updated in `composer.json` and `translation.php`. A new tag will be created and the package will become available at [Packagist](https://packagist.org/packages/phpbb/translation-validator).
0 commit comments