Page MenuHomePhabricator

Cannot export gettext plural
Closed, ResolvedPublic

Description

Plural rules should be added automatically from a database kept in the extension if not already present. A file is present, but nothing is done with it yet. If no code is present, a simple plural scenario should be assumed.

Current procedure is to create a dummy file for the language code to have at least a plural definition. Quite tedious.

Example of current error scenario [1]:

  • Plural-Forms is missing in the header
  • Keys that use plural are tagged as having a problem.

#: lib/command.php:594
msgid "You are subscribed to this person:"
msgid_plural "You are subscribed to these people:"

Plural problem

[1] http://translatewiki.net/w/i.php?title=Special%3ATranslate&task=export-to-file&group=out-statusnet&language=prg


Version: unspecified
Severity: major

Details

Reference
bz21768

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:48 PM
bzimport set Reference to bz21768.

Extension will now insert plural rule, ignoring and tagging messages with illegal plural syntax on export.