Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

649
Visualizações
How to update wordpress translations via wp-cli

I'm using docker with the wordpress:cli image to perform many actions like updating, activating themes and plugins, etc, on the system.

I come up with a brand new updated system that has everything in it I want, except for the translations. Wordpress-admin informs me that there are updates for translations and I can manually click and update but I obviously want to continue with the cli-style.

Is there any command to achieve such? Following the documentation

(e.g. https://developer.wordpress.org/cli/commands/language)

I cannot find anything.

Can this be done in any way?

TIA

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

A bit belated, but it seems that the answer depends on which translations are out of date (core, theme or plugin).

The following two commands did the trick for me :

wp language plugin --all update
wp language theme --all update

Hope that helps.

over 4 years ago · Santiago Trujillo Relatório

0

To determine what is even installed:

wp language plugin list --status=installed --all
wp language plugin list buddypress

It seems that all plugins need to support the current site language, because when switching the site language from en_GB to en_US, the update notice suddenly went away - despite everything else failed so far.

over 4 years ago · Santiago Trujillo Relatório

0

Despite the "active" status of wp language plugin list --all, translations may be not really installed. I finally managed it with this for the es_ES sites:

wp language plugin install --all es_ES

The Admin panel missage dissapears and some unworking translations runs fine.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda