Gebietsschema-spezifische Standardwerte für Site-Einstellungen (`locale_default`)

I thought it would be helpful to create a topic for translators, for anyone managing Discourse in a non-English locale, and for English users too - since special defaults can apply to English as well - to discuss locale_default values for site settings.

locale_default is a feature that allows site settings to have different default values depending on the site’s default locale. This helps site administrators by providing defaults based on the language, matching the needs of their community.

It can also be useful for admins managing a multilingual forum. When a setting has a suggested value for a particular language, admins can choose to apply it - using a different value than the standard default for the main site language. For example, an admin might allow shorter search terms so that Chinese users can find their topics more easily.

This post provides an overview of settings where the default value has been overridden for certain locales, and aims to raise awareness that this feature exists. I hope it can also spark a discussion about new settings that might benefit from locale-specific defaults, and about settings where more languages would benefit from a different default.

allowed_unicode_username_characters

Description: Regular expression to allow only some Unicode characters within usernames. ASCII letters and numbers will always be allowed and don’t need to be included in the allowlist
Default: ``

Locale overrides
Locale Value
cs [ěščřžýáíéóůúďťňĚŠČŘŽÝÁÍÉÓŮÚĎŤŇ]
de [äöüßÄÖÜẞ]
fi [åäöÅÄÖ]
ja [\p{Han}\p{Katakana}\p{Hiragana}ー]
ko \p{Hangul}
zh_CN \p{Han}
zh_TW \p{Han}

min_post_length

Description: Minimum allowed post length in characters (excluding personal messages)
Default: 20

Locale overrides
Locale Value
ja 8
zh_CN 8
zh_TW 8

min_first_post_length

Description: Minimum allowed first post (topic body) length (excluding personal messages)
Default: 20

Locale overrides
Locale Value
ja 8
zh_CN 8
zh_TW 8

min_personal_message_post_length

Description: Minimum allowed post length in characters for messages (both first post and replies)
Default: 10

Locale overrides
Locale Value
ja 3
zh_CN 3
zh_TW 3

body_min_entropy

Description: The minimum entropy (unique characters, non-english count for more) required for a post body.
Default: 7

Locale overrides
Locale Value
ja 3
zh_CN 3
zh_TW 3

min_topic_title_length

Description: Minimum allowed topic title length in characters
Default: 15

Locale overrides
Locale Value
ja 6
zh_CN 6
zh_TW 6

title_min_entropy

Description: The minimum entropy (unique characters, non-english count for more) required for a topic title.
Default: 10

Locale overrides
Locale Value
ja 3
zh_CN 3
zh_TW 3

allow_uppercase_posts

Description: Allow all caps in a topic title or a post body.
Default: False

Locale overrides
Locale Value
ja True

title_prettify

Description: Prevent common title typos and errors, including all caps, lowercase first character, multiple ! and ?, extra . at end, etc.
Default: True

Locale overrides
Locale Value
ja False
zh_CN False
zh_TW False

title_remove_extraneous_space

Description: Remove leading whitespaces in front of the end punctuation.
Default: False

Locale overrides
Locale Value
en True
en_GB True

min_title_similar_length

Description: The minimum length of a title before it will be checked for similar topics.
Default: 10

Locale overrides
Locale Value
ja 4
zh_CN 4
zh_TW 4

markdown_typographer_quotation_marks

Description: List of double and single quotes replacement pairs
Default: “\|”\|‘\|’

Locale overrides
Locale Value
de „|“|‚|‘
fr «\xA0|\xA0»|‹\xA0|\xA0›

title_max_word_length

Description: The maximum allowed word length, in characters, in a topic title.
Default: 30

Locale overrides
Locale Value
ja 50
ko 50
zh_CN 50
zh_TW 50

post_excerpt_maxlength

Description: Maximum length of a post excerpt / summary.
Default: 300

Locale overrides
Locale Value
ja 120
zh_CN 120
zh_TW 120

topic_excerpt_maxlength

Description: Maximum length of a topic excerpt / summary, generated from the first post in a topic.
Default: 220

Locale overrides
Locale Value
ja 120
zh_CN 120
zh_TW 120

emoji_autocomplete_min_chars

Description: Minimum number of characters required to trigger autocomplete emoji popup
Default: 0

Locale overrides
Locale Value
fr 1

enable_inline_emoji_translation

Description: Enables translation for inline emojis (without any space or punctuation before)
Default: False

Locale overrides
Locale Value
zh_CN True
zh_TW True
ja True
ko True

digest_min_excerpt_length

Description: Minimum post excerpt in the email summary, in characters.
Default: 100

Locale overrides
Locale Value
ja 50
zh_CN 50
zh_TW 50

post_onebox_maxlength

Description: Maximum length of a oneboxed Discourse post in characters.
Default: 500

Locale overrides
Locale Value
ja 200
zh_CN 200
zh_TW 200

min_search_term_length

Description: Minimum valid search term length in characters
Default: 3

Locale overrides
Locale Value
zh_CN 1
zh_TW 1
ko 1
ja 1

search_ignore_accents

Description: Accent marks in search queries are disregarded if this setting is enabled, allowing users to find results even if they don’t input the correct accents.
Default: False

Locale overrides
Locale Value
ar True
ca True
cs True
el True
es True
fa_IR True
fr True
hu True
pt True
pt_BR True
ro True
sk True
tr_TR True

slug_generation_method

Description: Choose a slug generation method. ‘encoded’ will generate percent encoding string. ‘none’ will disable slug at all.
Default: ascii

Locale overrides
Locale Value
ja none
zh_CN none
zh_TW none

read_time_word_count

Description: Word count per minute for calculating estimated reading time.
Default: 500

Locale overrides
Locale Value
ja 350
zh_CN 350
zh_TW 350
2 „Gefällt mir“

One aspect that confused me when I created my German forum was that while Umlauts were configured in allowed_unicode_username_characters, I still wasn’t able to use them because unicode_usernames was still disabled.

I remember that this can also be a problem when the default group names, like the trust level groups, contain Unicode characters.

I wonder why no defaults were defined for unicode_usernames.

3 „Gefällt mir“