In general plural form problem can be handled with ungettext_lazy. https://docs.djangoproject.com/en/dev/topics/i18n/translation/#lazy-translations-and-plural I think we need to change all classes inherited BatchAction and DeleteAction. I haven't tested below.
IMO it is better to be fixed separately.
The following is an example of DeleteNetwork: (https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/networks/tables.py#L42)
class DeleteNetwork(CheckNetworkEditable, tables.DeleteAction): data_type = ungettext_lazy("Network", "Networks", "_count")
and change horizon/tables/action.py
data_type = self.data_type % {'_count': <num_of_items>}
In general plural form problem can be handled with ungettext_lazy. /docs.djangopro ject.com/ en/dev/ topics/ i18n/translatio n/#lazy- translations- and-plural
https:/
I think we need to change all classes inherited BatchAction and DeleteAction. I haven't tested below.
IMO it is better to be fixed separately.
The following is an example of DeleteNetwork: (https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ dashboards/ project/ networks/ tables. py#L42)
class DeleteNetwork( CheckNetworkEdi table, tables. DeleteAction) : lazy("Network" , "Networks", "_count")
data_type = ungettext_
and change horizon/ tables/ action. py
data_type = self.data_type % {'_count': <num_of_items>}