Questions tagged [pot]
12 questions
9
votes
2 answers
How to auto-generate POT file from a Wordpress plugin PHP file?
I am working on a Wordpress plugin and noticed that the main PHP file - let's just call it blah.php - contains calls such as:
100:
101:
...
It is accompanied by a blah.pot file in languages…

Jonathan
- 32,202
- 38
- 137
- 208
3
votes
1 answer
gettext: how to avoid fail at unicode character?
Here's a python file that causes gettext to fail at the unicode character code \u2191.
texts = {
'first': _(u'Hello world'),
'fails': _(u'Arrow: \u2191'), # This code causes problems for gettext
'omitted': _(u'Innocent string…

Jonas Lindeløv
- 5,442
- 6
- 31
- 54
2
votes
0 answers
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 this.
MO file is generated with Loco Translate…

user16872971
- 21
- 3
2
votes
1 answer
git and po and pot files: I don't know how to stop large diffs in my commits, workflow suggestions?
I want to submit a PR to a github-hosted project (timeshift) that uses po and pot files for translation. I have never encountered these before. One of my changes is to UI (this is backup software and I've added an option to skip jobs when the…

Tim Richardson
- 6,608
- 6
- 44
- 71
1
vote
1 answer
How do I merge POT and PO files so that I exclude entries that are not in the POT file?
In short, I am trying to find a way to create a new PO file from a new POT and an existing PO file - but I want to exclude any strings (and their translations) that are not in the POT file.
Every time we change the wording on our cakePHP site, we…

Alex Nich
- 23
- 1
- 7
1
vote
0 answers
Knob control of servo with rfid
#include
#include
#include
Servo myservo;
int potpin = 0;
int val;
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup() {
Serial.begin(115200);
SPI.begin();
…

Shanmugaraja
- 11
- 2
1
vote
0 answers
wppot gulp change path
I have next compiled code:
#: path/from/gulp-folder/to/project-folder/tpl.default.php:121
msgid "Email"
msgstr ""
But I need:
#: tpl.default.php:121
msgid "Email"
msgstr ""
My gulp task:
return gulp.src( pathToProject + '/**/*' )
…

WP Punk
- 1,344
- 9
- 25
0
votes
1 answer
Prevent prepopulation of msgstr values in new PO files generated via msginit program of gettext
By default, when generating a PO file using the msginit command of the gettext package according to their source, the
msgstr values are prepopulated with the corresponding msgid values, so you get sth like this in your PO file..:
#. Message for…

DevelJoe
- 856
- 1
- 10
- 24
0
votes
0 answers
AssertionError: Dimension mismatch, check dimensions of M with a and b when using pot library
I am trying to solve a simple problem where given an array of values for bakery and cafe calculating cost matrix using optimal transport library. But I was having a dimension mismatch error. as I am new to pot(python optimal transport) library I was…
0
votes
1 answer
Programming the MCP4141 digital potentiometer in STM32CUBEIDE by SPI port
I am trying to program a Microchip MCP4141 digital potentiometer with the STM32CUBEIDE development environment using a NUCLEO F334R8 board. I am sending a 16 bit command through the SPI communications port. When I send the command byte with the data…
0
votes
0 answers
Finding peaks in time series with duration condition
I was wondering if anybody could help. If I had a data set containing two columns of date and river flow, how could I obtain the top 100 largest values of river flow, with the condition of having at least a duration of XX days (e.g. 14 days) between…
0
votes
2 answers
Distributing side pots in poker
Hi I am developing a poker application and I am having some trouble distributing side pots.
The main issue is that I don't know how to distribute chips of players who have folded(dead chips).
Now my code does the following:
Get the minimum bet of…

angelmc
- 23
- 2