lvgl / lv_i18n

Internationalization (i18n) for LVGL
MIT License
59 stars 17 forks source link

Subfodlers are not checked #14

Closed kisvegabor closed 5 years ago

kisvegabor commented 5 years ago

With lv_i18n extract -s './**.+(c|cpp|h|hpp)' -t './*.yml' the _("msgid") patterns are not found in the subfolders. I got No phrases to translate. With -s '.path/to/folder/*.+(c|cpp|h|hpp)' it's working.

puzrin commented 5 years ago

That's strange, probably wrong glob pattern.

Could you attach zip with sample and commands to run?

kisvegabor commented 5 years ago

Sure!

i18n_test.zip

lv_i18n extract -s './**.+(c|cpp|h|hpp)' -t './*.yml' finds the phrases only in source.c and not in source_dir.c and source_dir2.c

puzrin commented 5 years ago

https://github.com/isaacs/node-glob#readme

Change search path to this: lv_i18n extract -s './**/*.+(c|cpp|h|hpp)' -t './*.yml'

kisvegabor commented 5 years ago

Working, thanks!