From e040b60f67c4e499539e787ef3deb401e1cee160 Mon Sep 17 00:00:00 2001
From: rabuzarus <>
Date: Sun, 24 May 2015 20:46:40 +0200
Subject: [PATCH 1/3] make the heading of the search result translatable
---
mod/search.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mod/search.php b/mod/search.php
index 67702ac09..d1bd5d631 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -177,9 +177,9 @@ function search_content(&$a) {
if($tag)
- $o .= '
Items tagged with: ' . $search . '
';
+ $o .= '' . t('Items tagged with: ') . $search . '
';
else
- $o .= 'Search results for: ' . $search . '
';
+ $o .= '' . t('Search results for: ') . $search . '
';
logger("Start Conversation for '".$search."'", LOGGER_DEBUG);
$o .= conversation($a,$r,'search',false);
From 3ad674fa67b0899dee72e61c1c156e8cdec885f5 Mon Sep 17 00:00:00 2001
From: rabuzarus <>
Date: Mon, 25 May 2015 16:49:57 +0200
Subject: [PATCH 2/3] better space handling
---
mod/search.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mod/search.php b/mod/search.php
index d1bd5d631..f759a7f99 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -177,9 +177,9 @@ function search_content(&$a) {
if($tag)
- $o .= '' . t('Items tagged with: ') . $search . '
';
+ $o .= '' . t('Items tagged with:') . ' ' . $search . '
';
else
- $o .= '' . t('Search results for: ') . $search . '
';
+ $o .= '' . t('Search results for:') . ' ' . $search . '
';
logger("Start Conversation for '".$search."'", LOGGER_DEBUG);
$o .= conversation($a,$r,'search',false);
From 46338f5e8752f2ec1fbc0f744e3c76c1b6ef27c5 Mon Sep 17 00:00:00 2001
From: rabuzarus <>
Date: Tue, 26 May 2015 14:49:53 +0200
Subject: [PATCH 3/3] using sprintf
---
mod/search.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mod/search.php b/mod/search.php
index f759a7f99..5fc961785 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -177,9 +177,9 @@ function search_content(&$a) {
if($tag)
- $o .= '' . t('Items tagged with:') . ' ' . $search . '
';
+ $o .= '' . sprintf( t('Items tagged with: %s'), $search) . '
';
else
- $o .= '' . t('Search results for:') . ' ' . $search . '
';
+ $o .= '' . sprintf( t('Search results for: %s'), $search) . '
';
logger("Start Conversation for '".$search."'", LOGGER_DEBUG);
$o .= conversation($a,$r,'search',false);