mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	add french specific rule for translating plural texts (#6846)
This commit is contained in:
		@@ -486,6 +486,12 @@ var trNLangRules = map[string]func(int64) int{
 | 
			
		||||
	"zh-TW": func(cnt int64) int {
 | 
			
		||||
		return 0
 | 
			
		||||
	},
 | 
			
		||||
	"fr-FR": func(cnt int64) int {
 | 
			
		||||
		if cnt > -2 && cnt < 2 {
 | 
			
		||||
			return 0
 | 
			
		||||
		}
 | 
			
		||||
		return 1
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TrN returns key to be used for plural text translation
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user