I am hoping that someone can point me in the right direction for this. I have a system that has default .po/.mo files located here: ./app/lang/es_ES/LC_MESSAGES/default.mo/.po. The system has a plugin system where the plugin's .po/.mo files could be loaded here as an example: ./app/plugins/helpdesk/languages/es_ES/LC_MESSAGES/helpdesk.mo/.po.

As you can see, they are in different locations for the same language, but carry different domains. Is it possible to load both .mo/.po files at the same time without conflicts?

I figured it out. I just needed to add an else statement to my function which would return dgettext or gettext.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.