64 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
22
views
translation with twig on custom mvc - mo file not loading?
I am at my wits' end: Twig translations seem to have stopped working, and I cannot find the culprit.
I am using a custom-built MVC framework with a Twig filter.
I can follow the code up to ...
1
vote
1
answer
340
views
Add .po and .mo format to WordPress
I needed to add some formats such as ico and svg in a part of the WordPress theme that I designed, which I did by placing the following code in the functions.php file:
function upload( $mime_types ) {
...
1
vote
1
answer
75
views
Upload the translation file from the template in WordPress (.mo and .po)
I want to put a function in the functions.php file so that when the user activates the template, all the files with .mo and .po extensions are copied to the wp-content\languages\themes path.
For this ...
0
votes
1
answer
109
views
.po and .mo files UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 7: ordinal not in range(128)
I have a Bot which im trying to make multilingual. Now when i try to run the command for the bot i get
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 7: ordinal not in range(128)
...
3
votes
1
answer
2k
views
How to open a MO gnu gettext file?
I am reviewing how to address multi-language support for documentation and messaging with a library. I found that the MASS package uses such support, and I wanted to review the how and why. For ...
0
votes
1
answer
2k
views
How to open two modals at the same time in react.js using MUi or tailwindcss
I want to implement the same functionality as the modals we see when we click on share some item on Google docs or Google drive..like the picture below please guide me on how can I implement that and ...
-3
votes
2
answers
1k
views
How to install modules on the shell automatically on repl.it using python
I am making a discord bot, for this I needed to make buttons for an embed, and to do that I needed to import a library. Once I imported it in the code replit would say that there is no module named ...
2
votes
0
answers
174
views
Problems with translating text including hyperlink in WordPress theme using mo file
Is this WordPress theme internationalization with hyperlink in it done right? I've spent whole day looking for fix to this but translation is not showing up on page. Only original English version of ...
0
votes
1
answer
1k
views
wordpress plugin translation does not work
i have created a plugin "translation_test" to test the translation capabilities of wordpress.
Translation files
in the languages directory there is a file translation_test.pot that contains:
...
0
votes
0
answers
388
views
Mongodb 'ref' does not reference schema
Model.js
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
var uniqueValidator = require('mongoose-unique-validator');
const bcrypt = require('bcrypt')
const UserSchema = new ...
1
vote
1
answer
594
views
Is there a command to generate all .mo files from multiple .po files?
I have multiple .po files in a standard directory structure of GNU gettext:
locales/
├── en_US
│ └── LC_MESSAGES
│ └── myapp.po
└── zh_TW
└── LC_MESSAGES
└── myapp.po
I knew that ...
1
vote
1
answer
534
views
Method to transfer weights between nested keras models
I'm trying to successively build up mixture models, iteratively adding sub-models.
I start by building and training a simple model. I then build a slightly more complex model that contains all of the ...
1
vote
1
answer
377
views
Flask-Babel | Reloading .mo files when Flask app running | Production
there is small problem with Flask web application. Right now I'm creating backend for one website and one of the task is to create translation panel in Flask-Admin. Website are using Flask-Babel for ...
2
votes
1
answer
13k
views
CUDA kernel failed : no kernel image is available for execution on the device, Error when running PyTorch model inside Google Compute VM
I have a docker image of a PyTorch model that returns this error when run inside a google compute engine VM running on debian/Tesla P4 GPU/google deep learning image:
CUDA kernel failed : no kernel ...
4
votes
1
answer
3k
views
Benefits of compiling po files to mo
What's the benefit and primary reason for compiling GNU gettext .po (Portable Object) files to .mo (Machine Object) ?
I saw many programs reading/parsing .po directly.
I'm not using wordpress but ...
Konrad's user avatar
- 7,367