Merge pull request #1331 from flatcap/master

Abbreviate the text for 'po' translation files.
This commit is contained in:
Christian Brabandt 2016-11-23 08:15:19 +01:00 committed by GitHub
commit 3ebd7ad64b

View File

@ -77,6 +77,7 @@ function! airline#extensions#po#stats()
endif
try
let b:airline_po_stats = '['. split(airline_po_stats, '\n')[0]. ']'
let b:airline_po_stats = substitute(b:airline_po_stats, ' \(message\|translation\)s*\.*', '', 'g')
catch
let b:airline_po_stats = ''
endtry