From 5d19b212985f63408b536600196b3def0b77cc63 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Mon, 9 Feb 2015 11:54:50 +0100 Subject: [PATCH] fix translation of poke activity body --- include/conversation.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index c97eb6e4af..20b54728c9 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -203,12 +203,11 @@ function localize_item(&$item){ // we can't have a translation string with three positions but no distinguishable text // So here is the translate string. - $txt = t('%1$s poked %2$s'); - + // now translate the verb - - $txt = str_replace( t('poked'), t($verb), $txt); + $poked_t = trim(sprintf($txt, "","")); + $txt = str_replace( $poked_t, t($verb), $txt); // then do the sprintf on the translation string -- 2.39.5