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小节:

评论 (写第一个评论)