|
5 | 5 |
|
6 | 6 | /*
|
7 | 7 | +----------------------------------------------------------------------+
|
8 |
| - | PHP Version 5 | |
| 8 | + | Copyright (c) 1997-2023 The PHP Group | |
9 | 9 | +----------------------------------------------------------------------+
|
10 |
| - | Copyright (c) 1997-2011 The PHP Group | |
11 |
| - +----------------------------------------------------------------------+ |
12 |
| - | This source file is subject to version 3.0 of the PHP license, | |
| 10 | + | This source file is subject to version 3.01 of the PHP license, | |
13 | 11 | | that is bundled with this package in the file LICENSE, and is |
|
14 | 12 | | available through the world-wide-web at the following url: |
|
15 |
| - | http://www.php.net/license/3_0.txt. | |
| 13 | + | https://www.php.net/license/3_01.txt. | |
16 | 14 | | If you did not receive a copy of the PHP license and are unable to |
|
17 | 15 | | obtain it through the world-wide-web, please send a note to |
|
18 |
| - | [email protected] so we can mail you a copy immediately. | |
| 16 | + | [email protected], so we can mail you a copy immediately. | |
19 | 17 | +----------------------------------------------------------------------+
|
20 |
| - | Authors : Yannick Torrès <[email protected]> | |
| 18 | + | Authors : Yannick Torres <[email protected]> | |
21 | 19 | +----------------------------------------------------------------------+
|
22 | 20 | */
|
23 | 21 |
|
|
34 | 32 | Usage:
|
35 | 33 | <?php echo $argv[0]; ?> <language-code>
|
36 | 34 |
|
37 |
| - Authors:Yannick Torrès < [email protected]> |
| 35 | + Authors:Yannick Torres < [email protected]> |
38 | 36 |
|
39 | 37 | <?php
|
40 | 38 | exit;
|
@@ -240,7 +238,7 @@ function do_check($en_content, $lang_content) {
|
240 | 238 | if( isset($lang_linkend[$i]) && $en_linkend[$i] != $lang_linkend[$i] && $en_linkend[$i] != 'somethingelse' ) {
|
241 | 239 | $nb_error['link'] ++;
|
242 | 240 | $result_error[] = array(
|
243 |
| - "libel" => "Error in link, attribut : linkend n°$i", |
| 241 | + "libel" => "Error in link, attribut : linkend $i", |
244 | 242 | "value_en" => $en_linkend[$i],
|
245 | 243 | "value_lang" => $lang_linkend[$i],
|
246 | 244 | "type" => "link",
|
@@ -614,7 +612,7 @@ function do_check($en_content, $lang_content) {
|
614 | 612 | }
|
615 | 613 |
|
616 | 614 |
|
617 |
| -// Vérif |
| 615 | +// Verify |
618 | 616 | for( $i=0; $i < count($en_methodsynopsis); $i++) {
|
619 | 617 |
|
620 | 618 | if( isset($en_methodsynopsis[$i]['methodname']['name']) ) {
|
@@ -756,7 +754,7 @@ function do_check($en_content, $lang_content) {
|
756 | 754 |
|
757 | 755 | // END : methodsynopsis
|
758 | 756 |
|
759 |
| -// Check if tere is a space or a point at the end of refpurpose |
| 757 | +// Check if there is a space or a point at the end of refpurpose |
760 | 758 |
|
761 | 759 | preg_match_all("/<refpurpose>.*([^A-Za-z1-9 ])<\/refpurpose>/s", $lang_content, $match2);
|
762 | 760 |
|
@@ -875,7 +873,7 @@ function do_check($en_content, $lang_content) {
|
875 | 873 |
|
876 | 874 | }
|
877 | 875 |
|
878 |
| -// Vérif |
| 876 | +// Verify |
879 | 877 | for( $i=0; $i < count($en_classsynopsis); $i++) {
|
880 | 878 |
|
881 | 879 | if( !isset($lang_classsynopsis[$i]['ooclass']['classname']) ) { $lang_classsynopsis[$i]['ooclass']['classname'] = ''; }
|
@@ -1045,7 +1043,7 @@ function check($lang_file, $en_file) {
|
1045 | 1043 | // Grabs the revision tag and stores credits from the file given
|
1046 | 1044 | function get_tags($file, $val = "en-rev") {
|
1047 | 1045 | // Read the first 500 chars. The comment should be at
|
1048 |
| - // the begining of the file |
| 1046 | + // the beginning of the file |
1049 | 1047 |
|
1050 | 1048 | if( !is_file($file) ) {
|
1051 | 1049 | return false;
|
@@ -1080,13 +1078,13 @@ function get_tags($file, $val = "en-rev") {
|
1080 | 1078 | // A function to check directory status in translated directory
|
1081 | 1079 | // =========================================================================
|
1082 | 1080 |
|
1083 |
| -// Check the status of files in a diretory of phpdoc XML files |
| 1081 | +// Check the status of files in a directory of phpdoc XML files |
1084 | 1082 | // The English directory is passed to this function to check
|
1085 | 1083 | function get_dir_status($dir) {
|
1086 | 1084 |
|
1087 | 1085 | global $LANG;
|
1088 | 1086 |
|
1089 |
| - //echo "Entrée dans le répertoire : ".$dir."\n"; |
| 1087 | + //echo "Enter in directory: ".$dir."\n"; |
1090 | 1088 |
|
1091 | 1089 | $en_dir = str_replace("/$LANG/", "/en/", $dir);
|
1092 | 1090 |
|
|
0 commit comments