Project

General

Profile

« Previous | Next » 

Revision ed462aae

Added by Carlos Eduardo Ramos almost 15 years ago

Fix gettext on voucher.inc

View differences:

etc/inc/voucher.inc
181 181
    if (isset($config['voucher']['enable'])) {
182 182

  
183 183
        if ($g['booting']) {
184
            echo "Enabling voucher support... ";
184
            echo gettext("Enabling voucher support... ");
185 185
        }
186 186

  
187 187
        // start cron if we're asked to save runtime DB periodically
......
245 245
            }
246 246
		
247 247
	    unlock($voucherlck);
248
            echo "done\n";
248
            echo gettext("done") . "\n";
249 249
        }
250 250
    }
251 251
    return 0;
......
263 263
        fwrite($fd, $vdb . "\n");
264 264
        fclose($fd);
265 265
    } else {
266
        voucher_log(LOG_ERR, "cant write {$g['vardb_path']}/voucher_used_$roll.db");
266
        voucher_log(LOG_ERR, sprintf(gettext("cant write %s/voucher_used_%s.db"), $g['vardb_path'], $roll));
267 267
    }
268 268
}
269 269

  
......
342 342
            $vdb = trim(fgets($fd));
343 343
            fclose($fd);
344 344
        } else {
345
            voucher_log(LOG_ERR, "cant read {$g['vardb_path']}/voucher_used_$roll.db");
345
            voucher_log(LOG_ERR, sprintf(gettext("cant read %s/voucher_used_%s.db"), $g['vardb_path'], $roll));
346 346
        }
347 347
    }
348 348
    return base64_decode($vdb);
......
361 361
    define_syslog_variables();
362 362
    $message = trim($message);
363 363
    openlog("logportalauth", LOG_PID, LOG_LOCAL4);
364
    syslog($priority, "Voucher: " . $message);
364
    syslog($priority, gettext("Voucher: ") . $message);
365 365
    closelog();
366 366
}
367 367

  

Also available in: Unified diff