此用户没有收藏的主题。
收藏的论坛主题
创建的论坛主题
| 状态 |
主题
|
支持人员 | 参与者 | 帖子 | 最新活动 |
|---|---|---|---|---|---|
|
Setting the time format to German
发起人:sebastianS-152
在:English Support
Problem: add_filter('gettext', 'wpml_date_format_multilingual', 10, 3);<br /><br />function wpml_date_format_multilingual($translated, $original, $domain) {<br /> if ($domain !== 'sitepress' || !is_admin()) {<br /> return $translated;<br /> }<br /> if ($original !== 'g:i a T' && $original !== 'F j, Y') {<br /> return $translated;<br /> }<br /> $current_lang = apply_filters('wpml_current_language', NULL);<br /> if ($original === 'F j, Y') {<br /> switch ($current_lang) {<br /> case 'de':<br /> return 'j. F Y';<br /> case 'cs':<br /> return 'j. F Y';<br /> case 'fr':<br /> return 'j F Y';<br /> case 'es':<br /> return 'j \d\e F \d\e Y';<br /> }<br /> }<br /> if ($original === 'g:i a T') {<br /> switch ($current_lang) {<br /> case 'de':<br /> case 'cs':<br /> case 'fr':<br /> case 'es':<br /> return 'H:i T';<br /> }<br /> }<br /> return $translated;<br />}If this solution does not apply to your case, or if it becomes outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum. |
|
0 | 7 | 3 weeks, 4 days前 | |
|
Updates page in WordPress shows wrong information
发起人:sebastianS-152 在:Chat Support |
|
0 | 4 | 1 months, 1 weeks前 |