Skip to content

Commit

Permalink
Refs #3456, if geoip updater has not been run, display inline help sa…
Browse files Browse the repository at this point in the history
…ying so in geoip updater setup.
  • Loading branch information
diosmosis committed Mar 7, 2013
1 parent 19bc4d1 commit 34d65f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions lang/en.php
Expand Up @@ -1749,6 +1749,7 @@
'UserCountry_DownloadNewDatabasesEvery' => 'Update databases every',
'UserCountry_GeoLiteCityLink' => 'If you\'re using the GeoLite City database, use this link: %1$s%2$s%3$s.',
'UserCountry_UpdaterWasLastRun' => 'The updater was last run on %s.',
'UserCountry_UpdaterHasNotBeenRun' => 'The updater has never been run.',
'UserSettings_VisitorSettings' => 'Visitor Settings',
'UserSettings_BrowserFamilies' => 'Browser families',
'UserSettings_Browsers' => 'Browsers',
Expand Down
14 changes: 8 additions & 6 deletions plugins/UserCountry/templates/updaterSetup.tpl
Expand Up @@ -39,12 +39,14 @@
<label for="geoip-update-period-week">{'CoreHome_PeriodWeek'|translate}</label>
</td>
<td width="164">
{if !empty($lastTimeUpdaterRun)}
{capture assign=lastTimeRunNote}
{'UserCountry_UpdaterWasLastRun'|translate:$lastTimeUpdaterRun}
{/capture}
{$lastTimeRunNote|inlineHelp}
{/if}
{capture assign=lastTimeRunNote}
{if !empty($lastTimeUpdaterRun)}
{'UserCountry_UpdaterWasLastRun'|translate:$lastTimeUpdaterRun}
{else}
{'UserCountry_UpdaterHasNotBeenRun'|translate}
{/if}
{/capture}
{$lastTimeRunNote|inlineHelp}
</td>
</tr>
</table>
Expand Down

0 comments on commit 34d65f2

Please sign in to comment.