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
For the easiest results, create a directory called `3.2` or `3.3` 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:
16
+
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:
17
17
18
-
phpbb-translation-validator/3.2/en/
19
-
phpbb-translation-validator/3.2/fr/
20
-
phpbb-translation-validator/3.3/en/
21
-
phpbb-translation-validator/3.3/fr/
18
+
phpbb-translation-validator/4.0/en/
19
+
phpbb-translation-validator/4.0/de/
22
20
phpbb-translation-validator/translation.php
23
21
24
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):
@@ -28,16 +26,16 @@ The simplest way to validate is to then run this command (the final argument is
28
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:
29
27
30
28
php translation.php validate fr
31
-
--package-dir=/path/to/your/3.2
32
-
--phpbb-version=3.2
29
+
--package-dir=/path/to/your/4.0
30
+
--phpbb-version=4.0
33
31
--safe-mode
34
32
--display-notices
35
33
36
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.
37
35
38
36
If you are missing the English language files for the official Viglink extension, they can be easily donwloaded using this command:
Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"name": "phpbb/translation-validator",
3
3
"description": "A language package validator for phpBB language packs. Language packs are required to pass the validator when submitted to the language pack database.",
0 commit comments