Jinja2 Documentation Release 2.10fault is {'sort_keys': True}. ext.i18n.trimmed: If this is set to True, {% trans %} blocks of the i18n Extension will always unify linebreaks and surrounding whitespace as if the trimmed modifier was used documentation; in which case there should be a separate document explaining said extensions. 5.17.1 i18n If the i18n extension is enabled, it’s possible to mark parts in the template as translat- able. To mark a Jinja2 environment with the i18n exten- sion loaded: jinja_env = Environment(extensions=['jinja2.ext.i18n']) 6.2 i18n Extension Import name: jinja2.ext.i18n The i18n extension can be used in combination0 码力 | 148 页 | 475.08 KB | 1 年前3
Django CMS 2.4.x DocumentationSouth 3. Configuration 3.1. Required Settings 3.2. Basic Customization 3.3. Editor configuration 3.4. I18N and L10N 3.5. Media Settings 3.6. URLs 3.7. Advanced Settings 4. Navigation 4.1. show_menu 4.2. show_menu_below_id helpers. For django 1.4 more infos can be found here: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalizati on-in-url-patterns If you are still running django 1.3 you are able templatetag or via activate("de") function call in views. Before: {% url "de:myview" %} After: {% load i18n %}{% language "de" %} {% url "myview_name" %} {% endlanguage %} reverse urls now return the language0 码力 | 156 页 | 727.78 KB | 6 月前3
django cms 3.4.x Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content com/en/1.10/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation a language code, simply don’t use i18n_patterns() [https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]: urlpatterns += [ url(r'^admin/', include(admin0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 3.5.x Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content com/en/1.10/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation a language code, simply don’t use i18n_patterns() [https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]: urlpatterns += [ url(r'^admin/', include(admin0 码力 | 403 页 | 1.69 MB | 1 年前3
django cms 3.7.x Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content MyModelAdmin(PlaceholderAdminMixin, admin.ModelAdmin): pass admin.site.register(MyModel, MyModelAdmin) I18N Placeholders Out of the box PlaceholderAdminMixin supports multiple languages and will display language com/en/2.2/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 3.9.x Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content MyModelAdmin(PlaceholderAdminMixin, admin.ModelAdmin): pass admin.site.register(MyModel, MyModelAdmin) I18N Placeholders Out of the box PlaceholderAdminMixin supports multiple languages and will display language com/en/2.2/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content MyModelAdmin(PlaceholderAdminMixin, admin.ModelAdmin): pass admin.site.register(MyModel, MyModelAdmin) I18N Placeholders Out of the box PlaceholderAdminMixin supports multiple languages and will display language com/en/2.2/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 3.0.x Documentationpowers sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • virtually unlimited undo history, allowing editors to revert sqlite://localhost/project.db • django CMS version: stable • Django version: 1.6 • Activate Django I18N / L10N setting: yes • Install and configure reversion support: yes • Languages to enable. Option can you want to access the same url but in a different language use the language template tag: {% load i18n %} {% language "de" %} 46 Chapter 5. Table of contents django cms Documentation, Release 3.0.19.dev10 码力 | 180 页 | 1.56 MB | 6 月前3
Django CMS 3.11.10 Documentationpowers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content can be controlled at a granular level in CMS_LANGUAGES. Other Internationalisation and localisation (I18N and L10N) settings offer further control. See How to serve multiple languages on how to set up a multilingual com/en/4.2/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns]. For more information about this see the official Django documentation [https://docs.djangoproject.com/en/dev/topics/i18n/translation0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django CMS 2.4.x Documentationnotes 7 django cms Documentation, Release 2.4.3-support https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalization-in-url-patterns If you are still running django 1.3 you are able templatetag or via activate("de") function call in views. Before: {% url "de:myview" %} After: {% load i18n %}{% language "de" %} {% url "myview_name" %} {% endlanguage %} • reverse urls now return the language (default=100), specifies how many levels of nephews (children of siblings) are shown. PlaceholderAdmin support i18n If you use placeholders in other apps or models we now support more than one language out of the box0 码力 | 104 页 | 709.98 KB | 6 月前3
共 158 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16













