Skip to main content
Aggregate Drupal.org Planet Drupal 23 Oct 2026 - 03:05

Gábor Hojtsy: Who would have thought the Drupal plural translation experience can be this much better?

RSS 官方收录 · 可信分层展示

关键摘要

Who would have thought the Drupal plural translation experience can be this much better?Did you know that Drupal only learns how many plural variants a language has from imported .…

  • It has a very fast lookup table to pick the right variant each time, b…
  • Get them wrong and your carefully translated strings fall back to the …
  • Export your translations and the right plural rules don't come along e…

规则摘要 · 来源可核验

正文提要

Who would have thought the Drupal plural translation experience can be this much better?

Did you know that Drupal only learns how many plural variants a language has from imported .po files? It has a very fast lookup table to pick the right variant each time, but there is no UI to set or fix the rules. Get them wrong and your carefully translated strings fall back to the wrong form. Export your translations and the right plural rules don't come along either. I had a small module that provided a little bit of the solution since 2010 but recently decided to think bigger.

Gábor Hojtsy
打开官方原文 站点原文页 可信分区 本信源更多 今日简报 分享图 RSS 稍后再看列表