Make WordPress Core

#63112 closed defect (bug) (worksforme)

Translation bug in wordpress 6.7.2

Reported by: mwenell Owned by:
Priority: normal Milestone:
Component: I18N Version: 6.7.2
Severity: normal Keywords:
Cc: Focuses:

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 (5)

#1 @SergeyBiryukov
19 months ago

  • Component General → I18N

#2 @sabernhardt
19 months ago

  • Description modified (diff)

#3 @sainathpoojary
19 months 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
19 months 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?

#5 @swissspidy
18 months ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed

The "Log out" string definitely exists on translate.wordpress.org.

If you have troubles with Loco Translate it's better to report that there.

Note: See TracTickets for help on using tickets.