2009-11-13 14:28 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* harbour/src/rtl/hbi18n1.c
    ! fixed Lithuanian plural form index
This commit is contained in:
Mindaugas Kavaliauskas
2009-11-13 12:31:34 +00:00
parent 96004e5bbd
commit 8bb0bab87c
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-11-13 14:28 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/src/rtl/hbi18n1.c
! fixed Lithuanian plural form index
2009-11-12 16:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
* Updated dev list max attachment size.

View File

@@ -183,7 +183,7 @@ static long hb_i18n_pluralindex( int iForm, PHB_ITEM pNum )
case HB_I18N_PLURAL_LT:
n10 = fmod( n, 10.0 );
n100 = fmod( n, 100.0 );
return n100 >= 10 && n100 < 20 ? 2 : ( n10 == 1 ? 1 : 3 );
return n10 == 1 && n100 != 11 ? 1 : (n10 != 0 && (n100 < 10 || n100 >= 20) ? 2 : 3);
case HB_I18N_PLURAL_EN:
default: