luci-base: po2lmo: refactor code
authorJo-Philipp Wich <jo@mein.io>
Sat, 1 Feb 2020 13:29:23 +0000 (14:29 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 1 Feb 2020 13:41:07 +0000 (14:41 +0100)
commit2a1245a4970c2655fda10c51a6be4973f3e2ce84
treee210d7d67f48707572606d90a6c3d68d779855d1
parent8d8c26e11f2df4665f261fe5fb048c808d13f57c
luci-base: po2lmo: refactor code

Refactor the po2lmo conversion code to be more robust and to properly
handle input files without location comments.

Ref: https://github.com/openwrt/luci/commit/9c1bac4168d151c2a3a5a1f957adbd68b6ae0746#commitcomment-37036663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/src/po2lmo.c