Skip to content

Using Addon "Component discovery" - can't get the "Regular expression to match translation files against" right #12021

Answered by brianread108
brianread108 asked this question in Q&A
Discussion options

You must be logged in to vote

ok, after a lot more research and also asking chatGPT, I got this to work:

^root/usr/share/smanager/lib/SrvMngr/I18N/Modules/(?P<component_cap>[A-Z][a-zA-Z]*)/pofiles/(?P<component>[a-z]+)_(?P[a-z]{2}).po$

I've not come across the ?P<name> structure before. The docs could do with an example or two.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nijel
Comment options

Answer selected by brianread108
Comment options

You must be logged in to vote
1 reply
@nijel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants