source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/gluon/contrib/plural_rules/lt.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 lt (Lithuanian)
4
5nplurals=3 # Lithuanian language has 3 forms:
6           # 1 singular and 2 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 % 10 == 1 and n % 100 != 11 else
12                           1 if n % 10 >= 2 and (n % 100 < 10 or n % 100 >= 20) else
13                           2)
14
15# Construct and return plural form of *word* using
16# *plural_id* (which ALWAYS>0). This function will be executed
17# for words (or phrases) not found in plural_dict dictionary
18# construct_plural_form = lambda word, plural_id: (word + 'suffix')
19
Note: See TracBrowser for help on using the repository browser.