Comments (6)
Hi there, as per our guidelines on how to write clear bug reports, could you please share the output of wp cli info
?
Also, what's the output if you run the command with the --debug
flag? e.g. wp i18n make-pot . /languages/ai-comment-creator.pot --slug=ai-comment-creator --debug
That line in the code tries to create the languages
directory with 0777 permissions if it doesn't exist yet. (though not sure why explicitly 777)
You can try manually creating that directory, either with simple mkdir languages
or mkdir -m 0777 languages
. If that fails, you do have some chmod permission issues. If not, then wp i18n make-pot
should succeed.
Aside: curious, is this your plugin? https://wordpress.org/plugins/ai-comment-creator/
If so, there shouldn't be a need to use this command, as WordPress.org handles all the translation stuff for you. So curious about your use case.
from i18n-command.
Update
Actually, I just re-read your command and the issue is the location of your destination directory.
wp i18n make-pot . /languages/ai-comment-creator.pot
That means you are pointing at the languages
folder in the root directory. The root is no longer writable in macOS.
You'll need to use a relative path, e.g. wp i18n make-pot . ./languages/ai-comment-creator.pot
.
That said, you can actually simply omit the destination, as ./languages/ai-comment-creator.pot
is the default location determined by the command. So simply running wp i18n make-pot .
should work just fine.
from i18n-command.
Hi there, as per our guidelines on how to write clear bug reports, could you please share the output of
wp cli info
?Also, what's the output if you run the command with the
--debug
flag? e.g.wp i18n make-pot . /languages/ai-comment-creator.pot --slug=ai-comment-creator --debug
That line in the code tries to create the
languages
directory with 0777 permissions if it doesn't exist yet. (though not sure why explicitly 777)You can try manually creating that directory, either with simple
mkdir languages
ormkdir -m 0777 languages
. If that fails, you do have some chmod permission issues. If not, thenwp i18n make-pot
should succeed.Aside: curious, is this your plugin? https://wordpress.org/plugins/ai-comment-creator/ If so, there shouldn't be a need to use this command, as WordPress.org handles all the translation stuff for you. So curious about your use case.
Hello,
Yes, that plugin is mine. I noticed that wordpress.org has a translate feature. but this felt extremely slow and cumbersome. Maybe there is a practical way that I don't know about.
from i18n-command.
All plugins hosted on WordPress.org will get the community-provided translations from translate.wordpress.org. There is no need to provide your own. And if you do, the ones from dotorg will take precedence if they exist.
from i18n-command.
My plugin is very small, so I don't have a community to get translation help from. I want to translate it myself on wordpress.org, but it gets stuck waiting. I think I need to confirm it myself, but I couldn't figure out how to do it.
from i18n-command.
You‘ll need to ask someone from the translation team for that language to approve the translations. You can also become a translation editor for your own plugin and language as well by posting on make.wordpress.org/polyglots.
I recommend reading their handbook
from i18n-command.
Related Issues (20)
- make-pot failing to parse specific JavaScript code HOT 8
- Missing file name and line numbers in POT file HOT 8
- PHP 8.2 - PHP Deprecated: Use of "static" in callables is deprecated in ...i18n-command/src/IterableCodeExtractor.php on line 245/246
- update-po: Doesn't preserve / create X-Domain header of .pot file HOT 3
- sokirka HOT 1
- `make-mo`: Add option to specify filename HOT 8
- Add tests verifying generated translation files work as intended
- PHP Warning: foreach() argument must be of type array|object, HOT 3
- Consider adding file reference for strings extracted from file headers
- Document example of how to format the --headers parameter in the `i18n make-pot` command HOT 1
- Are file references for plugin/theme headers supposed to be absolute paths? HOT 1
- wp i18n make-php - Expectations HOT 2
- wp i18n make-pot: Support PHP8 named parameters HOT 1
- Author URI of the plugin translation string in generated POT file HOT 3
- Issues parsing PO files without empty lines HOT 15
- make-php - Make output file content pretty HOT 2
- Incorrect POT license info for themes without a license in the header HOT 1
- PHP deprecated notices in Unit test
- make-pot not working for my project HOT 14
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 i18n-command.