Message Format support for localization


目录

In Discourse all Message Format strings have a key that ends with "_MF". The Crowdin Editor has a preview that allows you to experiment with various values which is quite helpful for checking your translations.

image|493x446, 80%

Important: You need to modify the plural forms of your translation if your language uses forms other than "one" and "other". You can add or remove forms within a { FOO, plural, ... } block in order to make it work for your languages. The preview in the Crowdin Editor will show you a "Syntax error" in the preview when there's a problem with your translation.

The available plural forms are:

Sometimes you might see an empty =0 {} block in an English source string which means that the variable can't have a value of 0.

Guidelines for Developers

Message Format strings are currently only available only for client-side translations. They are useful if your string contains more than one number or many variables which would lead to a high amount of permutations.

Tools and further information


版本号 #2
由 壳壳虫 创建于 2026-10-31 13:31:26 UTC
由 壳壳虫 更新于 2026-10-31 13:31:28 UTC