Skip to content

Commit

Permalink
Safer translation strings
Browse files Browse the repository at this point in the history
'Reset' text in the core varies in context betwen languages (such as 'Reset to zero' in French language) which wouldn't be appropriate here.
  • Loading branch information
philwareham committed Jul 26, 2017
1 parent 0c86069 commit 0ec6373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions etc_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// 1 = Plugin help is in raw HTML. Not recommended.
# $plugin['allow_html_help'] = 1;

$plugin['version'] = '0.2.6';
$plugin['version'] = '0.2.7';
$plugin['author'] = 'Oleg Loukianov';
$plugin['author_uri'] = 'www.iut-fbleau.fr/projet/etc/';
$plugin['description'] = 'Events-driven cache';
Expand Down Expand Up @@ -56,10 +56,12 @@

$plugin['textpack'] = <<<EOT
#@etc_cache
etc_cache_actions => Actions
etc_cache_cached_at => Cached at
etc_cache_filter => Filter
etc_cache_heading => Cached items
etc_cache_no_cached_items => No cached items recorded.
etc_cache_reset => Reset
etc_cache_tab => Cache
EOT;

Expand Down Expand Up @@ -273,9 +275,9 @@ public function tab($event, $step) {
n.'<th>ID</th>'.
n.'<th>'.gTxt('etc_cache_cached_at').'</th>'.
n.'<th>URL</th>'.
n.'<th>'.gTxt('reset').'</th>'.
n.'<th>'.gTxt('etc_cache_reset').'</th>'.
n.'<th>'.gTxt('etc_cache_filter').'</th>'.
n.'<th>Actions</th>'
n.'<th>'.gTxt('etc_cache_actions').'</th>'
).
n.tag_end('thead').
n.tag_start('tbody');
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "etc_cache",
"description": "Events-driven cache solution for Textpattern CMS.",
"version": "0.2.6",
"version": "0.2.7",
"type": 5,
"author": "Oleg Loukianov",
"author_uri": "http://www.iut-fbleau.fr/projet/etc/",
Expand Down

0 comments on commit 0ec6373

Please sign in to comment.