mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Adding language support - currently only English and German
system/htmly.php - Loads language files from folder lang/ - Sets language settings for date and time format system/includes/dispatch.php - function i18n() returns translated strings
This commit is contained in:
parent
5423d65cdc
commit
4fde479aba
41 changed files with 352 additions and 147 deletions
|
|
@ -21,10 +21,10 @@ if (isset($destination)) {
|
|||
$back = site_url();
|
||||
}
|
||||
?>
|
||||
<p>Are you sure want to delete <strong><?php echo $p->title; ?></strong>?</p>
|
||||
<p><?php echo sprintf(i18n('Are_you_sure_you_want_to_delete_'), $p->title);?></p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="file" value="<?php echo $p->file ?>"/><br>
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
|
||||
<input type="submit" name="submit" value="Delete"/>
|
||||
<span><a href="<?php echo $back ?>">Cancel</a></span>
|
||||
<input type="submit" name="submit" value="<?php echo i18n('Delete');?>"/>
|
||||
<span><a href="<?php echo $back . '">' . i18n('Cancel');?></a></span>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue