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

评论 (写第一个评论)