Skip to content

Instantly share code, notes, and snippets.

@matlam
matlam / i18n_search_placeholder.patch
Created June 12, 2016 21:29
translate search placeholder
diff --git a/template/default/index_template.inc.php b/template/default/index_template.inc.php
index 65465ff..c2b5673 100644
--- a/template/default/index_template.inc.php
+++ b/template/default/index_template.inc.php
@@ -90,7 +90,7 @@ include "partials/nav.php";
?>
<h1 class="s-main-title animated fadeInUp delay1"><?php echo $page_title ?></h1>
<form action="index.php" method="get" autocomplete="off">
- <input type="text" id="keyword" class="s-search animated fadeInUp delay4" name="keywords" value="" lang="<?php echo $sysconf['default_lang']; ?>" role="search">
+ <input type="text" id="keyword" class="s-search animated fadeInUp delay4" name="keywords" value="" lang="<?php echo $sysconf['default_lang']; ?>" role="search" placeholder="<?php echo __('e.g. Library and Information'); ?>">