Simple History - Version 0.5

Version Description

  • Added author to RSS
  • Added german translation, thanks http://www.fuerther-freiheit.info/
  • Added swedish translation, thanks http://jockegustin.se
  • Better support for translation
Download this release

Release Info

Developer eskapism
Plugin Icon 128x128 Simple History
Version 0.5
Comparing to
See all releases

Code changes from version 0.4 to 0.5

index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple History
4
  Plugin URI: http://eskapism.se/code-playground/simple-history/
5
  Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
6
- Version: 0.4
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -25,6 +25,8 @@ License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
 
 
28
  define( "SIMPLE_HISTORY_VERSION", "0.4");
29
  define( "SIMPLE_HISTORY_NAME", "Simple History");
30
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
@@ -39,10 +41,10 @@ add_action( 'wp_ajax_simple_history_ajax', 'simple_history_ajax' );
39
  function simple_history_ajax() {
40
 
41
  $type = $_POST["type"];
42
- if ($type == "All types") { $type = ""; }
43
 
44
  $user = $_POST["user"];
45
- if ($user == "By all users") { $user = ""; }
46
 
47
  $page = 0;
48
  if (isset($_POST["page"])) {
@@ -131,7 +133,7 @@ function simple_history_init() {
131
  <channel>
132
  <title><?php printf(__("Simple History for %s", 'simple-history'), get_bloginfo("name")) ?></title>
133
  <description><?php printf(__("WordPress History for %s", 'simple-history'), get_bloginfo("name")) ?></description>
134
- <link><?php echo get_bloginfo("siteurl") ?></link>
135
  <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
136
  <?php
137
  $arr_items = simple_history_get_items_array("items=10");
@@ -157,6 +159,7 @@ function simple_history_init() {
157
  <item>
158
  <title><![CDATA[<?php echo $item_title; ?>]]></title>
159
  <description><![CDATA[<?php echo $description ?>]]></description>
 
160
  <pubDate><?php echo date("D, d M Y H:i:s", strtotime($one_item->date)) ?> GMT</pubDate>
161
  <guid isPermaLink="false"><?php echo $item_guid ?></guid>
162
  </item>
@@ -194,7 +197,7 @@ function simple_history_init() {
194
 
195
  function simple_history_admin_init() {
196
 
197
- load_plugin_textdomain('simple-history', false, "/simple-history/languages");
198
 
199
  // posts
200
  add_action("save_post", "simple_history_save_post");
@@ -314,11 +317,11 @@ function simple_history_settings_field_rss() {
314
 
315
  function simple_history_activated_plugin($plugin_name) {
316
  $plugin_name = urlencode($plugin_name);
317
- simple_history_add("action=activated&object_type=plugin&object_name=$plugin_name");
318
  }
319
  function simple_history_deactivated_plugin($plugin_name) {
320
  $plugin_name = urlencode($plugin_name);
321
- simple_history_add("action=deactivated&object_type=plugin&object_name=$plugin_name");
322
  }
323
 
324
  function simple_history_edit_comment($comment_id) {
@@ -333,7 +336,8 @@ function simple_history_edit_comment($comment_id) {
333
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
334
  $str = urlencode($str);
335
 
336
- simple_history_add("action=edited&object_type=comment&object_name=$str&object_id=$comment_id");
 
337
  }
338
 
339
  function simple_history_delete_comment($comment_id) {
@@ -348,7 +352,8 @@ function simple_history_delete_comment($comment_id) {
348
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
349
  $str = urlencode($str);
350
 
351
- simple_history_add("action=deleted&object_type=comment&object_name=$str&object_id=$comment_id");
 
352
  }
353
 
354
  function simple_history_set_comment_status($comment_id, $new_status) {
@@ -363,15 +368,15 @@ function simple_history_set_comment_status($comment_id, $new_status) {
363
 
364
  $action = "";
365
  if ("approve" == $new_status) {
366
- $action = "approved";
367
  } elseif ("hold" == $new_status) {
368
- $action = "unapproved";
369
  } elseif ("spam" == $new_status) {
370
- $action = "marked as spam";
371
  } elseif ("trash" == $new_status) {
372
- $action = "trashed";
373
  } elseif ("0" == $new_status) {
374
- $action = "untrashed";
375
  }
376
 
377
  $action = urlencode($action);
@@ -379,7 +384,8 @@ function simple_history_set_comment_status($comment_id, $new_status) {
379
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
380
  $str = urlencode($str);
381
 
382
- simple_history_add("action=$action&object_type=comment&object_name=$str&object_id=$comment_id");
 
383
  }
384
 
385
  function simple_history_update_option($option, $oldval, $newval) {
@@ -448,25 +454,26 @@ function simple_history_updated_option3($option) {
448
  function simple_history_add_attachment($attachment_id) {
449
  $post = get_post($attachment_id);
450
  $post_title = urlencode(get_the_title($post->ID));
451
- simple_history_add("action=added&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
 
452
  }
453
  function simple_history_edit_attachment($attachment_id) {
454
  // is this only being called if the title of the attachment is changed?!
455
  $post = get_post($attachment_id);
456
  $post_title = urlencode(get_the_title($post->ID));
457
- simple_history_add("action=updated&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
458
  }
459
  function simple_history_delete_attachment($attachment_id) {
460
  $post = get_post($attachment_id);
461
  $post_title = urlencode(get_the_title($post->ID));
462
- simple_history_add("action=deleted&object_type=attachment&object_id=$attachment_id&object_name=$post_title");
463
  }
464
 
465
  // user is updated
466
  function simple_history_profile_update($user_id) {
467
  $user = get_user_by("id", $user_id);
468
  $user_nicename = urlencode($user->user_nicename);
469
- simple_history_add("action=updated&object_type=user&object_id=$user_id&object_name=$user_nicename");
470
  }
471
 
472
  // user is created
@@ -480,7 +487,7 @@ function simple_history_user_register($user_id) {
480
  function simple_history_delete_user($user_id) {
481
  $user = get_user_by("id", $user_id);
482
  $user_nicename = urlencode($user->user_nicename);
483
- simple_history_add("action=deleted&object_type=user&object_id=$user_id&object_name=$user_nicename");
484
  }
485
 
486
  // user logs in
@@ -494,14 +501,14 @@ function simple_history_wp_login($user) {
494
  } else {
495
  $user_id = $current_user->ID;
496
  }
497
- simple_history_add("action=logged_in&object_type=user&object_id=".$user->ID."&user_id=$user_id&object_name=$user_nicename");
498
  }
499
  // user logs out
500
  function simple_history_wp_logout() {
501
  $current_user = wp_get_current_user();
502
  $current_user_id = $current_user->ID;
503
  $user_nicename = urlencode($current_user->user_nicename);
504
- simple_history_add("action=logged_out&object_type=user&object_id=$current_user_id&object_name=$user_nicename");
505
  }
506
 
507
  function simple_history_delete_post($post_id) {
@@ -509,7 +516,7 @@ function simple_history_delete_post($post_id) {
509
  $post = get_post($post_id);
510
  if ($post->post_status != "auto-draft" && $post->post_status != "inherit") {
511
  $post_title = urlencode(get_the_title($post->ID));
512
- simple_history_add("action=deleted&object_type=post&object_subtype=" . $post->post_type . "&object_id=$post_id&object_name=$post_title");
513
  }
514
  }
515
  }
@@ -546,18 +553,23 @@ function simple_history_transition_post_status($new_status, $old_status, $post)
546
  //bonny_d($post); // regular post object
547
  if ($old_status == "auto-draft" && ($new_status != "auto-draft" && $new_status != "inherit")) {
548
  // page created
549
- $action = "created";
550
  } elseif ($new_status == "auto-draft" || ($old_status == "new" && $new_status == "inherit")) {
551
  // page...eh.. just leave it.
552
  return;
553
  } elseif ($new_status == "trash") {
554
- $action = "deleted";
555
  } else {
556
  // page updated. i guess.
557
- $action = "updated";
558
  }
559
  $object_type = "post";
560
  $object_subtype = $post->post_type;
 
 
 
 
 
561
  if ($object_subtype == "revision") {
562
  // don't log revisions
563
  return;
@@ -682,8 +694,9 @@ function simple_history_install() {
682
 
683
  #}
684
 
685
- simple_history_add("action=activated&object_type=plugin&object_name=$plugin_name");
686
-
 
687
  // also generate a rss secret, if it does not exist
688
  if (!get_option("simple_history_rss_secret")) {
689
  simple_history_update_rss_secret();
@@ -716,8 +729,8 @@ function simple_history_print_nav() {
716
 
717
  // add_query_arg(
718
  $link = esc_html(add_query_arg("simple_history_type_to_show", ""));
719
- #echo "<li>Filter by type: </li>";
720
- $str_types .= "<li $css><a href='$link'>All types</a> | </li>";
721
  foreach ($arr_types as $one_type) {
722
  $css = "";
723
  if ($one_type->object_subtype && $simple_history_type_to_show == ($one_type->object_type."/".$one_type->object_subtype)) {
@@ -782,7 +795,6 @@ function simple_history_print_nav() {
782
  $css = " class='selected' ";
783
  }
784
  $link = esc_html(add_query_arg("simple_history_user_to_show", ""));
785
- #echo "<li>Filter by user: </li>";
786
  $str_users .= "<li $css><a href='$link'>" . __("By all users", 'simple-history') ."</a> | </li>";
787
  foreach ($arr_users as $user_id => $user_info) {
788
  $link = esc_html(add_query_arg("simple_history_user_to_show", $user_id));
@@ -848,7 +860,11 @@ function simple_history_get_items_array($args) {
848
  }
849
  if ($simple_history_user_to_show) {
850
  $userinfo = get_user_by("slug", $simple_history_user_to_show);
851
- $where .= " AND user_id = '" . $userinfo->ID . "'";
 
 
 
 
852
  }
853
 
854
  $tableprefix = $wpdb->prefix;
@@ -882,12 +898,10 @@ function simple_history_get_items_array($args) {
882
  // so add it to the last element in arr_events
883
  $arr_events[$prev_row->id]->occasions[] = $one_row;
884
  } else {
885
-
886
-
887
-
888
  #echo "<br>real_loop_num: $real_loop_num";
889
  #echo "<br>loop_num: $loopNum";
890
-
891
  // check if we have a search. of so, only add if there is a match
892
  $do_add = FALSE;
893
  if ($search) {
@@ -1065,6 +1079,7 @@ function simple_history_print_history($args = null) {
1065
  $post_out .= "<span class='simple-history-title'>{$title}</span>";
1066
  $post_out .= "</a>";
1067
  }
 
1068
  if ("created" == $action) {
1069
  $post_out .= " " . __("created", 'simple-history') . " ";
1070
  } elseif ("updated" == $action) {
@@ -1072,8 +1087,9 @@ function simple_history_print_history($args = null) {
1072
  } elseif ("deleted" == $action) {
1073
  $post_out .= " " . __("deleted", 'simple-history') . " ";
1074
  } else {
 
1075
  $post_out .= " $action";
1076
- }
1077
 
1078
  $post_out = ucfirst($post_out);
1079
  echo $post_out;
@@ -1082,7 +1098,8 @@ function simple_history_print_history($args = null) {
1082
  } elseif ("attachment" == $object_type) {
1083
 
1084
  $attachment_out = "";
1085
- $attachment_out .= "attachment ";
 
1086
  $post = get_post($object_id);
1087
 
1088
  if ($post) {
@@ -1106,6 +1123,7 @@ function simple_history_print_history($args = null) {
1106
  }
1107
  }
1108
 
 
1109
  if ("added" == $action) {
1110
  $attachment_out .= " added ";
1111
  } elseif ("updated" == $action) {
@@ -1113,15 +1131,16 @@ function simple_history_print_history($args = null) {
1113
  } elseif ("deleted" == $action) {
1114
  $attachment_out .= " deleted ";
1115
  } else {
 
1116
  $attachment_out .= " $action ";
1117
- }
1118
 
1119
  $attachment_out = ucfirst($attachment_out);
1120
  echo $attachment_out;
1121
 
1122
  } elseif ("user" == $object_type) {
1123
  $user_out = "";
1124
- $user_out .= "user";
1125
  $user = get_user_by("id", $object_id);
1126
  if ($user) {
1127
  $user_link = "user-edit.php?user_id={$user->ID}";
@@ -1154,6 +1173,7 @@ function simple_history_print_history($args = null) {
1154
  $user_out .= "<span class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</span>";
1155
  }
1156
 
 
1157
  if ("created" == $action) {
1158
  $user_out .= " " . __("added", 'simple-history') . " ";
1159
  } elseif ("updated" == $action) {
@@ -1165,8 +1185,9 @@ function simple_history_print_history($args = null) {
1165
  } elseif ("logged_out" == $action) {
1166
  $user_out .= " " . __("logged out", 'simple-history') . " ";
1167
  } else {
 
1168
  $user_out .= " $action";
1169
- }
1170
 
1171
  $user_out = ucfirst($user_out);
1172
  echo $user_out;
@@ -1179,7 +1200,25 @@ function simple_history_print_history($args = null) {
1179
  } else {
1180
 
1181
  // unknown/general type
1182
- echo ucwords($object_type) . " $object_subtype <span class='simple-history-title'>\"$object_name\"</span> $action";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
 
1184
  }
1185
  echo "</div>";
@@ -1188,11 +1227,11 @@ function simple_history_print_history($args = null) {
1188
  // when
1189
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_row->date), $gmt=false);
1190
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_row->date), $gmt=false);
1191
- echo "By $who, ";
1192
  $now = strtotime(current_time("mysql"));
1193
  $diff_str = sprintf( __('%s ago'), human_time_diff(strtotime($one_row->date), $now) );
1194
  echo "<span class='when'>".$diff_str."</span>";
1195
- echo "<span class='when_detail'>$date_i18n_date at $date_i18n_time</span>";
1196
  echo "</div>";
1197
 
1198
  // occasions
3
  Plugin Name: Simple History
4
  Plugin URI: http://eskapism.se/code-playground/simple-history/
5
  Description: Get a log/history/audit log/version history of the changes made by users in WordPress.
6
+ Version: 0.5
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ load_plugin_textdomain('simple-history', false, "/simple-history/languages");
29
+
30
  define( "SIMPLE_HISTORY_VERSION", "0.4");
31
  define( "SIMPLE_HISTORY_NAME", "Simple History");
32
  define( "SIMPLE_HISTORY_URL", WP_PLUGIN_URL . '/simple-history/');
41
  function simple_history_ajax() {
42
 
43
  $type = $_POST["type"];
44
+ if ($type == __( "All types", 'simple-history' )) { $type = ""; }
45
 
46
  $user = $_POST["user"];
47
+ if ($user == __( "By all users", 'simple-history' )) { $user = ""; }
48
 
49
  $page = 0;
50
  if (isset($_POST["page"])) {
133
  <channel>
134
  <title><?php printf(__("Simple History for %s", 'simple-history'), get_bloginfo("name")) ?></title>
135
  <description><?php printf(__("WordPress History for %s", 'simple-history'), get_bloginfo("name")) ?></description>
136
+ <link><?php echo get_bloginfo("url") ?></link>
137
  <atom:link href="<?php echo $self_link; ?>" rel="self" type="application/rss+xml" />
138
  <?php
139
  $arr_items = simple_history_get_items_array("items=10");
159
  <item>
160
  <title><![CDATA[<?php echo $item_title; ?>]]></title>
161
  <description><![CDATA[<?php echo $description ?>]]></description>
162
+ <author><?php echo $user_nicename ?></author>
163
  <pubDate><?php echo date("D, d M Y H:i:s", strtotime($one_item->date)) ?> GMT</pubDate>
164
  <guid isPermaLink="false"><?php echo $item_guid ?></guid>
165
  </item>
197
 
198
  function simple_history_admin_init() {
199
 
200
+ // load_plugin_textdomain('simple-history', false, "/simple-history/languages");
201
 
202
  // posts
203
  add_action("save_post", "simple_history_save_post");
317
 
318
  function simple_history_activated_plugin($plugin_name) {
319
  $plugin_name = urlencode($plugin_name);
320
+ simple_history_add("action=" . __( 'activated', 'simple-history' ) . "&object_type=" . __('Plugin') . "&object_name=$plugin_name");
321
  }
322
  function simple_history_deactivated_plugin($plugin_name) {
323
  $plugin_name = urlencode($plugin_name);
324
+ simple_history_add("action=" . __( 'deactivated', 'simple-history' ) . "&object_type=" . __('Plugin') . "&object_name=$plugin_name");
325
  }
326
 
327
  function simple_history_edit_comment($comment_id) {
336
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
337
  $str = urlencode($str);
338
 
339
+ simple_history_add("action=" . __( 'edited', 'simple-history' ) . "&object_type=" . __('Comment') . "&object_name=$str&object_id=$comment_id");
340
+
341
  }
342
 
343
  function simple_history_delete_comment($comment_id) {
352
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
353
  $str = urlencode($str);
354
 
355
+ simple_history_add("action=" . __( 'deleted', 'simple-history' ) . "&object_type=" . __('Comment') . "&object_name=$str&object_id=$comment_id");
356
+
357
  }
358
 
359
  function simple_history_set_comment_status($comment_id, $new_status) {
368
 
369
  $action = "";
370
  if ("approve" == $new_status) {
371
+ $action = __( 'approved', 'simple-history' );
372
  } elseif ("hold" == $new_status) {
373
+ $action = __( 'unapproved', 'simple-history' );
374
  } elseif ("spam" == $new_status) {
375
+ $action = __( 'marked as spam', 'simple-history' );
376
  } elseif ("trash" == $new_status) {
377
+ $action = __( 'trashed', 'simple-history' );
378
  } elseif ("0" == $new_status) {
379
+ $action = __( 'untrashed', 'simple-history' );
380
  }
381
 
382
  $action = urlencode($action);
384
  $str = sprintf( "$excerpt [" . __('From %1$s on %2$s') . "]", $author, $post_title );
385
  $str = urlencode($str);
386
 
387
+ simple_history_add("action=$action&object_type=" . __('Comment') . "&object_name=$str&object_id=$comment_id");
388
+
389
  }
390
 
391
  function simple_history_update_option($option, $oldval, $newval) {
454
  function simple_history_add_attachment($attachment_id) {
455
  $post = get_post($attachment_id);
456
  $post_title = urlencode(get_the_title($post->ID));
457
+ simple_history_add("action=" . __( 'added', 'simple-history' ) . "&object_type=" . __('Attachment', 'simple-history') . "&object_id=$attachment_id&object_name=$post_title");
458
+
459
  }
460
  function simple_history_edit_attachment($attachment_id) {
461
  // is this only being called if the title of the attachment is changed?!
462
  $post = get_post($attachment_id);
463
  $post_title = urlencode(get_the_title($post->ID));
464
+ simple_history_add("action=" . __( 'updated', 'simple-history' ) . "&object_type=" . __('Attachment', 'simple-history') . "&object_id=$attachment_id&object_name=$post_title");
465
  }
466
  function simple_history_delete_attachment($attachment_id) {
467
  $post = get_post($attachment_id);
468
  $post_title = urlencode(get_the_title($post->ID));
469
+ simple_history_add("action=" . __( 'deleted', 'simple-history' ) . "&object_type=" . __('Attachment', 'simple-history') . "&object_id=$attachment_id&object_name=$post_title");
470
  }
471
 
472
  // user is updated
473
  function simple_history_profile_update($user_id) {
474
  $user = get_user_by("id", $user_id);
475
  $user_nicename = urlencode($user->user_nicename);
476
+ simple_history_add("action=" . __( 'updated', 'simple-history' ) . "&object_type=" . __('User', 'simple-history') . "&object_id=$user_id&object_name=$user_nicename");
477
  }
478
 
479
  // user is created
487
  function simple_history_delete_user($user_id) {
488
  $user = get_user_by("id", $user_id);
489
  $user_nicename = urlencode($user->user_nicename);
490
+ simple_history_add("action=" . __( 'deleted', 'simple-history' ) . "&object_type=" . __('User', 'simple-history') . "&object_id=$user_id&object_name=$user_nicename");
491
  }
492
 
493
  // user logs in
501
  } else {
502
  $user_id = $current_user->ID;
503
  }
504
+ simple_history_add("action=" . __( 'logged_in', 'simple-history' ) . "&object_type=" . __('User', 'simple-history') ."&object_id=".$user->ID."&user_id=$user_id&object_name=$user_nicename");
505
  }
506
  // user logs out
507
  function simple_history_wp_logout() {
508
  $current_user = wp_get_current_user();
509
  $current_user_id = $current_user->ID;
510
  $user_nicename = urlencode($current_user->user_nicename);
511
+ simple_history_add("action=" . __( 'logged_out', 'simple-history' ) . "&object_type=" . __('User', 'simple-history') ."&object_id=$current_user_id&object_name=$user_nicename");
512
  }
513
 
514
  function simple_history_delete_post($post_id) {
516
  $post = get_post($post_id);
517
  if ($post->post_status != "auto-draft" && $post->post_status != "inherit") {
518
  $post_title = urlencode(get_the_title($post->ID));
519
+ simple_history_add("action=" . __( 'deleted', 'simple-history' ) . "&object_type=" . __('Post') ."&object_subtype=" . $post->post_type . "&object_id=$post_id&object_name=$post_title");
520
  }
521
  }
522
  }
553
  //bonny_d($post); // regular post object
554
  if ($old_status == "auto-draft" && ($new_status != "auto-draft" && $new_status != "inherit")) {
555
  // page created
556
+ $action = __( "created", 'simple-history' );
557
  } elseif ($new_status == "auto-draft" || ($old_status == "new" && $new_status == "inherit")) {
558
  // page...eh.. just leave it.
559
  return;
560
  } elseif ($new_status == "trash") {
561
+ $action = __( "deleted", 'simple-history' );
562
  } else {
563
  // page updated. i guess.
564
+ $action = __( "updated", 'simple-history' );
565
  }
566
  $object_type = "post";
567
  $object_subtype = $post->post_type;
568
+
569
+ // Attempt to auto-translate post types*/
570
+ $object_type = __( ucfirst ( $object_type ) );
571
+ $object_subtype = __( ucfirst ( $object_subtype ) );
572
+
573
  if ($object_subtype == "revision") {
574
  // don't log revisions
575
  return;
694
 
695
  #}
696
 
697
+ simple_history_add("action=" . __( 'activated', 'simple-history' ) . "&object_type=" . __('Plugin') . "&object_name=$plugin_name");
698
+
699
+
700
  // also generate a rss secret, if it does not exist
701
  if (!get_option("simple_history_rss_secret")) {
702
  simple_history_update_rss_secret();
729
 
730
  // add_query_arg(
731
  $link = esc_html(add_query_arg("simple_history_type_to_show", ""));
732
+ $str_types_desc = __("All types", 'simple-history');
733
+ $str_types .= "<li $css><a href='$link'>$str_types_desc</a> | </li>";
734
  foreach ($arr_types as $one_type) {
735
  $css = "";
736
  if ($one_type->object_subtype && $simple_history_type_to_show == ($one_type->object_type."/".$one_type->object_subtype)) {
795
  $css = " class='selected' ";
796
  }
797
  $link = esc_html(add_query_arg("simple_history_user_to_show", ""));
 
798
  $str_users .= "<li $css><a href='$link'>" . __("By all users", 'simple-history') ."</a> | </li>";
799
  foreach ($arr_users as $user_id => $user_info) {
800
  $link = esc_html(add_query_arg("simple_history_user_to_show", $user_id));
860
  }
861
  if ($simple_history_user_to_show) {
862
  $userinfo = get_user_by("slug", $simple_history_user_to_show);
863
+
864
+ if (isset($userinfo->ID)) {
865
+ $where .= " AND user_id = '" . $userinfo->ID . "'";
866
+ }
867
+
868
  }
869
 
870
  $tableprefix = $wpdb->prefix;
898
  // so add it to the last element in arr_events
899
  $arr_events[$prev_row->id]->occasions[] = $one_row;
900
  } else {
901
+
 
 
902
  #echo "<br>real_loop_num: $real_loop_num";
903
  #echo "<br>loop_num: $loopNum";
904
+
905
  // check if we have a search. of so, only add if there is a match
906
  $do_add = FALSE;
907
  if ($search) {
1079
  $post_out .= "<span class='simple-history-title'>{$title}</span>";
1080
  $post_out .= "</a>";
1081
  }
1082
+ /*
1083
  if ("created" == $action) {
1084
  $post_out .= " " . __("created", 'simple-history') . " ";
1085
  } elseif ("updated" == $action) {
1087
  } elseif ("deleted" == $action) {
1088
  $post_out .= " " . __("deleted", 'simple-history') . " ";
1089
  } else {
1090
+ */
1091
  $post_out .= " $action";
1092
+ //}
1093
 
1094
  $post_out = ucfirst($post_out);
1095
  echo $post_out;
1098
  } elseif ("attachment" == $object_type) {
1099
 
1100
  $attachment_out = "";
1101
+ $attachment_out .= __("attachment", 'simple-history') . " ";
1102
+
1103
  $post = get_post($object_id);
1104
 
1105
  if ($post) {
1123
  }
1124
  }
1125
 
1126
+ /*
1127
  if ("added" == $action) {
1128
  $attachment_out .= " added ";
1129
  } elseif ("updated" == $action) {
1131
  } elseif ("deleted" == $action) {
1132
  $attachment_out .= " deleted ";
1133
  } else {
1134
+ */
1135
  $attachment_out .= " $action ";
1136
+ //}
1137
 
1138
  $attachment_out = ucfirst($attachment_out);
1139
  echo $attachment_out;
1140
 
1141
  } elseif ("user" == $object_type) {
1142
  $user_out = "";
1143
+ $user_out .= __("user", 'simple-history');
1144
  $user = get_user_by("id", $object_id);
1145
  if ($user) {
1146
  $user_link = "user-edit.php?user_id={$user->ID}";
1173
  $user_out .= "<span class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</span>";
1174
  }
1175
 
1176
+ /*
1177
  if ("created" == $action) {
1178
  $user_out .= " " . __("added", 'simple-history') . " ";
1179
  } elseif ("updated" == $action) {
1185
  } elseif ("logged_out" == $action) {
1186
  $user_out .= " " . __("logged out", 'simple-history') . " ";
1187
  } else {
1188
+ */
1189
  $user_out .= " $action";
1190
+ //}
1191
 
1192
  $user_out = ucfirst($user_out);
1193
  echo $user_out;
1200
  } else {
1201
 
1202
  // unknown/general type
1203
+ // translate the common types
1204
+ $unknown_action = $action;
1205
+ switch ($unknown_action) {
1206
+ case "activated":
1207
+ $unknown_action = __("activated", 'simple-history');
1208
+ break;
1209
+ case "deactivated":
1210
+ $unknown_action = __("deactivated", 'simple-history');
1211
+ break;
1212
+ case "enabled":
1213
+ $unknown_action = __("enabled", 'simple-history');
1214
+ break;
1215
+ case "disabled":
1216
+ $unknown_action = __("disabled", 'simple-history');
1217
+ break;
1218
+ default:
1219
+ $unknown_action = $unknown_action; // dah!
1220
+ }
1221
+ echo ucwords($object_type) . " $object_subtype <span class='simple-history-title'>\"$object_name\"</span> $unknown_action";
1222
 
1223
  }
1224
  echo "</div>";
1227
  // when
1228
  $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_row->date), $gmt=false);
1229
  $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_row->date), $gmt=false);
1230
+ echo sprintf(__("By %s", 'simple-history'), $who) . " &rarr; ";
1231
  $now = strtotime(current_time("mysql"));
1232
  $diff_str = sprintf( __('%s ago'), human_time_diff(strtotime($one_row->date), $now) );
1233
  echo "<span class='when'>".$diff_str."</span>";
1234
+ echo "<span class='when_detail'>".sprintf(__('%s at %s', 'simple-history'), $date_i18n_date, $date_i18n_time)."</span>";
1235
  echo "</div>";
1236
 
1237
  // occasions
languages/simple-history-de_DE.mo ADDED
Binary file
languages/simple-history-de_DE.po ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Simple History 0.4\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-history\n"
10
+ "POT-Creation-Date: 2010-09-19 18:24+0000\n"
11
+ "PO-Revision-Date: 2012-02-22 14:15+0100\n"
12
+ "Last-Translator: Ralph Stenzel <ralph@klein-aber-fein.de>\n"
13
+ "Language-Team: Ralph Stenzel <ralph@klein-aber-fein.de>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: German\n"
18
+ "X-Poedit-Country: GERMANY\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: index.php:126
22
+ #: index.php:168
23
+ #, php-format
24
+ msgid "Simple History for %s"
25
+ msgstr "Simple History für %s"
26
+
27
+ #: index.php:127
28
+ #: index.php:169
29
+ #, php-format
30
+ msgid "WordPress History for %s"
31
+ msgstr "WordPress History für %s"
32
+
33
+ #: index.php:139
34
+ #, php-format
35
+ msgid "By %s"
36
+ msgstr "Von %s"
37
+
38
+ #: index.php:143
39
+ #, php-format
40
+ msgid "%d occasions"
41
+ msgstr "%d Fälle"
42
+
43
+ #: index.php:173
44
+ msgid "Wrong RSS secret"
45
+ msgstr "Falsche RSS-Geheimadresse"
46
+
47
+ #: index.php:174
48
+ msgid "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed."
49
+ msgstr "Ihre RSS-Geheimadresse für den Simple History RSS-Feed ist falsch. Bitte überprüfen Sie die WordPress-Einstellungen hinsichtlich des momentanen Links zum RSS-Feed."
50
+
51
+ #: index.php:247
52
+ msgid "on the dashboard"
53
+ msgstr "auf dem Armaturenbrett (Dashboard)"
54
+
55
+ #: index.php:252
56
+ msgid "as a page under the tools menu"
57
+ msgstr "als eine Seite im Werkzeuge-Menü"
58
+
59
+ #: index.php:283
60
+ msgid "Created new secret RSS adress"
61
+ msgstr "Neue geheime RSS-Adresse erstellt"
62
+
63
+ #: index.php:294
64
+ msgid "This is a secret RSS feed for Simple History. Only share the link with people you trust"
65
+ msgstr "Dies ist ein vertraulicher RSS-Feed für Simple History. Teilen Sie das Link nur mit Leuten Ihres Vertrauens!"
66
+
67
+ #: index.php:297
68
+ #, php-format
69
+ msgid "You can <a href='%s'>generate a new address</a> for the RSS feed. This is useful if you think that the address has fallen into the wrong hands."
70
+ msgstr "Sie können für den RSS-Feed <a href='%s'>eine neue Adresse erstellen</a> lassen. Dies ist hilfreich wenn Sie den Verdacht haben, daß die bisherige Adresse in falsche Hände gekommen sein könnte."
71
+
72
+ #: index.php:320
73
+ #: index.php:335
74
+ #: index.php:366
75
+ #, php-format
76
+ msgid "From %1$s on %2$s"
77
+ msgstr "Von %1$s am %2$s"
78
+
79
+ #: index.php:811
80
+ msgid "By all users"
81
+ msgstr "Von allen Benutzern"
82
+
83
+ #: index.php:1031
84
+ msgid "Unknown or deleted user"
85
+ msgstr "Unbekannter oder gelöschter Benutzer"
86
+
87
+ #: index.php:1058
88
+ msgid "created"
89
+ msgstr "erzeugt"
90
+
91
+ #: index.php:1060
92
+ #: index.php:1153
93
+ msgid "updated"
94
+ msgstr "aktualisiert"
95
+
96
+ #: index.php:1062
97
+ #: index.php:1155
98
+ msgid "deleted"
99
+ msgstr "gelöscht"
100
+
101
+ #: index.php:1151
102
+ msgid "added"
103
+ msgstr "hinzugefügt"
104
+
105
+ #: index.php:1157
106
+ msgid "logged in"
107
+ msgstr "angemeldet"
108
+
109
+ #: index.php:1159
110
+ msgid "logged out"
111
+ msgstr "abgemeldet"
112
+
113
+ #: index.php:1193
114
+ msgid "+ 1 occasion"
115
+ msgstr "+ 1 Fall"
116
+
117
+ #: index.php:1196
118
+ #, php-format
119
+ msgid "+ %d occasions"
120
+ msgstr "+ %d Fälle"
121
+
122
+ #: index.php:1225
123
+ #, php-format
124
+ msgid "Show %d more"
125
+ msgstr "Zeige %d weitere"
126
+
127
+ #: index.php:1226
128
+ msgid "Loading..."
129
+ msgstr "Lade..."
130
+
131
+ #: index.php:1227
132
+ msgid "No more history items found."
133
+ msgstr "Keine weiteren Vorfälle gefunden."
134
+
135
+ #: index.php:1228
136
+ msgid "Simple History RSS feed"
137
+ msgstr "Simple History RSS-Feed"
138
+
139
+ #: index.php:1244
140
+ msgid "No history items found."
141
+ msgstr "Keine Vorfälle gefunden."
142
+
143
+ #: index.php:1245
144
+ msgid "Please note that Simple History only records things that happen after this plugin have been installed."
145
+ msgstr "Bitte beachten Sie, daß Simple History nur Vorfälle aufzeichnet, die nach der Installation des Plugins passiert sind."
146
+
languages/simple-history-sv_SE.mo ADDED
Binary file
languages/simple-history-sv_SE.po ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Simple History\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-07 13:48+0100\n"
6
+ "PO-Revision-Date: 2012-02-09 13:50+0100\n"
7
+ "Last-Translator: Jocke Gustin <jocke.gustin@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Swedish\n"
14
+ "X-Poedit-Country: SWEDEN\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: index.php:132
23
+ #: index.php:174
24
+ #: index_orig.php:132
25
+ #: index_orig.php:174
26
+ #, php-format
27
+ #@ simple-history
28
+ msgid "Simple History for %s"
29
+ msgstr "Historik för %s"
30
+
31
+ #: index.php:133
32
+ #: index.php:175
33
+ #: index_orig.php:133
34
+ #: index_orig.php:175
35
+ #, php-format
36
+ #@ simple-history
37
+ msgid "WordPress History for %s"
38
+ msgstr "WordPress historik för %s"
39
+
40
+ #: index.php:145
41
+ #: index.php:1201
42
+ #: index_orig.php:145
43
+ #, php-format
44
+ #@ simple-history
45
+ msgid "By %s"
46
+ msgstr "Av %s"
47
+
48
+ #: index.php:149
49
+ #: index_orig.php:149
50
+ #, php-format
51
+ #@ simple-history
52
+ msgid "%d occasions"
53
+ msgstr "%d tillfällen"
54
+
55
+ #: index.php:179
56
+ #: index_orig.php:179
57
+ #@ simple-history
58
+ msgid "Wrong RSS secret"
59
+ msgstr "Fel RSS lösenord"
60
+
61
+ #: index.php:180
62
+ #: index_orig.php:180
63
+ #@ simple-history
64
+ msgid "Your RSS secret for Simple History RSS feed is wrong. Please see WordPress settings for current link to the RSS feed."
65
+ msgstr "Ditt RSS lösenord är fel. Vänligen gå till WordPress inställningsmeny för en länk till RSS-feed."
66
+
67
+ #: index.php:254
68
+ #: index_orig.php:254
69
+ #@ simple-history
70
+ msgid "on the dashboard"
71
+ msgstr "på adminpanelen"
72
+
73
+ #: index.php:259
74
+ #: index_orig.php:259
75
+ #@ simple-history
76
+ msgid "as a page under the tools menu"
77
+ msgstr "som en sida under verktygsmenyn"
78
+
79
+ #: index.php:296
80
+ #: index_orig.php:296
81
+ #@ simple-history
82
+ msgid "Created new secret RSS adress"
83
+ msgstr "Skapade en ny hemlig RSS address"
84
+
85
+ #: index.php:307
86
+ #: index_orig.php:307
87
+ #@ simple-history
88
+ msgid "This is a secret RSS feed for Simple History. Only share the link with people you trust"
89
+ msgstr "Detta är en hemlig RSS feed för \"Webbplatshistorik\". Dela den bara med personer du litar på."
90
+
91
+ #: index.php:310
92
+ #: index_orig.php:310
93
+ #, fuzzy, php-format, php-format, php-format, php-format, php-format, php-format, php-format, php-format
94
+ #@ simple-history
95
+ msgid "You can <a href='%s#simple-history-settings-page'>generate a new address</a> for the RSS feed. This is useful if you think that the address has fallen into the wrong hands."
96
+ msgstr "Du kan <a href='%s'>generera en ny adress</a> för din hemliga RSS feed. Detta är användbart ifall du tror att adressen kommit i fel händer."
97
+
98
+ #: index.php:333
99
+ #: index.php:348
100
+ #: index.php:379
101
+ #: index_orig.php:333
102
+ #: index_orig.php:348
103
+ #: index_orig.php:379
104
+ #, php-format
105
+ #@ default
106
+ msgid "From %1$s on %2$s"
107
+ msgstr "Från %1$s klockan %2$s"
108
+
109
+ #: index.php:45
110
+ #: index.php:792
111
+ #: index_orig.php:786
112
+ #@ simple-history
113
+ msgid "By all users"
114
+ msgstr "Av alla användare"
115
+
116
+ #: index.php:811
117
+ #: index_orig.php:805
118
+ #@ simple-history
119
+ msgid "Search"
120
+ msgstr "Sök"
121
+
122
+ #: index.php:1051
123
+ #: index_orig.php:1041
124
+ #@ simple-history
125
+ msgid "Unknown or deleted user"
126
+ msgstr "Okänd eller borttagen användare"
127
+
128
+ #: index.php:476
129
+ #: index.php:549
130
+ #: index_orig.php:1069
131
+ #@ simple-history
132
+ msgid "created"
133
+ msgstr "skapades"
134
+
135
+ #: index.php:457
136
+ #: index.php:469
137
+ #: index.php:557
138
+ #: index_orig.php:1071
139
+ #: index_orig.php:1160
140
+ #@ simple-history
141
+ msgid "updated"
142
+ msgstr "uppdaterades"
143
+
144
+ #: index.php:351
145
+ #: index.php:462
146
+ #: index.php:483
147
+ #: index.php:512
148
+ #: index.php:554
149
+ #: index_orig.php:1073
150
+ #: index_orig.php:1162
151
+ #@ simple-history
152
+ msgid "deleted"
153
+ msgstr "kastades i papperskorgen"
154
+
155
+ #: index.php:451
156
+ #: index_orig.php:1158
157
+ #@ simple-history
158
+ msgid "added"
159
+ msgstr "lades till"
160
+
161
+ #: index_orig.php:1164
162
+ #@ simple-history
163
+ msgid "logged in"
164
+ msgstr "loggade in"
165
+
166
+ #: index_orig.php:1166
167
+ #@ simple-history
168
+ msgid "logged out"
169
+ msgstr "loggade ut"
170
+
171
+ #: index.php:1203
172
+ #: index_orig.php:1193
173
+ #, php-format
174
+ #@ default
175
+ msgid "%s ago"
176
+ msgstr "%s sedan"
177
+
178
+ #: index.php:1212
179
+ #: index_orig.php:1202
180
+ #@ simple-history
181
+ msgid "+ 1 occasion"
182
+ msgstr "+1 tillfälle"
183
+
184
+ #: index.php:1215
185
+ #: index_orig.php:1205
186
+ #, php-format
187
+ #@ simple-history
188
+ msgid "+ %d occasions"
189
+ msgstr "+ %d tillfällen"
190
+
191
+ #: index.php:1223
192
+ #: index_orig.php:1213
193
+ #, php-format
194
+ #@ simple-history
195
+ msgid "%s ago (%s at %s)"
196
+ msgstr "%s sedan (%s den %s)"
197
+
198
+ #: index.php:1246
199
+ #: index_orig.php:1236
200
+ #, fuzzy
201
+ #@ simple-history
202
+ msgid "Show 5 more"
203
+ msgstr "Visa 5 till"
204
+
205
+ #: index.php:1247
206
+ #: index_orig.php:1237
207
+ #, fuzzy
208
+ #@ simple-history
209
+ msgid "Show 15 more"
210
+ msgstr "Visa 15 till"
211
+
212
+ #: index.php:1248
213
+ #: index_orig.php:1238
214
+ #, fuzzy
215
+ #@ simple-history
216
+ msgid "Show 50 more"
217
+ msgstr "Visa 50 till"
218
+
219
+ #: index.php:1249
220
+ #: index_orig.php:1239
221
+ #, fuzzy
222
+ #@ simple-history
223
+ msgid "Show 100 more"
224
+ msgstr "Visa 100 till"
225
+
226
+ #: index.php:1252
227
+ #: index_orig.php:1242
228
+ #@ simple-history
229
+ msgid "Loading..."
230
+ msgstr "Laddar..."
231
+
232
+ #: index.php:1253
233
+ #: index_orig.php:1243
234
+ #@ simple-history
235
+ msgid "No more history items found."
236
+ msgstr "Ingen historik hittad."
237
+
238
+ #: index.php:1254
239
+ #: index_orig.php:1244
240
+ #@ simple-history
241
+ msgid "Simple History RSS feed"
242
+ msgstr "Webbplatshistorik RSS feed"
243
+
244
+ #: index.php:1256
245
+ #: index_orig.php:1246
246
+ #@ simple-history
247
+ msgid "Show"
248
+ msgstr "Visa"
249
+
250
+ #: index.php:1270
251
+ #: index_orig.php:1260
252
+ #@ simple-history
253
+ msgid "No history items found."
254
+ msgstr "Inga händelser hittade."
255
+
256
+ #: index.php:1271
257
+ #: index_orig.php:1261
258
+ #@ simple-history
259
+ msgid "Please note that Simple History only records things that happen after this plugin have been installed."
260
+ msgstr "Vänligen notera att \"Webbplatshistorik\" enbart visar händelser efter detta plugin aktiverats."
261
+
262
+ #: index.php:1095
263
+ #@ simple-history
264
+ msgid "attachment"
265
+ msgstr "bilaga"
266
+
267
+ #: index.php:1134
268
+ #@ simple-history
269
+ msgid "user"
270
+ msgstr "användare"
271
+
272
+ #: index.php:29
273
+ #@ simple-history
274
+ msgid "Simple History"
275
+ msgstr "Webbplatshistorik"
276
+
277
+ #: index.php:317
278
+ #: index.php:321
279
+ #: index.php:691
280
+ #@ default
281
+ msgid "Plugin"
282
+ msgstr ""
283
+
284
+ #: index.php:336
285
+ #: index.php:351
286
+ #: index.php:382
287
+ #@ default
288
+ msgid "Comment"
289
+ msgstr ""
290
+
291
+ #: index.php:451
292
+ #: index.php:457
293
+ #: index.php:462
294
+ #@ simple-history
295
+ msgid "Attachment"
296
+ msgstr "Filuppladdning"
297
+
298
+ #: index.php:469
299
+ #: index.php:476
300
+ #: index.php:483
301
+ #: index.php:497
302
+ #: index.php:504
303
+ #@ simple-history
304
+ msgid "User"
305
+ msgstr "Användare"
306
+
307
+ #: index.php:512
308
+ #@ default
309
+ msgid "Post"
310
+ msgstr ""
311
+
312
+ #: index.php:42
313
+ #: index.php:726
314
+ #@ simple-history
315
+ msgid "All types"
316
+ msgstr "All historik"
317
+
318
+ #: index.php:317
319
+ #: index.php:691
320
+ #@ simple-history
321
+ msgid "activated"
322
+ msgstr "aktiverades"
323
+
324
+ #: index.php:321
325
+ #@ simple-history
326
+ msgid "deactivated"
327
+ msgstr "inaktiverades"
328
+
329
+ #: index.php:336
330
+ #@ simple-history
331
+ msgid "edited"
332
+ msgstr "redigerade"
333
+
334
+ #: index.php:366
335
+ #@ simple-history
336
+ msgid "approved"
337
+ msgstr "godkände"
338
+
339
+ #: index.php:368
340
+ #@ simple-history
341
+ msgid "unapproved"
342
+ msgstr "nekade"
343
+
344
+ #: index.php:370
345
+ #@ simple-history
346
+ msgid "marked as spam"
347
+ msgstr "markerade som skräppost"
348
+
349
+ #: index.php:372
350
+ #@ simple-history
351
+ msgid "trashed"
352
+ msgstr "slängde"
353
+
354
+ #: index.php:374
355
+ #@ simple-history
356
+ msgid "untrashed"
357
+ msgstr "återställde"
358
+
359
+ #: index.php:497
360
+ #@ simple-history
361
+ msgid "logged_in"
362
+ msgstr "loggade in"
363
+
364
+ #: index.php:504
365
+ #@ simple-history
366
+ msgid "logged_out"
367
+ msgstr "loggade ut"
368
+
369
+ #: index.php:1205
370
+ #, php-format
371
+ #@ simple-history
372
+ msgid "%s at %s"
373
+ msgstr "%s klockan %s"
374
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: eskapism, MarsApril
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin
5
  Requires at least: 2.9.2
6
- Tested up to: 3.0
7
- Stable tag: 0.4
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
@@ -49,6 +49,14 @@ simple_history_add("action=edited&object_type=plugin&object_name=your_plugin_nam
49
 
50
  `<?php simple_history_add("action=repaired&object_type=starship&object_name=USS Enterprise"); ?>`
51
 
 
 
 
 
 
 
 
 
52
  #### Donation and more plugins
53
  * If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/).
54
  * More [WordPress CMS plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author.
@@ -77,6 +85,12 @@ to only use the secret RSS feed to keep track of the changes on you web site/Wor
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
80
  = 0.4 =
81
  - Added: Now you can search the history
82
  - Added: Choose if you wan't to load/show more than just 5 rows from the history
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: history, log, changes, changelog, audit, trail, pages, attachments, users, cms, dashboard, admin
5
  Requires at least: 2.9.2
6
+ Tested up to: 3.3.1
7
+ Stable tag: 0.5
8
 
9
  View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
10
 
49
 
50
  `<?php simple_history_add("action=repaired&object_type=starship&object_name=USS Enterprise"); ?>`
51
 
52
+ #### Translations/Languages
53
+
54
+ This plugin is available in the following languages:
55
+
56
+ * English
57
+ * German
58
+ * Simplified Chinese
59
+
60
  #### Donation and more plugins
61
  * If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/).
62
  * More [WordPress CMS plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author.
85
 
86
  == Changelog ==
87
 
88
+ = 0.5 =
89
+ - Added author to RSS
90
+ - Added german translation, thanks http://www.fuerther-freiheit.info/
91
+ - Added swedish translation, thanks http://jockegustin.se
92
+ - Better support for translation
93
+
94
  = 0.4 =
95
  - Added: Now you can search the history
96
  - Added: Choose if you wan't to load/show more than just 5 rows from the history