source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/gluon/contrib/plural_rules/sl.py

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 728 bytes
Line 
1#!/usr/bin/env python
2# -*- coding: utf8 -*-
3# Plural-Forms for sl (Slovenian)
4
5nplurals=4 # Slovenian language has 4 forms:
6           # 1 singular and 3 plurals
7
8# Determine plural_id for number *n* as sequence of positive
9# integers: 0,1,...
10# NOTE! For singular form ALWAYS return plural_id = 0
11get_plural_id = lambda n: (0 if n % 100 == 1 else
12                           1 if n % 100 == 2 else
13                           2 if n % 100 in (3,4) else
14                           3)
15
16# Construct and return plural form of *word* using
17# *plural_id* (which ALWAYS>0). This function will be executed
18# for words (or phrases) not found in plural_dict dictionary
19# construct_plural_form = lambda word, plural_id: (word + 'suffix')
20
Note: See TracBrowser for help on using the repository browser.