René's URL Explorer Experiment


Title: Incorrect language installation status when plugin's slug is different from its text domain · Issue #136 · wp-cli/language-command · GitHub

Open Graph Title: Incorrect language installation status when plugin's slug is different from its text domain · Issue #136 · wp-cli/language-command

X Title: Incorrect language installation status when plugin's slug is different from its text domain · Issue #136 · wp-cli/language-command

Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When listing available languages for a plugin using the wp ...

Open Graph Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When listing availa...

X Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When listing availa...

Opengraph URL: https://github.com/wp-cli/language-command/issues/136

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect language installation status when plugin's slug is different from its text domain","articleBody":"## Bug Report\r\n\r\n- [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\r\n- [x] Yes, more specifically, I reviewed the guidelines on [how to write clear bug reports](https://make.wordpress.org/cli/handbook/bug-reports/).\r\n\r\n**Describe the current, buggy behavior**\r\n\r\nWhen listing available languages for a plugin using the `wp language plugin list \u003cplugin>` command, the status is always `uninstalled` if the plugin's slug ≠ plugin's text domain.\r\n\r\nThis is due to the [wp_get_installed_translations()](https://developer.wordpress.org/reference/functions/wp_get_installed_translations/) method used in https://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/WP_CLI/CommandWithTranslation.php#L251-L257\r\n\r\n`wp_get_installed_translations()` returns an array keyed by the text domain. As a result, the subsequent check for available languages (`$available   = ! empty( $available[ $slug ] ) ? array_keys( $available[ $slug ] ) : array();`) results in an empty array if the plugin's slug is different from its text domain.\r\n\r\n`get_installed_languages()` is used by the `list` command: https://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/Plugin_Language_Command.php#L92-L153\r\n\r\nThat's where the following check (against an empty `$installed_translations` array returned by `get_installed_languages()`) results in the `uninstalled` value: https://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/Plugin_Language_Command.php#L125\r\n\r\nA solution is to account for the discrepancy between plugin slugs and text domains in the `get_installed_languages()` method.","author":{"url":"https://github.com/mrcasual","@type":"Person","name":"mrcasual"},"datePublished":"2023-12-01T18:25:03Z","url":"https://github.com/wp-cli/language-command/issues/136"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75cb9d0e-9c9d-3a98-929c-41cc1e3bb1dc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC066:1BB36A:12B100D:198ABCD:6AFB6C3B
html-safe-nonce6eade460a4a51a54af6a4f00a8481258ce9aa64a50724ccc46a13a4094403222
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDY2OjFCQjM2QToxMkIxMDBEOjE5OEFCQ0Q6NkFGQjZDM0IiLCJ2aXNpdG9yX2lkIjoiNzIzMTI5MzgxODM1OTkyMTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac926c14372a6180e67686620e0dd1a8dcce28994d6b7dd44fb7e0018686b43da5
hovercard-subject-tagissue:2021381538
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/language-command/136/issue_layout
twitter:imagehttps://opengraph.githubassets.com/de4f3550a490a95fced40d8407a00f0258ca1b6fba7173ec4715df19cf3e2a94/wp-cli/language-command/issues/136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de4f3550a490a95fced40d8407a00f0258ca1b6fba7173ec4715df19cf3e2a94/wp-cli/language-command/issues/136
og:image:altBug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When listing availa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemrcasual
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
go-importgithub.com/wp-cli/language-command git https://github.com/wp-cli/language-command.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id87954652
octolytics-dimension-repository_nwowp-cli/language-command
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id87954652
octolytics-dimension-repository_network_root_nwowp-cli/language-command
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/wp-cli/language-command/issues/136#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Flanguage-command%2Fissues%2F136
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Flanguage-command%2Fissues%2F136
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wp-cli%2Flanguage-command
Reloadhttps://github.com/wp-cli/language-command/issues/136
Reloadhttps://github.com/wp-cli/language-command/issues/136
Reloadhttps://github.com/wp-cli/language-command/issues/136
wp-clihttps://github.com/wp-cli
language-commandhttps://github.com/wp-cli/language-command
Codehttps://github.com/wp-cli/language-command
Issues1 (1)https://github.com/wp-cli/language-command/issues
Pull requests2 (2)https://github.com/wp-cli/language-command/pulls
Actionshttps://github.com/wp-cli/language-command/actions
Security and qualityhttps://github.com/wp-cli/language-command/security
Insightshttps://github.com/wp-cli/language-command/pulse
https://github.com/wp-cli/language-command
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/language-command/issues/136
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/language-command/issues/136
#171https://github.com/wp-cli/language-command/pull/171
Incorrect language installation status when plugin's slug is different from its text domainhttps://github.com/wp-cli/language-command/issues/136#top
#171https://github.com/wp-cli/language-command/pull/171
https://github.com/copilot-swe-agent
command:language-plugin-listRelated to 'language plugin list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-plugin-list%22
command:language-theme-listRelated to 'language theme list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-theme-list%22
https://github.com/mrcasual
mrcasualhttps://github.com/mrcasual
on Dec 1, 2023https://github.com/wp-cli/language-command/issues/136#issue-2021381538
contribution guidelineshttps://make.wordpress.org/cli/handbook/contributing/
how to write clear bug reportshttps://make.wordpress.org/cli/handbook/bug-reports/
wp_get_installed_translations()https://developer.wordpress.org/reference/functions/wp_get_installed_translations/
language-command/src/WP_CLI/CommandWithTranslation.phphttps://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/WP_CLI/CommandWithTranslation.php#L251-L257
24f76e3https://github.com/wp-cli/language-command/commit/24f76e35f477887d09f1fd40a60d9011a6da18bf
language-command/src/Plugin_Language_Command.phphttps://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/Plugin_Language_Command.php#L92-L153
24f76e3https://github.com/wp-cli/language-command/commit/24f76e35f477887d09f1fd40a60d9011a6da18bf
language-command/src/Plugin_Language_Command.phphttps://github.com/wp-cli/language-command/blob/24f76e35f477887d09f1fd40a60d9011a6da18bf/src/Plugin_Language_Command.php#L125
24f76e3https://github.com/wp-cli/language-command/commit/24f76e35f477887d09f1fd40a60d9011a6da18bf
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
on Dec 2, 2023https://github.com/wp-cli/language-command/issues/136#issuecomment-1837119616
https://github.com/mrcasual
mrcasualhttps://github.com/mrcasual
on Dec 2, 2023https://github.com/wp-cli/language-command/issues/136#issuecomment-1837153306
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
on Dec 2, 2023https://github.com/wp-cli/language-command/issues/136#issuecomment-1837163799
swissspidyhttps://github.com/swissspidy
command:language-plugin-listRelated to 'language plugin list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-plugin-list%22
command:language-theme-listRelated to 'language theme list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-theme-list%22
on Dec 2, 2023https://github.com/wp-cli/language-command/issues/136#event-11129129910
https://github.com/mrcasual
mrcasualhttps://github.com/mrcasual
on Dec 2, 2023https://github.com/wp-cli/language-command/issues/136#issuecomment-1837191873
get_translations_update()https://github.com/wp-cli/language-command/blob/main/src/WP_CLI/CommandWithTranslation.php#L144-L196
swissspidyhttps://github.com/swissspidy
Copilothttps://github.com/apps/copilot-swe-agent
on Nov 8, 2025https://github.com/wp-cli/language-command/issues/136#event-20808576381
swissspidyhttps://github.com/swissspidy
completedhttps://github.com/wp-cli/language-command/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#171https://github.com/wp-cli/language-command/pull/171
on Jan 21, 2026https://github.com/wp-cli/language-command/issues/136#event-22188686425
Sign up for freehttps://github.com/signup?return_to=https://github.com/wp-cli/language-command/issues/136
Sign in to commenthttps://github.com/login?return_to=https://github.com/wp-cli/language-command/issues/136
Copilothttps://github.com/apps/copilot-swe-agent
command:language-plugin-listRelated to 'language plugin list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-plugin-list%22
command:language-theme-listRelated to 'language theme list' commandhttps://github.com/wp-cli/language-command/issues?q=state%3Aopen%20label%3A%22command%3Alanguage-theme-list%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.