Giter Club home page Giter Club logo

Comments (6)

swissspidy avatar swissspidy commented on September 2, 2024

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.

swissspidy avatar swissspidy commented on September 2, 2024

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.

berkbirkan avatar berkbirkan commented on September 2, 2024

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.

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.

swissspidy avatar swissspidy commented on September 2, 2024

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.

berkbirkan avatar berkbirkan commented on September 2, 2024

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.

swissspidy avatar swissspidy commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.