Make WordPress Core

Opened 5 weeks ago

Last modified 4 weeks ago

#63112 new defect (bug)

Translation bug in wordpress 6.7.2

Reported by: mwenell's profile mwenell Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7.2
Component: I18N Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

Hi,

the original .pot in WordPress is missing "Log out" translation. It has "Log Out" but WordPress block "Login/out" is using "Log out" instead of "Log Out".

Cannot translate the login/out with Loco Translate.

SOLUTIONS:

1) Change all __("log out" ... to be __("log Out" ... in the code

2) Add into .pot "Log out" as well

Change History (4)

#1 @SergeyBiryukov
5 weeks ago

  • Component changed from General to I18N

#2 @sabernhardt
5 weeks ago

  • Description modified (diff)

#3 @sainathpoojary
5 weeks ago

Hey everyone!

I found this one instance of Log out in wp_loginout function
https://github.com/wordpress/wordpress-develop/blob/d6e3b8a9e20aa31f039a21e1d99f79695764f71f/src/wp-includes/general-template.php#L388-L389

I was exploring the solution mentioned above. However, Log in in the same function is not capitalized. If we change Log out to Log Out it may create inconsistency. I was wondering if you might have any suggestions for how to address this?

#4 @mwenell
4 weeks ago

My opinion is that we should not change "log out" to "Log Out". It's better to keep it consistent with "log in", as used in the same function you pointed out above.

I believe the actual bug is that this "Log out" string is not included in the WordPress translation files. I'm not sure who is responsible for adding those strings or how the process works. With plugins, it's simple — you include all the translatable strings in the .pot file, and they're available for translation.

Who would be able to add this "Log out" string to the WordPress translation files?

Note: See TracTickets for help on using tickets.