문제 개요
번역된 페이지에서 Joinchat 6.x의 Joinchat Button 블록을 사용하면 버튼 텍스트는 번역되지만, 채팅은 원본 언어의 메시지로 열립니다.
해당 블록은 WPML이 번역을 위해 전송하지 않는 블록 설정에 메시지를 저장합니다.
임시 해결 방법
WPML에 Joinchat 설정을 번역하는 방법을 알려주세요.
- WPML설정으로 이동하여 사용자 정의 XML 구성 탭을 여세요.
- 이 코드를 추가하고 저장하세요.
<wpml-config> <custom-fields> <custom-field action="translate">_joinchat</custom-field> </custom-fields> <custom-fields-texts> <key name="_joinchat"> <key name="message_text" /> <key name="message_send" /> </key> </custom-fields-texts> <gutenberg-blocks> <gutenberg-block type="joinchat/button" translate="1"> <key name="message" /> </gutenberg-block> </gutenberg-blocks> </wpml-config> - Joinchat Button 블록이 있는 각 페이지의 번역을 업데이트하고, 버튼의 메시지를 번역하세요.
이 파일은 두 가지 Joinchat 문제를 모두 다룹니다. 번역 에디터에는 페이지의 전화번호와 “보기” 설정도 표시됩니다. 이를 그대로 유지하거나 해당 언어에 맞게 변경하세요.