跳转至内容 跳转至侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

支持人员时区: America/New_York (GMT-04:00)

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 noanL 1 years, 8 months前 更新。

协助者:: Lauren.

作者 帖子
9 11 月, 2023 于 1:55 下午 #14767699

noanL

How can translate a string using logic functions: if lang is en "subject" will visible and if lang is de "Betreff" will visible for de.

Solutions: WPML does not offer custom code solutions for translation. Instead, you can wrap the string in a gettext call and then scan the plugin for strings and translation via String Translation. https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

If you prefer to use custom code solution, you can find our available api hooks here:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

主题 “[關閉] Use custom function to translate a string” 已关闭,不接受新回复。