add_po.rb: support for @ in Language: line

for locales like sr_RS@latin.
This commit is contained in:
Moritz Bunkus 2015-09-29 20:43:45 +02:00
parent b260a88867
commit b228651d8d

View File

@ -16,7 +16,7 @@ module AddPo
map(&:chomp)
language = content.
map { |line| /^\" Language: \s+ ([a-z_]+)/ix.match(line) ? $1 : nil }.
map { |line| /^\" Language: \s+ ([a-z_.@]+)/ix.match(line) ? $1 : nil }.
compact.
first