Closed (fixed)
Project:
Localization server
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2008 at 23:10 UTC
Updated:
1 Sep 2009 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
gábor hojtsySomehow 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 :)
Comment #2
sutharsan commentedNumber 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.)
Comment #3
gábor hojtsyNow 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.