Apr
18
comment How to translate a string that contains a WordPress sitename
Thanks again @Dan ! Works gret!
Apr
18
accepted How to translate a string that contains a WordPress sitename
Apr
18
comment How to translate a string that contains a WordPress sitename
Thanks, I know. What I want to translate is the following text "on Facebook"
Apr
18
asked How to translate a string that contains a WordPress sitename
Apr
14
awarded Commentator
Apr
14
comment Foreach implode issue
Thanks @darrinb that did the job!
Apr
14
accepted Foreach implode issue
Apr
14
awarded Supporter
Apr
14
asked Foreach implode issue
Dec
8
awarded Popular Question
Jan
23
comment php implode internationalization
although my problem was solved with SDC's solution, I will try your solution anyway. Thanks!
Jan
23
comment php implode internationalization
Thanks again, and yes, I will update the php version. Regards.
Jan
22
accepted php implode internationalization
Jan
18
awarded Commentator
Jan
18
comment php implode internationalization
Indeed I'm running it on PHP Version 5.3.1 and despite a missed Parenthesis on the code it works perfectly! Thanks so much! Here you can find the code chunk that works for me (also added a separator for every item): echo implode(', ', array_map(function($e) {return __($e,'my-text-domain');},$joblanguages)); Thanks so much everyone!
Jan
17
comment php implode internationalization
array(2) { [0]=> string(7) "English" [1]=> string(7) "Chinese" }
Jan
17
comment php implode internationalization
Thanks for the code, but still get a warning message: Warning: explode() expects parameter 2 to be string, array given in /Applications/XAMPP/xamppfiles/htdocs/vemas-2012/wp-content/themes/vemas-2012/co‌​ntent-careers-single.php on line 80 Warning: implode() [function.implode]: Invalid arguments passed in /Applications/XAMPP/xamppfiles/htdocs/vemas-2012/wp-content/themes/vemas-2012/co‌​ntent-careers-single.php on line 80
Jan
17
comment php implode internationalization
@povilasp You are right. But there's a way to show the translated values in a comma separated string?
Jan
17
comment php implode internationalization
@hsz it's returning the original language values, not the ones from the chosen language.
Jan
17
asked php implode internationalization
1 2 3