Tornado 6.5 Documentation
or a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders supports loading translations in two formats: the .mo format used by gettext and related tools, and a simple .csv format. An application will generally call either tornado.locale. load_translations or tornado tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats. You can get the list of supported locales in your application with tornado.locale.get_supported_locales()0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
or a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders None, we fall back on the Accept-Language header. The tornado.locale module supports loading translations in two formats: the .mo format used by gettext [https://docs.python.org/3/library/gettext.html#module-gettext] csv format. An application will generally call either tornado.locale.load_translations or tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats0 码力 | 437 页 | 405.14 KB | 2 月前3Django CMS 3.11.10 Documentation
It is able to serve content in multiple languages, with fallbacks into other languages where translations have not been provided. It also has the facility for the user to set the preferred language and placeholders, "slot_name") # your methods class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models Template Inheritance in Page Content Translations Default Behavior (without versioning) In django CMS (version 4 and above), when creating page content translations, all content is immediately published0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django CMS 3.9.x Documentation
placeholder fields amongst the translated fields: class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models level of knowledge. As well as code, we welcome contributions to django CMS’s documentation and translations. Note Feel free to dive into coding for django CMS in whichever way suits you. However, you need will be hidden. When applied to a particular language, hides that language’s pages in menus until translations exist for them. type Boolean default True redirect_on_fallback Determines behaviour when the preferred0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.8.x Documentation
placeholder fields amongst the translated fields: class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models level of knowledge. As well as code, we welcome contributions to django CMS’s documentation and translations. Note Feel free to dive into coding for django CMS in whichever way suits you. However, you need will be hidden. When applied to a particular language, hides that language’s pages in menus until translations exist for them. type Boolean default True redirect_on_fallback Determines behaviour when the preferred0 码力 | 413 页 | 1.67 MB | 6 月前3Django CMS 4.0.x Documentation
placeholder fields amongst the translated fields: class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models.CharField('description' level of knowledge. As well as code, we welcome contributions to django CMS’s documentation and translations. Note: Feel free to dive into coding for django CMS in whichever way suits you. However, you need will be hidden. When applied to a particular language, hides that language’s pages in menus until translations exist for them. type Boolean default True 4.1. Django/Python compatibility table 123 django cms0 码力 | 296 页 | 1.79 MB | 6 月前3Django CMS 3.9.x Documentation
placeholder fields amongst the translated fields: class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models.CharField('description' level of knowledge. As well as code, we welcome contributions to django CMS’s documentation and translations. Note: Feel free to dive into coding for django CMS in whichever way suits you. However, you need will be hidden. When applied to a particular language, hides that language’s pages in menus until translations exist for them. type Boolean default True 4.1. Django/Python compatibility table 123 django cms0 码力 | 298 页 | 1.79 MB | 6 月前3Django CMS 2.4.x Documentation
1.1. Community 1.2. In a nutshell 1.3. Contributing Code 1.4. Contributing Documentation 1.5. Translations 2. Running and writing tests 2.1. Running tests 2.2. Writing tests Indices and tables Index Module WymEditor that prevented it from load it’s JavaScript assets correctly. Moved Norwegian translations The Norwegian translations are now available as nb, which is the new (since 2003) official language code for Creating templates The django CMS allows you to edit all languages for which Django has built in translations. Since these are numerous, we’ll limit it to English for now: LANGUAGES = [ ('en', 'English')0 码力 | 156 页 | 727.78 KB | 6 月前3Django CMS 4.1.x Documentation
It is able to serve content in multiple languages, with fallbacks into other languages where translations have not been provided. It also has the facility for the user to set the preferred language and placeholders, "slot_name") # your methods class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models will be hidden. When applied to a particular language, hides that language’s pages in menus until translations exist for them. type Boolean default True redirect_on_fallback Determines behaviour when the preferred0 码力 | 518 页 | 1.66 MB | 6 月前3Django CMS 3.0.x Documentation
for django CMS. The django CMS allows you to edit all languages for which Django has built in translations. Since these are numerous, we’ll limit it to English for now: LANGUAGES = [ ('en', 'English') the placeholder fields in the translated fields: class MultilingualExample1(TranslatableModel): translations = TranslatedFields( title=models.CharField('title', max_length=255), description=models.CharField('description' It is able to serve content in multiple languages, with fallbacks into other languages where translations have not been provided. It also has the facility for the user to set the preferred language and0 码力 | 180 页 | 1.56 MB | 6 月前3
共 34 条
- 1
- 2
- 3
- 4