Don't translate wordcamp statuses in logs #1300
Labels
[Component] Reports
[Type] Bug
[Type] Internationalization
Issues related to i18n or handling non-English languages or content
Describe the bug
On https://central.wordcamp.org/reports/wordcamp-status-report/ a PHP Notice is being triggered:
This is caused by
$active_camp
containing this data:'latest_status'
is empty, as the new status is extracted from the log text, expecting that it's only in English.wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-base-status.php
Lines 77 to 121 in d151fcd
When logging, the post status should use the english non-translated text, or, it should log the IDs in the metadata for it.
This is more than just a PHP Notice; this means that others have to translate the logs to see what changed.
To reproduce
Steps to reproduce the behavior:
Expected behavior
English logs.
WordCamp
https://central.wordcamp.org/wp-admin/post.php?post=5701004&action=edit
The text was updated successfully, but these errors were encountered: