mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Prioritize "all" ("Multi") lang in extensions lists
Fixes #8811 Fixes #8812
This commit is contained in:
		@@ -25,10 +25,7 @@ class GetExtensionLanguages(
 | 
			
		||||
                }
 | 
			
		||||
                .distinct()
 | 
			
		||||
                .sortedWith(
 | 
			
		||||
                    compareBy(
 | 
			
		||||
                        { it !in enabledLanguage },
 | 
			
		||||
                        { LocaleHelper.getDisplayName(it) },
 | 
			
		||||
                    ),
 | 
			
		||||
                    compareBy<String> { it !in enabledLanguage }.then(LocaleHelper.comparator),
 | 
			
		||||
                )
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -25,10 +25,7 @@ class GetLanguagesWithSources(
 | 
			
		||||
 | 
			
		||||
            sortedSources.groupBy { it.lang }
 | 
			
		||||
                .toSortedMap(
 | 
			
		||||
                    compareBy(
 | 
			
		||||
                        { it !in enabledLanguage },
 | 
			
		||||
                        { LocaleHelper.getDisplayName(it) },
 | 
			
		||||
                    ),
 | 
			
		||||
                    compareBy<String> { it !in enabledLanguage }.then(LocaleHelper.comparator),
 | 
			
		||||
                )
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user