Giter Club home page Giter Club logo

Comments (4)

LeoColomb avatar LeoColomb commented on September 14, 2024

Hi @leogermani, thanks for your question.

My problem is that the NOOPTranslations class is not beeing loaded

Is this a error thrown while you try to execute some script or a "personnal" requirement to work with NOOPTranslations?

In case of an error, please post the full report! 😺

from pomo.

leogermani avatar leogermani commented on September 14, 2024

I was just replicating the WordPress approach into my application for a translation method. When the domain is not loaded, the method returns a noop object instead, I was doing the same. But when it happens, NOOPTranslation Class is not found.

Its actually pretty easy to change the approach and not use the NOOPTranslations class, Im just trying to understand this and do it the right way.

from pomo.

LeoColomb avatar LeoColomb commented on September 14, 2024

Right, so this is an issue in your application, and not an issue of the POMO library at all.

NOOPTranslation Class is not found

Actually, it still impossible for me to help you without the full error output.


$translations = new MO();
if (!$translations->import_from_file($the_mo_filepath)) {
  $translations = new \POMO\Translations\NOOPTranslation();
}

$translations->translate($text)

from pomo.

leogermani avatar leogermani commented on September 14, 2024

Thanks anyway, It helped! I didnt found a support channel. cheers.

from pomo.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.