Title: [Plugin: Latest edits] Localization
Last modified: August 19, 2016

---

# [Plugin: Latest edits] Localization

 *  [yonat](https://wordpress.org/support/users/yonat/)
 * (@yonat)
 * [16 years ago](https://wordpress.org/support/topic/plugin-latest-edits-localization/)
 * Cool plugin.
 * I made some changes so that it will be automatically localized, and thought you
   may want to merge them into the next release:
 * Line 36, change:
    `echo "<tr><th>Title</th><th>Type</th><th>Edited</th><th>By
   </th></tr>\n";` To:
 *     ```
       echo '<tr>';
       foreach (array(__('Title'), __('Type'), __('Date'), __('by')) as $heading) {
       	echo "<th>$heading</th>";
       }
       echo "</tr>\n";
       ```
   
 * Line 57, remove the call to `__()` from
    `echo __($rows["post_title"]);`
 * Line 60, change:
    `echo "<td>{$rows["post_type"]}</td>\n";` To: `echo '<td>' .
   __( ucfirst($rows["post_type"]) ) . "</td>\n";`
 * in latest-edits.css remove the property `text-align: left;` (for right-to-left
   languages).
 * Actually, my own preference for the css is:
 *     ```
       #latest_edits td, #latest_edits th {
       	padding: 2px 5px;
       	border-bottom: 1px solid #ddd;
       }
       ```
   
 * Maybe you’ll like it better too.
 * You may also want to consider limiting who can see this widget, so that mere 
   subscribers will not get to see too much of what’s happening behind the curtain.
   For example, you may want to paste this in the beginning of atest_edits_init():
 *     ```
       if ( !current_user_can( 'edit_pages' ) )
       	return;
       ```
   
 * Other than that, it works great. Thanks!
 * [http://wordpress.org/extend/plugins/latest-edits/](http://wordpress.org/extend/plugins/latest-edits/)

The topic ‘[Plugin: Latest edits] Localization’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [yonat](https://wordpress.org/support/users/yonat/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/plugin-latest-edits-localization/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
