mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Merge different languages for language stats (#24900)
Fix #24896 If users set different languages by `linguist-language`, the `stats` map could be: `java: 100, Java: 200`. Language stats are stored as case-insensitive in database and there is a unique key. So, the different language names should be merged to one unique name: `Java: 300`
This commit is contained in:
		@@ -10,7 +10,7 @@ import (
 | 
			
		||||
 | 
			
		||||
// FallbackErrorf is the last chance to show an error if the logger has internal errors
 | 
			
		||||
func FallbackErrorf(format string, args ...any) {
 | 
			
		||||
	_, _ = fmt.Fprintf(os.Stderr, format+"\n", args)
 | 
			
		||||
	_, _ = fmt.Fprintf(os.Stderr, format+"\n", args...)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func GetLevel() Level {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user