]> git.mxchange.org Git - friendica.git/commitdiff
fix translation of poke activity body
authorFabrixxm <fabrix.xm@gmail.com>
Mon, 9 Feb 2015 10:54:50 +0000 (11:54 +0100)
committerFabrixxm <fabrix.xm@gmail.com>
Mon, 9 Feb 2015 10:54:50 +0000 (11:54 +0100)
include/conversation.php

index c97eb6e4af22dfc3061ded1606410abce307ceb6..20b54728c9c5c7509f14cf01e9fe1b56c76b735f 100644 (file)
@@ -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