forked from minetest-mods/unified_inventory
		
	Fix translation strings for recipe alternations
This commit is contained in:
		@@ -46,11 +46,10 @@ cooking = Kochen
 | 
				
			|||||||
alloy cooking = Legierung Kochen
 | 
					alloy cooking = Legierung Kochen
 | 
				
			||||||
Copy to craft grid: = Ins Fertigungsraster kopieren:
 | 
					Copy to craft grid: = Ins Fertigungsraster kopieren:
 | 
				
			||||||
All = Alles
 | 
					All = Alles
 | 
				
			||||||
Recipe %s of %s = Rezept %s von %s
 | 
					 | 
				
			||||||
Alternate = Alternative
 | 
					Alternate = Alternative
 | 
				
			||||||
Crafting Grid = Fertigungsraster
 | 
					Crafting Grid = Fertigungsraster
 | 
				
			||||||
Recipe = Rezept
 | 
					Recipe %d of %d = Rezept %d von %d
 | 
				
			||||||
Usage = Verwendung
 | 
					Usage %d of %d = Verwendung %d von %d
 | 
				
			||||||
No recipes = Keine Rezepte
 | 
					No recipes = Keine Rezepte
 | 
				
			||||||
No usages = Keine Verwendungen
 | 
					No usages = Keine Verwendungen
 | 
				
			||||||
Result = Ergebnis
 | 
					Result = Ergebnis
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,11 +48,10 @@ cooking =
 | 
				
			|||||||
alloy cooking = 
 | 
					alloy cooking = 
 | 
				
			||||||
Copy to craft grid: = 
 | 
					Copy to craft grid: = 
 | 
				
			||||||
All = 
 | 
					All = 
 | 
				
			||||||
Recipe %s of %s = 
 | 
					 | 
				
			||||||
Alternate = 
 | 
					Alternate = 
 | 
				
			||||||
Crafting Grid =  
 | 
					Crafting Grid =  
 | 
				
			||||||
Recipe =
 | 
					Recipe %d of %d = 
 | 
				
			||||||
Usage =
 | 
					Usage %d of %d = 
 | 
				
			||||||
No recipes =
 | 
					No recipes =
 | 
				
			||||||
No usages =
 | 
					No usages =
 | 
				
			||||||
Result =
 | 
					Result =
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -195,8 +195,8 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item)
 | 
				
			|||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local recipe_text = {
 | 
					local recipe_text = {
 | 
				
			||||||
	recipe = "Recipe",
 | 
						recipe = "Recipe %d of %d",
 | 
				
			||||||
	usage = "Usage",
 | 
						usage = "Usage %d of %d",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
local no_recipe_text = {
 | 
					local no_recipe_text = {
 | 
				
			||||||
	recipe = "No recipes",
 | 
						recipe = "No recipes",
 | 
				
			||||||
@@ -310,9 +310,8 @@ unified_inventory.register_page("craftguide", {
 | 
				
			|||||||
		end
 | 
							end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if alternates and alternates > 1 then
 | 
							if alternates and alternates > 1 then
 | 
				
			||||||
			formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"..S(recipe_text[dir]).." "
 | 
								formspec = formspec.."label[5.5,"..(formspecy + 1.6)..";"
 | 
				
			||||||
					..tostring(alternate).." of "
 | 
										..string.format(S(recipe_text[dir]), alternate, alternates).."]"
 | 
				
			||||||
					..tostring(alternates).."]"
 | 
					 | 
				
			||||||
					.."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]"
 | 
										.."button[5.5,"..(formspecy + 2)..";2,1;alternate;" .. S("Alternate") .. "]"
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
		return {formspec = formspec}
 | 
							return {formspec = formspec}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user