Wagtail 2.11.2 国际化,翻译后的页面不会自动创建也无法访问
Wagtail 2.11.2 internationalisation, translated pages not created automatically nor accesible
我正在测试 Wagtail 2.11.2 新的内容国际化方法:
- 我设置了两个模型 HomePage 和 GenericPage。
- 我已经在 settings.py 和管理员
中设置了语言环境
USE_I18N = True
WAGTAIL_I18N_ENABLED = True
USE_L10N = True
LANGUAGE_CODE='en'
LANGUAGES = [
('en', "English"),
('es', "Spanish"),
('de', "German"),
]
WAGTAIL_CONTENT_LANGUAGES = [
('en', "English"),
('es', "Spanish"),
]
- 我可以在管理员中创建页面,系统询问我该特定页面的语言,我选择一种语言。
- 按下“发布”后,我只看到刚刚创建的页面。我没有看到翻译版本,也没有 link 创建该页面的翻译版本。
页面翻译版本是自动创建的还是我遗漏了什么?我查看了文档,对这种行为不是很清楚。
管理翻译时我应该看到什么?
提前致谢,
马科斯
Wagtail 本身只提供以多种语言提供页面服务的基本基础设施,而不是 UI 在它们之间进行翻译。 As per the docs:
Wagtail provides the infrastructure for creating and serving content in multiple languages, but does not itself provide an admin interface for managing translations of the same content across different languages. For this, the wagtail-localize app must be installed separately.
我正在测试 Wagtail 2.11.2 新的内容国际化方法:
- 我设置了两个模型 HomePage 和 GenericPage。
- 我已经在 settings.py 和管理员 中设置了语言环境
USE_I18N = True
WAGTAIL_I18N_ENABLED = True
USE_L10N = True
LANGUAGE_CODE='en'
LANGUAGES = [
('en', "English"),
('es', "Spanish"),
('de', "German"),
]
WAGTAIL_CONTENT_LANGUAGES = [
('en', "English"),
('es', "Spanish"),
]
- 我可以在管理员中创建页面,系统询问我该特定页面的语言,我选择一种语言。
- 按下“发布”后,我只看到刚刚创建的页面。我没有看到翻译版本,也没有 link 创建该页面的翻译版本。
页面翻译版本是自动创建的还是我遗漏了什么?我查看了文档,对这种行为不是很清楚。
管理翻译时我应该看到什么?
提前致谢,
马科斯
Wagtail 本身只提供以多种语言提供页面服务的基本基础设施,而不是 UI 在它们之间进行翻译。 As per the docs:
Wagtail provides the infrastructure for creating and serving content in multiple languages, but does not itself provide an admin interface for managing translations of the same content across different languages. For this, the wagtail-localize app must be installed separately.