summaryrefslogtreecommitdiff
path: root/pkg/netsurf/messages.awk
blob: 3315c3371ed7019fd0541fab487ffdbc883f54bb (plain)
1
2
3
4
5
6
7
8
9
/^(#|$)/ {next}
{
	i = index($0, ":")
	if (!i)
		next
	split(substr($0, 1, i - 1), key, ".")
	if (lang == key[1] && (filter == "any" || key[2] == "all" || key[3] == filter))
		print key[3] substr($0, i)
}