Project

General

Profile

« Previous | Next » 

Revision 930fc5ad

Added by Carlos Eduardo Ramos almost 15 years ago

Implement gettext() calls on meta.inc

View differences:

etc/inc/meta.inc
65 65

  
66 66
	$dir = opendir($path);
67 67
	if (!$dir) {
68
		echo "list_phpfiles: unable to examine path {$path}\n";
68
		printf(gettext("list_phpfiles: unable to examine path %s%s"), $path, "\n");
69 69
		return;
70 70
	}
71 71

  
......
96 96

  
97 97
	$fdata = @file_get_contents($fpath);
98 98
	if (!$fdata) {
99
		echo "unable to read {$fpath}\n";
99
		printf(gettext("unable to read %s%s"), $fpath, "\n");
100 100
		continue;
101 101
	}
102 102

  
......
129 129
		$tagend = substr($fdata, $tagend_off + 4, $tagend_len - 4);
130 130

  
131 131
		if ($tagbeg != $tagend) {
132
			echo "error: tag mismatch ( {$tagbeg} != {$tagend} ) in '$fpath'\n";
132
			printf(gettext("error: tag mismatch ( %s != %s ) in '%s'%s"), $tagbeg, $tagend, $fpath, "\n");
133 133
			break;
134 134
		}
135 135

  
......
140 140
		$mdata = substr($fdata, $mdata_off, $mdata_len);
141 141

  
142 142
		if (!strlen($mdata)) {
143
			echo "warning: tag {$tagbeg} has no data in '$fpath'\n";
143
			printf(gettext("warning: tag %s has no data in '%s'%s"), $tagbeg, $fpath, "\n");
144 144
			break;
145 145
		}
146 146

  
......
160 160

  
161 161
			$valtag = stripos($line, "##|*");
162 162
			if ($valtag === false || $valtag) {
163
				echo "warning: tag {$tagbeg} has malformed data in '$fpath'\n";
163
				printf(gettext("warning: tag %s has malformed data in '%s'%s"), $tagbeg, $fpath, "\n");
164 164
				continue;
165 165
			}
166 166

  
......
182 182
			}
183 183

  
184 184
			if (!isset($vname) || !isset($vdata)) {
185
				echo "warning: tag {$tagbeg} has invalid data in '$fpath'\n";
185
				printf(gettext("warning: tag %s has invalid data in '%s'%s"), $tagbeg, $fpath, "\n");
186 186
				continue;
187 187
			}
188 188

  

Also available in: Unified diff