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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit7de3420215bad45a7d721d96a88175496d453e1f
tree5932f88c461dafb8b1923427473ae524e3dc1b79
parent8fe8bfcc16d568f851dd0f2ef9c836f749259244
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>
(cherry picked from commit 2a1245a4970c2655fda10c51a6be4973f3e2ce84)
modules/luci-base/src/po2lmo.c