Skip to content

Multilingual

Composition of language tags

Example in English

  • Lang Code: en
  • Area Code: US
  • Area Code: GB
RowsLang CodeArea CodeW3C Language tags
1enen
2enUSen-US
3enGBen-GB

The above three records are not considered duplicates, and the duplication criteria are based on the W3C Language tags.

Multi-language configuration

Key NameData TypeDescription
language_statusbooleanWhether to enable multilingualism
language_menusarrayMultilingual configuration list
default_languagestringDefault Language
php
ConfigHelper::fresnsConfigByItemKey('Key Name');

Logic Flow Chart

The logic flow is the control panel language setup logic.

Panel > Systems > Languages

Fresns Multi-language

The contents listed below are not stored in the multilingual table or in the flow chart. If the multilingual labels change, it is recommended to modify them together.

Table NameColumn or Key Name
code_messageslang_tag
post_logsread_json
post_logsuser_list_json
post_logscomment_btn_json
plugin_usagesdata_sources
seolang_tag
configsverifycode_template1
configsverifycode_template2
configsverifycode_template3
configsverifycode_template4
configsverifycode_template5
configsverifycode_template6
configsverifycode_template7
configsverifycode_template8

Released under the Apache-2.0 License