Plural translations do not show edit translations fields. Nor on untranslated nor translated plurals. Button 'Show translation editing field' does not work either.

Comments

gábor hojtsy’s picture

Somehow Drupal needs to know the plural format for each language. The only way to tell it so far is to import a translation (a PO file). So you essentially need to do this. This will not be a problem on the central l10n_server installation, since we will have the languages pre-set there. Otherwise ideas are welcome to improve this.

Or let me know if this is not the issue :)

sutharsan’s picture

Title: Plurals can not be translated, no edit field shown » Admin interface for plural settings
Category: bug » feature
Priority: Critical » Normal

Number of plurals and plural formula were not set in the database (table locales_meta; plurals=0; formula=null). After correcting all works.

Dutch (nl) plural settings were not in the install-file when we installed this server. This might have lead to this situation.

Although plural settings are not likely to change, I can not find an interface to add plural settings or formula when a language is added to the server. An interface to add/edit the language settings per language may be a good feature.
(Issue title, etc. changed accordingly.)

gábor hojtsy’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Active » Fixed
StatusFileSize
new15.69 KB
new90.06 KB

Now that Localize.drupal.org needs this for its initial setup of languages (and will need to add more in the future), everything goes smoother :) Worked on this one in some available spare time and made up this patch. Adds known plural forms to the given language on adding from the predefined list. If not known, warns user to specify it on the edit form (and links to the edit form). When adding a custom language, provides a field for the formula and lists examples (a pretty darn long list, but this is a hard-core admin task, so we can live with it). When editing a language, it lets you fix up the plural forms, and again provides this example list.

I think it looks pretty advanced (which is not a problem in this context) and helps as much as possible.

Committing this one to the 6.x-1.x version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.