Comments (9)
Sorry, I have been away for the weekend. It's probably a bug introduced in #17
I will look into it when I have the time.
from wp-pot.
This is probably some problem with the npm5 cache since it builds fine in travis.
Please do this steps to try installing again:
- Remove package-lock.json
- Remove node_modules directory
- Flush npm cache
npm cache clean --force
- Install again
from wp-pot.
- did the steps and I have the latest version of wp-pot, but still some strings dropped from the final pot file.
- strange that wp-pot also catches another strings from the same source files.
- here's a screenshot when I'm trying to update the po file from generated pot by w-pot via gulp:
new strings (21) are correct, but obsolete (35) are not.
from wp-pot.
I have the same problem with the latest version (I'm using gulp wrapper for wp-pot). Suddenly some of the strings are not parsed (but few days ago it was working perfectly)
Here is a snippet of my code (I'm using cmb2 to create metaboxes)
So this is working (string is parsed and added to .pot file):
$custom_metabox = new_cmb2_box( array(
'title' => __( 'Some string', 'textdomain' ),
) );
But when I add field to cmb2 like this, the string is not added into .pot file:
$custom_metabox->add_field( array(
'title' => __( 'Some string', 'textdomain' ),
) );
I was playing with it a little and it seems that the ->
is doing something wrong...
from wp-pot.
No response?!
from wp-pot.
@rasmusbe Thank you 👍
from wp-pot.
effectively, this stopped my work flow! 😅
from wp-pot.
Version 1.3.3 contains a fix
from wp-pot.
thanks a million.
from wp-pot.
Related Issues (20)
- Option to disable comments in result HOT 4
- An in-range update of php-parser is breaking the build 🚨 HOT 1
- wp_pot ignoring certain i18n locations HOT 4
- Strings marked for translation in ternary statements don't get picked up for i18n HOT 1
- Parsing error HOT 2
- Empty localized strings generates an invalid .pot file HOT 2
- Dependency Dashboard
- Strings inside ternary operators are not detected HOT 1
- Invalid and Duplicate Headers
- Duplicate translator hint comments HOT 4
- Feature: Line wrapping HOT 1
- can you please guide how can use this with php
- Calls to `__` function inside of PHP `match` statements are not added to .pot file. HOT 3
- wp-pot : The system cannot find the file specified.
- Support for block.json
- An in-range update of eslint-config-standard is breaking the build 🚨 HOT 1
- Support JavaScript Sources HOT 3
- Option to update the existing po files. HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 1
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 wp-pot.