Changeset - r25151:65c3f29d0dd5
[Not reviewed]
master
0 2 0
Nicolae Crefelean - 3 years ago 2021-04-10 15:33:27
kneekoo@yahoo.com
Add: new plural form for Romanian translation (#8936)
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/lang/romanian.txt
Show inline comments
 
##name Romanian
 
##ownname Românӑ
 
##isocode ro_RO
 
##plural 0
 
##plural 14
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0418
 
##grflangid 0x28
src/strings.cpp
Show inline comments
 
@@ -625,12 +625,18 @@ static int DeterminePluralForm(int64 cou
 
			return (n == 1 ? 0 : n == 0 || (n % 100 > 1 && n % 100 < 11) ? 1 : (n % 100 > 10 && n % 100 < 20) ? 2 : 3);
 
		/* Four forms: special cases for 1 and 11, 2 and 12, 3 .. 10 and 13 .. 19, other
 
		 * Used in:
 
		 *  Scottish Gaelic */
 
		case 13:
 
			return ((n == 1 || n == 11) ? 0 : (n == 2 || n == 12) ? 1 : ((n > 2 && n < 11) || (n > 12 && n < 20)) ? 2 : 3);
 

	
 
		/* Three forms: special cases for 1, 0 and numbers ending in 01 to 19.
 
		 * Used in:
 
		 *   Romanian */
 
		case 14:
 
			return n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2;
 
	}
 
}
 

	
 
static const char *ParseStringChoice(const char *b, uint form, char **dst, const char *last)
 
{
 
	/* <NUM> {Length of each string} {each string} */
0 comments (0 inline, 0 general)