[Answer]-Translate url regex pattern for django internationalization

1👍

I think your msgid and msgstr are wrong here:

msgid "r^help/"
msgstr "r^ayuda/"

you’ve mistakenly included the r in front, but this is not actually part of the string of the url pattern…

notice that in the url pattern it is r"^help/" …the r prefix tells Python this is a raw string and to ignore any escape chars, which is a useful thing when working with regular expressions

Everything else looks right to me, from my reading of the docs, so I think you just need to change them to:

msgid "^help/"
msgstr "^ayuda/"

Leave a comment