Skip to content

Commit

Permalink
Add language to caching in ACP
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcgirr83 committed Jul 6, 2020
1 parent bdc078b commit 45f72e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adm/style/nationalflags_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>{{ lang('ACP_FLAG_SETTINGS') }}</h1>
</dl>
<dl>
<dt><label id="flags_cachetime" for="flags_cachetime">{{ lang('FLAGS_CACHETIME') }}</label><br>{{ lang('FLAGS_CACHETIME_EXPLAIN') }}</dt>
<dd><input type="number" id="flags_cachetime" name="flags_cachetime" min="30" max="86400" value="{{ FLAGS_CACHETIME }}"> {{ lang('FLAGS_CACHETIME_IN_SECS') }}</dd>
<dd><input type="number" id="flags_cachetime" name="flags_cachetime" min="300" max="86400" value="{{ FLAGS_CACHETIME }}"> {{ lang('FLAGS_CACHETIME_IN_SECS') }}</dd>
</dl>
<dl>
<dt><label for="flags_required">{{ lang('FLAGS_REQUIRED') }}{{ lang('COLON') }}</label><br>{{ lang('FLAGS_REQUIRED_EXPLAIN') }}</dt>
Expand Down
2 changes: 1 addition & 1 deletion language/en/nationalflags_acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
'FLAG_IMAGE_WRONG_SIZE' => 'The flag must be exactly %3$s wide and %4$s high. The submitted image is %5$s wide and %6$s high.',
'FLAGS_REQUIRE_540' => 'This extension requires at least PHP version 5.4.0 and phpBB version 3.1.4-RC1. Please update your PHP version and/or your phpBB version in order to use the extension.',
'FLAGS_CACHETIME' => 'Flags cache time',
'FLAGS_CACHETIME_EXPLAIN' => 'The amount of time before the cache for the flags for users regenerates<br>Default setting is 86400 which is one day (60 seconds * 60 minutes * 24 hours)',
'FLAGS_CACHETIME_EXPLAIN' => 'The amount of time before the cache for the flags for users regenerates. Setting is based on hours * minutes * seconds.<br>Minimum allowed is <b>300</b> seconds (5 minutes, 1 hour * 5 minutes * 60 seonds)<br>Maximum allowed is <b>86400</b> seconds (24 hours, 24 hours * 60 minutes * 60 seconds)',
'FLAGS_CACHETIME_IN_SECS' => 'in seconds',
'TOO_SMALL_FLAGS_CACHETIME' => 'The number chosen for the cache time is too small',
'TOO_LARGE_FLAGS_CACHETIME' => 'The number chosen for the cache time is too large',
Expand Down

0 comments on commit 45f72e9

Please sign in to comment.