Project

General

Profile

« Previous | Next » 

Revision bab74b37

Added by Rafael Lucas almost 15 years ago

Implement gettext() calls on upload_progress.php

View differences:

usr/local/www/upload_progress.php
41 41
// sanitize the ID value
42 42
$id = $_SESSION['uploadid'];
43 43
if (!$id) {
44
	echo "Sorry, we could not find an uploadid code.";
44
	echo gettext("Sorry, we could not find an uploadid code.");
45 45
	exit;
46 46
}
47 47

  
......
54 54
	<html>
55 55
		<meta http-equiv="Refresh" CONTENT="1; url=upload_progress.php?uploadid={$id}">
56 56
		<body>
57
			Could not locate progress {$id}.  Trying again...
57
			<?php printf(gettext("Could not locate progress %s.  Trying again..."),$id);?>
58 58
		</body>
59 59
	</html>
60 60
EOF;
......
69 69
			&nbsp;<p>
70 70
			<center>
71 71
				<b>
72
					UPLOAD completed!
72
					<?=gettext("UPLOAD completed!");?>
73 73
				</b>
74 74
			</center>
75 75
		</body>
......
83 83
<html>
84 84
<head>
85 85
	<meta http-equiv="Refresh" content="1; url=<?=$url?>">
86
	<title>Uploading Files... Please wait ...</title>
86
	<title><?=gettext("Uploading Files... Please wait ...");?></title>
87 87
	<style type='text/css'>
88 88
		td {font-size: 10pt }
89 89
	</style>
......
92 92
	<table height="100%" width="100%" cellPadding="4" cellSpacing="4" style="border:1px solid #990000;">
93 93
	<tr>
94 94
		<td>
95
			<font face="arial"><b><center>Uploading file...</b></center>
95
			<font face="arial"><b><center><?=gettext("Uploading file...");?></b></center>
96 96
			<br>
97 97
			<table width="100%" height="15" colspacing="0" cellpadding="0" cellspacing="0" border="0" align="top" nowrap>
98 98
			<tr>
......
120 120
				<td align="right">
121 121
					<font face="arial">
122 122
					<b>
123
					Uploaded:
123
					<?=gettext("Uploaded:");?>
124 124
				</td>
125 125
				<td>
126 126
					<font face="arial">
......
130 130
				<td align="right">
131 131
					<font face="arial">
132 132
					<b>
133
					File Size:
133
					<?=gettext("File Size:");?>
134 134
				</td>
135 135
				<td>
136 136
					<font face="arial">
......
142 142
   				<td align="right">
143 143
					<font face="arial">
144 144
					<b>
145
					Completed:
145
					<?=gettext("Completed:");?>
146 146
				</td>
147 147
				<td>
148 148
					<font face="arial">
......
152 152
   				<td align="right">
153 153
					<font face="arial">
154 154
					<b>
155
					Estimated:
155
					<?=gettext("Estimated:");?>
156 156
				</td>
157 157
				<td>
158 158
					<font face="arial">

Also available in: Unified diff