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

评论 (写第一个评论)