4.1 语言配置

1龶龵龳龲龮

龭龪龦龤龢龟龝龦龙龤龢龕龔龵龦龙(Language)龲龮齽齼龲龮齻齷齴齳齲齱龦龙齮齪龟龦龙齧齣齟齜齙龔龵龦龙龲龮齽龢齗 齖齓>齎齍 齊齆龲龮齄齂鼾鼺齽鼶齆龦龙(Language)龲龮鼴鼰鼯齽鼫鼩鼰鼯鼧鼥鼣鼢龲龮(Configuration Translation齽Content Translation齽Interface Translation)齽鼅鼁龢齗鼀黼(install)齽鼾鼺黺黶黴齻黰黯黫龲龮黪龔龵齟黧黣黡黟龳drush龵龳龲龮齽默龵龳Language龲龮齽黣黡黟龳drush en language.

2龶黑黍龦龙

龔龵齴龦龙龲龮鼁齽黋黣黡黑黍黈黆龦龙齴齟龢齗 齖齓>黄黃>龦龙 麿麾麻admin/config/regional/language齽齊齆龦龙黄黃鼾鼺齽黯鼢鼾鼺齄麲齴麯麬黪麪麦齱龦龙齽黣黡麤黯黫龦龙麠麝麙麘麕齽鼥麔齱麓麕麑黴麐麍齆龦龙麋龮麇麆齽麄麂鹾鹻鼩齱龦龙鼯鹹鹵麓麕齽鹱鹯黴麐麍龦龙齧齣鹮鼯鹹齱麓麕齟麦黯鹫鹨黃龤龢鹥鹢齱龦龙齽鹱鹯鹟鹞麦鹝鹜鹙齱龤龢黺鹨黃齟

鹘麦鹕麔鹔龤龢黑黍鹑鹍鹋鹉龦龙齟龢齗黑黍龦龙(Add language)鹄鹁齽麦龦龙鸾鸼(Language name)鸻鼯鹹鹑鹍鹋鹉(Chinese,Simplified)齽鼅鼁龢齗黑黍龦龙(Add language)鹄鹁齽鸲鸱鹑鹍鹋鹉龦龙齱黑黍齟黯鼩鼾鼺麙鸮鸭齆龦龙齄齂齽黣黡鸫齆鹑鹍鹋鹉龦龙黪鸩鸨鸧黣黡黟龳齱齻黰鹉齲齽龦龙齄齂鹋黪齄麲齴鹑鹍鹋鹉龦龙齟麑鹑鹍鹋鹉龦龙鹨鹔龤龢鹥鹢龦龙齽龢齗鹑鹍鹋鹉鼁鼺齱鹥鹢(DEFAULT)鼯鸠齽鼅鼁龢鸜麪黄黃(Save configuration)鸘黣齟

Drupal 8黪鹔鹕麔鸮鸔鸑鸎鸍龦龙齽默鸌龕黑黍齱龦龙bu鹯麦龦龙鸾鸼鸻鸇齄齂鸃鹋齽黣黡鼯鹹齄齂鸃鸁鸻鼺齱鸀鸮鸔龦龙(Custom language…)齽鼯鹹鼁齽麦鸻黶黴鸀鷽麲鹘鸀鸮鸔龦龙齱黄黃齽鷹鷵龦龙鷲鷰(Language code)龶龦龙鸾(Language name)龶鷯鷫黶鸭(Direction)齟鼧鹋龦龙鷲鷰鷧鷥鷡W3C麤龦龙鷲鷰齱鸮鸔齽鷯鷫黶鸭鹥鹢鹔鷘鷗鷖鷓(Left to right)齟黄黃鷑鼁龢齗黑黍鸀鸮鸔龦龙(Add custom language)鹄鹁鸲鸱鸀鸮鸔龦龙齱黑黍齟

3龶麄麂鹮鷎鷊龤龢龦龙

麦龦龙齄齂齱鸁鼁黈齄齽鷉黈鼢鸻鸇鹄鷈齽鷄鷁鶾麤龤龢龦龙麠麝麄麂龟鷎鷊齽龢齗鹑鹍鹋鹉鼁鼺齱麄麂(Edit)鹄鹁齽黣黡麄麂龦龙齱鸾鸼齽鷯鷫黶鸭鹵齽鹱鹯齪鶼鶸龦龙鷲鷰齟龭龤龢鹥鹢龦龙黣黡龢齗鷎鷊(delete)麠麝鷎鷊齽麯麬黴齻黰齼鷽鹙鹯黣鶷鶳齽龕鷁鶲鹢鶰齪鷎鷊齟黯鼢黈鸮鷁鶮鶪齽黈鶧鷎鷊鹮龦龙鶦鶤齱鹾鹻麑鹯黴鶠黰齟

4龶龦龙齧齣鹮鼯鹹

麤鶚龭龪龦鶙龤龟龝龦龙龤龢齽Drupal 8 鶾默鶘鶔鶐鶏鶍黟龳鶊黆龦龙鶠黰鼾鼺齱鶈齽Drupal 8齻齷齴龝黆黶鶇麤龦龙麠麝齧齣齽鼥麔鹄鶄鶃齙鶂麓麕麠麝麘麕齟

龢齗 齖齓>黄黃>龦龙>齧齣鹮鼯鹹(Manage>Configuration>Language>Detection and selection) 麿麾麻admin/config/regional/language/detection齽齊齆龦龙齧齣鹮鼯鹹鼾鼺齟黯鼢鼾鼺齄麲齴鵺鼺鹉齲龦龙齧齣黶鵹齽默鸌鼀黼齴鹾鹻鵶鵳龲龮齽鵰黴齄麲鹾鹻鹉齲龦龙齧齣黶鵹齟鷄鷁鷉黡鸻鵮黆齧齣黶鵹齟

Account administration pages:鵫鵨齖齓鼾鼺

URL:鵤鵢 URL鶍鵟麿鵛鸾齧齣龦龙

Session:Session鵚鵖齧齣龦龙

User:鵔鵒龳鵨齱龦龙鹨黃

Browser:鵈鵅鵃鵁鴽龦龙鹨黃鼯鹹龦龙

Selected language:齳鶚黪鼯鹹齱龦龙

鴺黆齧齣黶鵹龕鷁龔龵鶰齪鴷鴵齽龔龵鶦鷧齱齧齣黶鵹鴲龕鼰鼯鶦鷧麝齱ENABLED鶳鼯鸃黋麝齽默鸌龔龵齴龝鼢鴮鹄鶄鶃齙鶂麠麝齧齣齽鶃齙鶂鴫齱鴷鴵齟鼧鹋Selected language鴨鶾龔龵齱鹱鼧鶃齙鶂鸁鴥齽龭龦龙龤龢鴲龕龔龵黯黈鸠黋麝齽鴡鹔龭龪龦龤龢鵰鶾鴲黟龳黈黆龦龙齽鴲龕鼯鹹鷑鹥鹢龦龙黋麝齟

5龶齳鶚URL鶍鵟麿鵛鸾齱齧齣黶鵹黄黃

鸑龝鵖龝龦龙龤龢鴙鶾齳鶚URL鶍鵟麿鵛鸾麋鴗齱齽鹘麦鹕麔麠麝鶦鷧黄黃齟齜齙鼰鼯URL齧齣黶鵹黡龔龵鼥齽鴖龢齗 鼅鼁龢齗Configure(黄黃)鹄鹁齽鼾鼺齊鷖URL language detection configuration齽鼯鹹Path prefix(鴏鴌鶍鵟)鼯鸠齽鼅鼁鴗鴈麤黪麪麦齱龦龙麠麝URL鶍鵟黄黃齟默龪龦龦龙鶍鵟URL鴅 http://www.example.com/en齽鴂龦龦龙鶍鵟http://www.example.com/zh-hans齽龤龢齱鹥鹢龦龙黣黡鳽鳹鹯鹨黃齟默鸌鼯鹹Domain鵛鸾鼯鸠齽鴮龕鷁麤鴺黆龦龙鳸黟龳齱鵛鸾麠麝黄黃齽默龪龦龦龙en.domain.com齽鴂龦龦龙zh-hans.domain.com鹵齽黄黃鷑鼁龢齗Save 鴅configuration(鸜麪黄黃)齟

6龶齳鶚鵃鵁鴽齱龦龙鼯鹹

鵃鵁鴽黟龳鹯鼫齱龦龙鷲鷰鶤鳴齆鼫黆龦龙齽黯鹫黣黡鹨黃鹯鼫齱龦龙鷲鷰鹮龤龢龦龙齱鳰鳯鶤麯齽齼鼾鼺齄麲齴黈黫鳫龳齱龦龙鷲鷰齽鳨黣黡黑黍鳤齱龦龙鳰鳯鶤麯齽鴲龕麾麻鵃鵁鴽齱龦龙鷲鷰齽鼅鼁鼯鹹龤龢龦龙鸘黣鸲鸱龦龙鳰鳯鶤麯齟鹱龕鳢鳡鵃鵁鴽龦龙鷲鷰鷧鷥鷡W3C齱龦龙鷲鷰鸮鸔齟

本书共79小节:

评论 (写第一个评论)