Thanks for your response, @alwaysblank !!!
Well — it’s the first time I’m attempting to implement a language localization in WP (I had the good fortune of spending years working in tandem with another dev who was bilingual, and who handled localization setup on the sites we built which needed it, so never had to tackle it myself… until now).
- Wordpress Multisite.
- English lang site is default, and has been live for a couple of years
- French lang site is on subdomain (fr.domain.com), and is set to french language (wplang = fr_FR)
- French lang site has been essentially parked, awaiting development and content resources for the past couple of years, but now needs to go live, leveraging the same theme as the EN/primary site on the network (but with different site content — my issue pertains only to theme/interface translation, NOT multilingual published content, as the content itself will be unique.
Thus far, I’ve imported the sage.pot file that comes with 8.5.4 in the
/lang folder into PoEdit, and implemented translations for all of the default strings — and subsequently saved out .po & .mo files from PoEdit, into the
/lang folder alongside the .pot file. Initial testing is showing that the translations aren’t being used when the page is viewed. My simple test case is the 404 template, which is showing the default/EN text, rather than the translated string from the files PoEdit generated.
Having perused the Sage 9 docs, and seeing that it’s necessary to create a Yarn task to render the lang files in that version, I’m assuming that there’s an equivalent/necessary configuration for Sage 8.5.4/Gulp? But I cant find any documentation on what’s required, if that’s the case — or what the solution is if that’s not it…?
Am I correct in assuming that once I do manage to get the above working properly, translating any custom strings that I’ve added to the theme is simply a matter of expanding the default sage translations (sage.po) to incorporate those new strings per my theme’s requirements?
Thanks again — this has been driving me a bit nuts.