mirror of
				https://github.com/minetest-mods/intllib.git
				synced 2025-10-31 20:15:21 +01:00 
			
		
		
		
	Use germanic language rules by default.
Use germanic language rules for plurals if no `Plural-Forms` header is present.
This commit is contained in:
		| @@ -252,8 +252,8 @@ local function load_catalog(filename) | |||||||
|  |  | ||||||
| 	local pf = hdrs["Plural-Forms"] | 	local pf = hdrs["Plural-Forms"] | ||||||
| 	if not pf then | 	if not pf then | ||||||
| 		return bail("failed to load catalog:" | 		-- XXX: Is this right? Gettext assumes this if header not present. | ||||||
| 				.." catalog has no Plural-Forms header") | 		pf = "nplurals=2; plural=n != 1" | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	data.plural_index, err = compile_plural_forms(pf) | 	data.plural_index, err = compile_plural_forms(pf) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user