WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 3 years ago

#33294 closed defect (bug) (worksforme)

Language files saved in wrong location

Reported by: concatenate Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.4
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:

Description

After updating the NL language files for Akismet and Twenty Fifteen, the update notice does not disappear. After checking I saw that the files ended up in /wp-content/plugins/ instead of /wp-content/languages/plugins/

It have a clean install with Akismet as the only plugin installed and besides Twenty Fifteen there is one other theme, Firmness, installed on which I am building a child theme.

This is not a duplicate of #33244, I think.

Change History (6)

#1 @concatenate
5 years ago

After manually creating a plugins and themes directory in /wp-content/languages and moving the uploaded language files from /wp-content/plugins/ and /wp-content/themes/ (this is were the Twenty Fifteen language files were stored) to the newly created respective directories in /wp-content/languages/, the update notice disappeared.

#2 @ocean90
5 years ago

  • Keywords reporter-feedback added

Hello concatenate, thanks for your report.

Do you mean by /wp-content/plugins/ the root of the plugins directory or a directory of a specific plugin like /wp-content/plugins/akismet/? Can you reproduce this on another clean install and/or with WordPress 4.3 RC2?

#3 @concatenate
4 years ago

  • Keywords reporter-feedback removed

Sorry for my late reply, I forgot to turn on Watch Ticket.

The .po and .mo files end up in the root of the plugins directory or themes directory respectively.
Just checked it again and also on a domain with WP 4.3 installed. I deleted twentyfifteen theme and removed the themes directory from the /wp-content/languages/

Again, creating a new themes directory in /wp-content/languages/ and moving the .mo and .po files solved the problem. After moving the files I did still have to click the update languages button, but after that the button disappeared as expected.

Only checked with theme this time.

#4 follow-up: @ocean90
3 years ago

  • Keywords reporter-feedback added

@concatenate Is this still an issue? What's the value of the WP_LANG_DIR constant?

#5 in reply to: ↑ 4 @concatenate
3 years ago

Replying to ocean90:

@concatenate Is this still an issue? What's the value of the WP_LANG_DIR constant?

I completely forgot about this ticket. As far as I see it now, it doesn't occur anymore.
That said, I am not in the position to test it now, but if it will come up again, I will add it to this ticket.

#6 @dd32
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Marking as worksforme pending feedback that this has happened to others.

Note: See TracTickets for help on using tickets.