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 Binary files /dev/null and b/languages/wp_revisions_control-es_ES.mo differ diff --git a/languages/wp_revisions_control-es_ES.pot b/languages/wp_revisions_control-es_ES.pot new file mode 100755 index 0000000000000000000000000000000000000000..5258957cb007dd7a7df6f5ac3670f5ff024b6f38 --- /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 6bfdb0bcf014aea099258c0872db9b574cf82866..023880fa864c0cb03022b614c9a8c82b12a514cd 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&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 1f17774ea8c46531adf370351f8888fae7f9083c..f0a313ffbab383f2ab889563ca1c4ef95ddac3ee 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 *