Skip to content

Commit ffbe544

Browse files
committed
Log in translate
1 parent f9ebedd commit ffbe544

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

template/login.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ul>
55
<li><input type="text" name="username" value="<?= htmlspecialchars($this->username); ?>" placeholder="Username"></li>
66
<li><input type="password" name="password" placeholder="Password"></li>
7-
<li><input type="submit" value="Let me in" disabled></li>
7+
<li><input type="submit" value="<?= $this->translator->translate('project.log_in'); ?>" disabled></li>
88
</ul>
99
</form>
1010
</div>

texts/en.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
$texts = [
44
'project.link' => 'Project on GitHub',
5+
'project.log_in' => 'Let me in!',
56

67
'menu.status' => 'Status',
78
'menu.config' => 'Configuration',
@@ -120,5 +121,5 @@
120121
'graph.hits.title' => 'Hits',
121122
'graph.hits.hits' => 'hits',
122123
'graph.hits.misses' => 'misses',
123-
'graph.hits.blacklist' => 'blacklist',
124+
'graph.hits.blacklist' => 'blacklist'
124125
];

texts/fr.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
$texts = [
44
'project.link' => 'Projet sur GitHub',
5+
'project.log_in' => 'Laissez moi entrer !',
56

67
'menu.status' => 'Statut',
78
'menu.config' => 'Configuration',
@@ -120,5 +121,5 @@
120121
'graph.hits.title' => 'Accès',
121122
'graph.hits.hits' => 'accès',
122123
'graph.hits.misses' => 'ratés',
123-
'graph.hits.blacklist' => 'liste noire',
124+
'graph.hits.blacklist' => 'liste noire'
124125
];

0 commit comments

Comments
 (0)