Comments (4)
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.
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.
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.
Thanks anyway, It helped! I didnt found a support channel. cheers.
from pomo.
Related Issues (8)
- Test ticket from Code Climate
- [Warning] Deprecated: Implicit conversion from float to int loses precision HOT 1
- Refactor src/POMO/PO.php from a B on Code Climate
- [Error]: array_map() expects parameter 1 to be a valid callback, class 'PO' not found HOT 3
- Proposed changes to method comment_block() in PO.php HOT 3
- Misc: phpdoc desc comment
- Dependabot can't resolve your PHP dependency files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pomo.