Bỏ qua điều hướng

Open

Reported for: BuddyPress Multilingual 1.7.0

Topic Tags: Bug, Compatibility

Overview of the issue

In BuddyBoss platform, you may encounter translation issues with search forms as they are not displaying translated values in profile search pages despite the fields being translated in user profiles.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/common/search/profile-search.php file.
  • Replace:
    									 value="<?php echo $key; ?>"><?php echo $label; ?></option>
    
  • With:
    									 value="<?php echo $key; ?>"><?php
                                           $label = apply_filters( 'wpml_translate_single_string', $label, 'Buddypress Multilingual', 'profile field ' . $f->id . ' - option \'' . str_replace(' ', '-', strtolower($key)) . '\' name' );
    
                                            echo $label;
                                            ?></option>
    

Để lại phản hồi

Vui lòng bám sát chủ đề và tôn trọng người khác. Nếu bạn cần trợ giúp với các vấn đề không liên quan đến bài đăng này, hãy sử dụng Diễn đàn Hỗ trợ của chúng tôi để bắt đầu trò chuyện hoặc gửi yêu cầu hỗ trợ.

Bạn có thể sử dụng các thẻ sau:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>