{"action":"opened","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/7450","repository_url":"https://api.github.com/repos/minetest/minetest","labels_url":"https://api.github.com/repos/minetest/minetest/issues/7450/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/7450/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/7450/events","html_url":"https://github.com/minetest/minetest/issues/7450","id":332672983,"node_id":"MDU6SXNzdWUzMzI2NzI5ODM=","number":7450,"title":"label[] breaks multiline translations","user":{"login":"MineWitherMC","id":18210824,"node_id":"MDQ6VXNlcjE4MjEwODI0","avatar_url":"https://avatars0.githubusercontent.com/u/18210824?v=4","gravatar_id":"","url":"https://api.github.com/users/MineWitherMC","html_url":"https://github.com/MineWitherMC","followers_url":"https://api.github.com/users/MineWitherMC/followers","following_url":"https://api.github.com/users/MineWitherMC/following{/other_user}","gists_url":"https://api.github.com/users/MineWitherMC/gists{/gist_id}","starred_url":"https://api.github.com/users/MineWitherMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MineWitherMC/subscriptions","organizations_url":"https://api.github.com/users/MineWitherMC/orgs","repos_url":"https://api.github.com/users/MineWitherMC/repos","events_url":"https://api.github.com/users/MineWitherMC/events{/privacy}","received_events_url":"https://api.github.com/users/MineWitherMC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T07:31:06Z","updated_at":"2018-06-15T07:31:06Z","closed_at":null,"author_association":"NONE","body":"##### Issue type\r\n - Bug report\r\n \r\n##### Minetest version\r\n```\r\nminetest-0.5.0-dev-9a1d3584\r\n```\r\n\r\n##### Summary\r\n`label[x,y;text]` element breaks `minetest.get_translation` when the latter has line breaks.\r\n\r\n##### Steps to reproduce\r\nWrite a following mod:\r\n```lua\r\nlocal S = minetest.get_translator(\"test\")\r\n\r\nminetest.register_on_joinplayer(function(player)\r\n\tminetest.show_formspec(player:get_player_name(), \"test\", ([[\r\n\t\tsize[4,4]\r\n\t\tlabel[0,0;%s]\r\n\t\ttextarea[0,2;4,2;;;%s]\r\n\t]]):format(S\"A@nB@nC\", S\"A@nB@nC\"))\r\nend)\r\n```\r\n\r\n#### Expected Behavior\r\nBoth strings are translated into the same one or give a single warning.\r\n\r\n#### Actual Behavior\r\nIf translation for `A@nB@nC` is present, only textarea is translated. I get 2 warnings about this:\r\n```\r\n2018-06-15 10:24:31: WARNING[Main]: Translations: can't find translation for string \"A\" in textdomain \"test\"\r\n2018-06-15 10:24:31: WARNING[Main]: Translations: can't find translation for string \"A\r\n2018-06-15 10:24:31: WARNING[Main]: B\r\n2018-06-15 10:24:31: WARNING[Main]: C\" in textdomain \"test\"\r\n```\r\nFirst one is because of Label, second is because of Textarea.\r\n"}}
{"actor":{"display_login":"MineWitherMC"}}