From fa1c27233afbfdb279e4438e4a1617f39af28128 Mon Sep 17 00:00:00 2001
From: Erick Hitter <erick@ethitter.com>
Date: Sat, 16 Nov 2013 21:02:51 +0000
Subject: [PATCH] Add Spanish translation from Maria Ramos as WebHostingHub.

---
 languages/wp_revisions_control-es_ES.mo  | Bin 0 -> 1947 bytes
 languages/wp_revisions_control-es_ES.pot |  62 +++++++++++++++++++++++
 readme.txt                               |  14 +++--
 wp-revisions-control.php                 |  17 ++++++-
 4 files changed, 88 insertions(+), 5 deletions(-)
 create mode 100755 languages/wp_revisions_control-es_ES.mo
 create mode 100755 languages/wp_revisions_control-es_ES.pot

diff --git a/languages/wp_revisions_control-es_ES.mo b/languages/wp_revisions_control-es_ES.mo
new file mode 100755
index 0000000000000000000000000000000000000000..f74521d885eb1cc6a3f405fde68b523301a5c11d
GIT binary patch
literal 1947
zcmca7#4?qEfq{XOfq_AWfq@}~fq{XSfq`KSNRWYn;Q<2!!z%^`hKCFc3>FLw3}+Y_
z7<d>M7+9GY7`zx57=)M@7+M$@7-E?i7(^Ht7#=Y(Fi0>kFnniXU@&E1U=UztV3@(k
zz~IKrz#zcLz;K_1fx&@+f#Cxy#2iC528L(`1_nDe28KBd3=Ff_Am*5}L(K7EhnSPf
z&cMJ3brUNC0|PUZ%?_p6pfn2u0|OJ(KO7)2M}?gH<is3><c!3;^i+k+Vuj?y(&Eg#
zbcK?P%wmOtoYM5nJoRFQw9>rflFa<P#GK5MN`;bqg`(0tg~SqtM1_K)%={vdV17wP
zYLP-oMq-{qNk*zdN@`kSX-<irf@hjSWqzqbYDGb6QD$mha;ic~W?EWia%oOUW@@oQ
zd1grlSOdf^9fg9N)WqUch0?r?{QPW%#Jozl<;4nVMftg4#Wu<LDXDhl1@T3xWtqj9
z`FX|h$@zIDMfo}LFbCP_gViXcW#*Km7U?lKL*x}Q^2-%+LB_(hDkK)ADioLG7p0~s
zq~#YWq$Vb3C=}!umnf7}7Njz`7G)-9D|lp<l%y6hc&35;43ksHEY4Fe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ST$=6XxNzDSgAvrO(AYY*@G5PS?eEJkB0F>}~
AqyPW_

literal 0
HcmV?d00001

diff --git a/languages/wp_revisions_control-es_ES.pot b/languages/wp_revisions_control-es_ES.pot
new file mode 100755
index 0000000..5258957
--- /dev/null
+++ b/languages/wp_revisions_control-es_ES.pot
@@ -0,0 +1,62 @@
+# Copyright (C) 2013 WP Revisions Control
+# This file is distributed under the same license as the WP Revisions Control package.
+msgid ""
+msgstr ""
+"Project-Id-Version: WP Revisions Control 1.0\n"
+"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-revisions-control\n"
+"POT-Creation-Date: 2013-11-12 18:29:38+00:00\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"PO-Revision-Date: 2013-11-14 21:56+0100\n"
+"Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"X-Generator: Poedit 1.5.5\n"
+
+#: wp-revisions-control.php:120
+msgid ""
+"Set the number of revisions to save for each post type listed. To retain all "
+"revisions for a given post type, leave the field empty."
+msgstr ""
+"Inserte el número de revisiones a salvar para cada tipo de post listado. "
+"Para obtener todas las revisiones para un tipo de post dado, deje el campo "
+"vacío."
+
+#: wp-revisions-control.php:121
+msgid ""
+"If a post type isn't listed, revisions are not enabled for that post type."
+msgstr ""
+"Si un tipo de post no se lista, las revisiones no están habilitadas para ese "
+"tipo de post."
+
+#: wp-revisions-control.php:127
+msgid ""
+"A local change is causing this plugin's functionality to run at a priority "
+"other than the default. If you experience difficulties with the plugin, "
+"please unhook any functions from the <code>wp_revisions_control_priority</"
+"code> filter."
+msgstr ""
+"Un cambio local está causando que la funcionalidad de este plugin se ejecute "
+"a una prioridad diferente de la de por defecto. Si está experimentando "
+"dificultades con el plugin, por favor desenganche cualquier función del "
+"filtro <code>wp_revisions_control_priority</code>"
+
+#. Plugin Name of the plugin/theme
+msgid "WP Revisions Control"
+msgstr "WP Revisions Control"
+
+#. Plugin URI of the plugin/theme
+msgid "http://www.ethitter.com/plugins/wp-revisions-control/"
+msgstr "http://www.ethitter.com/plugins/wp-revisions-control/"
+
+#. Description of the plugin/theme
+msgid "Control how many revisions are stored for each post type"
+msgstr "Controla cuántas revisiones se almacenan para cada tipo de post"
+
+#. Author of the plugin/theme
+msgid "Erick Hitter"
+msgstr "Erick Hitter"
+
+#. Author URI of the plugin/theme
+msgid "http://www.ethitter.com/"
+msgstr "http://www.ethitter.com/"
diff --git a/readme.txt b/readme.txt
index 6bfdb0b..023880f 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,8 +3,8 @@ Contributors: ethitter
 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=10275434
 Tags: revision, revisions, admin
 Requires at least: 3.6
-Tested up to: 3.6
-Stable tag: 1.2
+Tested up to: 3.8
+Stable tag: 1.2.1
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
@@ -33,14 +33,20 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
 
 == Changelog ==
 
+= 1.2.1 =
+* Introduce Spanish translation thanks to Maria Ramos at [WebHostingHub](http://www.webhostinghub.com/).
+
 = 1.2 =
-Add post-level revision purging and limiting. For any post type that supports revisions, you can now limit the number of revisions retained at a post level.
+* Add post-level revision purging and limiting. For any post type that supports revisions, you can now limit the number of revisions retained at a post level.
 
 = 1.0 =
-Initial public release
+* Initial public release
 
 == Upgrade Notice ==
 
+= 1.2.1 =
+Introduces Spanish translation thanks to Maria Ramos at [WebHostingHub](http://www.webhostinghub.com/).
+
 = 1.2 =
 For any post type that supports revisions, you can now limit the number of revisions retained at a post level.
 
diff --git a/wp-revisions-control.php b/wp-revisions-control.php
index 1f17774..f0a313f 100644
--- a/wp-revisions-control.php
+++ b/wp-revisions-control.php
@@ -4,8 +4,10 @@ Plugin Name: WP Revisions Control
 Plugin URI: http://www.ethitter.com/plugins/wp-revisions-control/
 Description: Control how many revisions are stored for each post type
 Author: Erick Hitter
-Version: 1.2
+Version: 1.2.1
 Author URI: http://www.ethitter.com/
+Text Domain: wp_revisions_control
+Domain Path: /languages/
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -70,9 +72,22 @@ class WP_Revisions_Control {
 	 * @return null
 	 */
 	private function setup() {
+		add_action( 'plugins_loaded', array( $this, 'action_plugins_loaded' ) );
 		add_action( 'init', array( $this, 'action_init' ) );
 	}
 
+	/**
+	 * Load plugin translations
+	 *
+	 * @uses load_plugin_textdomain
+	 * @uses plugin_basename
+	 * @action plugins_loaded
+	 * @return null
+	 */
+	public function action_plugins_loaded() {
+		load_plugin_textdomain( 'wp_revisions_control', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
+	}
+
 	/**
 	 * Register actions and filters
 	 *
-- 
GitLab