By gökhan on Thursday, 17 April 2014
Posted in General Issues
Replies 6
Likes 0
Views 502
Votes 0
Hi Guys,

There is a problem with these;

APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_SINGULAR="%1$s likes {b}%2$s's{/b} cover photo"
APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_PLURAL="%1$s like {b}%2$s's{/b} cover photo"

A likes B's cover photo (True)

But it works wrongway in notification : B (%2$s) likes .... photos, (%1$s) doesnt work also

Please check yours

note: My strings

APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_SINGULAR="%1$s, %2$s adlı kullanıcının kapak fotoğrafını beğendi"
APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_PLURAL="%1$s, %2$s adlı kullanıcının kapak fotoğrafını beğendi"
And update for you, i got this error these days

Is this telated to my language problems or above problem?


Warning: sprintf() [function.sprintf]: Too few arguments in /home/network/public_html/libraries/joomla/language/text.php on line 280




Related codes in joomla text.php




			if (array_key_exists('script', $args[$count - 1]) && $args[$count - 1]['script'])
{
self::$strings[$string] = call_user_func_array('sprintf', $args);

return $string;
}
}
else
{
$args[0] = $lang->_($string);
}

$args[0] = preg_replace('/\[\[%([0-9]+):[^\]]*\]\]/', '%\1$s', $args[0]);

return call_user_func_array('sprintf', $args);
}

return '';
}
·
Thursday, 17 April 2014 08:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Gokhan,

I am sorry for the delay of this reply.


APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_SINGULAR="%1$s likes {b}%2$s's{/b} cover photo"
APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_PLURAL="%1$s like {b}%2$s's{/b} cover photo"


Do you mean the above string not translated or? I tested on my local and it seems working correctly. Please see http://screencast.com/t/mbRgqdzrXrV

As for the JText::sprintf() issue, I cant replicate this issue from my end too. screencast.com/t/LrCIpC0ty
Is this issue happen only when you are in 'view all notifications' page?

Please advise.
Sam
·
Thursday, 17 April 2014 11:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

No there is n problem with translation, They works in wrong way, in notification system doesnt read %1$s (1.actor) but reads 2.actor %2$s, and it uses 2.actor instead of 1.actor,

As for the JText::sprintf() issue, i cant see it for all users, just some for some users, you can use my web site for test, i added a 3. demo user called demo14 with the same password , instal a cover photo for one of them and then try to like with other 2 users

"'view all notifications' page? " yes
·
Thursday, 17 April 2014 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am sorry but I don't really understand the issue here. Please elaborate more on this please. Also, the username / password that you provided for akdag is not working.
·
Friday, 18 April 2014 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Guys, These strings issues was resolved with 1.2.8


APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_SINGULAR="%1$s likes {b}%2$s's{/b} cover photo"
APP_USER_PHOTOS_NOTIFICATIONS_LIKES_USERS_PROFILE_COVER_PLURAL="%1$s like {b}%2$s's{/b} cover photo"
·
Friday, 18 April 2014 05:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Gokhan,

Thanks for the heads up and glad to hear your issues now resolved
Have a nice day
Sam
·
Friday, 18 April 2014 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post