How to apply translation to S2m

Hey !
I Try to upload the french .mo file everywhere it could be… Nothing works !
/plugins
/plugins/languages
/plugins/s2member/src/includes/translations
/wp-content/languages

And my WP is set on French in the general setings !
Well ! Any tips ?
thxxx

Hi Barbara :slight_smile:

Did you see this article? https://s2member.com/kb-article/translating-s2member-s2member-pro/

Did you try it here? /wp-content/plugins/ or maybe /wp-content/languages/plugins/.

Hey Cristian !
Yes I did read a lot of articles and tried every locations on the server…
I really dont understand why it’s not working !
… D’you have any other idea about technical details that could be a pb ?
thx !

It sounds like you’re doing everything right, but sometimes these things can be tricky.

Hello, did you find a solution in the end? I have the same issue with my website. Thanks in advance.

I found that s2Member’s translation loading could be more explicit and more compatible with current WordPress behavior, so I’ve patched that.

s2member-v260320.0101.zip (1.4 MB)

It may improve reliability for custom .mo files placed in either of these locations:

  • modern standard wp-content/languages/plugins/s2member-LOCALE.mo
  • legacy fallback wp-content/plugins/s2member-LOCALE.mo

That said, if a specific .mo file still fails after this change, the next likely cause is the file itself or a site-specific conflict, rather than the load path.

:slight_smile:

:slight_smile: