mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
121 stars 58 forks source link

Support nested keys in yfm_keys (Markdown) #392

Closed rtsisyk closed 1 year ago

rtsisyk commented 1 year ago

Thanks for the great tool. It would be nice to add support for nested keys for --yfm_keys option:

title: "My title"
extra:
  menu_title: Home <!-- not supported currently

I took a look at implementation, but the code is too complex for me to patch it quickly. Please help.

https://github.com/mquinson/po4a/blob/8279b57c1d56c4afdb04f551b7e0a55acddf2069/lib/Locale/Po4a/TransTractor.pm#L1291-L1343

mquinson commented 1 year ago

Hello,

I have the feeling that this can be achieved with -o 'yfm_paths=extra menu_title' (and my commits of earlier today). Could you please test whether it's doing what you want and tell us?

Thanks, Mt

mquinson commented 1 year ago

I'm rather sure that my change is actually fixing your problem, so I'm closing this issue. Please feel free to reopen if I'm off track.

rtsisyk commented 1 year ago

I'm rather sure that my change is actually fixing your problem, so I'm closing this issue. Please feel free to reopen if I'm off track.

Yeah, -o 'yfm_paths=extra menu_title' does work. Thanks a lot!

zygisk-topjohnu commented 1 year ago

Press C button for 5 Second.