Little bug on language
-
Hello,
First, sorry for my English.
I found a problem and the solution on the plugin.On the profile page, my English users didn’t see the lists name in English, but in French (only the lists name).
It’s because the $language var is crushed on the function :
profile/profile.php
function get_profile_form($user)
first line : $language = $this->get_user_language($user);
and after, in this conditionnal block :
if ($this->is_multilanguage())
We can found : foreach ($languages as $key => $language)=> the $language var is crushed here.
I just change :
foreach ($languages as $key => $language) { $buffer .= '<option value="' . $key . '"' . ( $user->language == $key ? ' selected' : '' ) . '>' . esc_html($language) . '</option>'; }to
foreach ($languages as $key => $language2) { $buffer .= '<option value="' . $key . '"' . ( $user->language == $key ? ' selected' : '' ) . '>' . esc_html($language2) . '</option>'; }And it’s ok.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Little bug on language’ is closed to new replies.