Typecho 现有的多语言实现存在不少缺陷。
作者: little-gt创建于 2026年9月5日更新于 2026年9月5日
标签bug
`GetText::translate()` in the cache branch (117:133) does not write `$num` in any branch, and `$count` remains `null`, so `-1 != null` is always true, which means that it will always break after the first handler. In practice, `translate('beta')` (which only exists in the second file) returns the original text `'beta'`.
内容来源: typecho/typecho