Update french translation and typo fix

This commit is contained in:
Frédéric Guillot 2013-08-29 19:54:37 -04:00
parent b6adfb7168
commit 509d36c4b8
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<?php <?php
return array( return array(
'No message' => 'Aucun message',
'flush messages' => 'supprimer les messages', 'flush messages' => 'supprimer les messages',
'API endpoint:' => 'URL de l\'API : ', 'API endpoint:' => 'URL de l\'API : ',
'API username:' => 'Identifiant pour l\'API : ', 'API username:' => 'Identifiant pour l\'API : ',

View File

@ -7,7 +7,7 @@
</div> </div>
<?php if (empty($content)): ?> <?php if (empty($content)): ?>
<p class="alert alert-info"><?= t('No messages') ?></p> <p class="alert alert-info"><?= t('No message') ?></p>
<?php else: ?> <?php else: ?>
<pre id="console"><code><?= Helper\escape($content) ?></code></pre> <pre id="console"><code><?= Helper\escape($content) ?></code></pre>
<?php endif ?> <?php endif ?>

View File

@ -56,6 +56,7 @@ abstract class Client
if ($response['status'] == 304) { if ($response['status'] == 304) {
$this->is_modified = false; $this->is_modified = false;
Logging::log(\get_called_class().' Resource not modified');
} }
else { else {
$this->etag = isset($response['headers']['ETag']) ? $response['headers']['ETag'] : ''; $this->etag = isset($response['headers']['ETag']) ? $response['headers']['ETag'] : '';
@ -74,7 +75,6 @@ abstract class Client
foreach ($lines as $line) { foreach ($lines as $line) {
if (strpos($line, 'HTTP') === 0/* && strpos($line, '301') === false && strpos($line, '302') === false*/) { if (strpos($line, 'HTTP') === 0/* && strpos($line, '301') === false && strpos($line, '302') === false*/) {
$status = (int) substr($line, 9, 3); $status = (int) substr($line, 9, 3);
} }
else if (strpos($line, ':') !== false) { else if (strpos($line, ':') !== false) {
@ -87,7 +87,7 @@ abstract class Client
Logging::log(\get_called_class().' HTTP status code: '.$status); Logging::log(\get_called_class().' HTTP status code: '.$status);
foreach ($headers as $name => $value) { foreach ($headers as $name => $value) {
Logging::log(\get_called_class().' HTTP headers: '.$name.' => '.$value); Logging::log(\get_called_class().' HTTP header: '.$name.' => '.$value);
} }
return array($status, $headers); return array($status, $headers);