Changeset 855344
- Timestamp:
- 02/11/2014 05:49:34 AM (12 years ago)
- Location:
- wp-mediatagger/trunk
- Files:
-
- 6 edited
-
languages/mediatagger-def-i18n.php (modified) (2 diffs)
-
languages/mediatagger-fr_FR.mo (modified) (previous)
-
languages/mediatagger-fr_FR.po (modified) (8 diffs)
-
mediatagger-def.php (modified) (1 diff)
-
mediatagger.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-mediatagger/trunk/languages/mediatagger-def-i18n.php
r854374 r855344 84 84 _("If you experience this plugin brings value to your site, you are free to make a donation for supporting the development and maintenance."); 85 85 _("Even small donations matter and are encouraging !"); 86 _("Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page"); 86 87 _n("media associated to tag", "medias associated to tag"); 87 88 _n("media found", "medias found"); … … 101 102 'header_general' => array( 102 103 'type' => "HEADER", 103 //'desc' => self::$t->general104 104 'desc' => self::__("General") 105 105 ), -
wp-mediatagger/trunk/languages/mediatagger-fr_FR.po
r854374 r855344 3 3 "Project-Id-Version: WP MediaTagger\n" 4 4 "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-imagetagger\n" 5 "POT-Creation-Date: 2014-02- 09 07:30+0100\n"5 "POT-Creation-Date: 2014-02-10 17:35+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: phd38 <contact@photos-dauphie.com>\n" … … 429 429 430 430 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:86 431 msgid "" 432 "Display your MediaTagger tag cloud in the sidebar. Before that, you need to " 433 "have properly tagged your medias in the MediaTagger plugin Admin Panel and " 434 "have as well setup a result page that you will use as your tag cloud target " 435 "page" 436 msgstr "" 437 "Affichez le nuage de tags MediaTagger dans la colonne latérale. Avant tout, " 438 "vous devez avoir taggé vos médias dans le panneau d'administration du plugin " 439 "MediaTagger, et avoir également défini une page résultat qui sera utilisée " 440 "comme page cible pour le nuage de tags." 441 442 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:87 431 443 msgid "media associated to tag" 432 444 msgid_plural "medias associated to tag" … … 434 446 msgstr[1] "médias associés à ce tag" 435 447 436 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:8 7448 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:88 437 449 msgid "media found" 438 450 msgid_plural "medias found" … … 440 452 msgstr[1] "médias trouvés" 441 453 442 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:8 8454 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:89 443 455 #, php-format 444 456 msgid "image %d to %d" … … 447 459 msgstr[1] "images %d à %d" 448 460 449 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php: 89461 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:90 450 462 msgid "Original tag" 451 463 msgid_plural "Original tags" … … 453 465 msgstr[1] "Tags d'origine" 454 466 455 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:9 0467 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:91 456 468 msgid "New tag" 457 469 msgid_plural "New tags" … … 459 471 msgstr[1] "Nouveaux tags" 460 472 461 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:9 1473 #: C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages/mediatagger-def-i18n.php:92 462 474 msgid "occurence" 463 475 msgid_plural "occurences" … … 2245 2257 #, fuzzy 2246 2258 #~ msgid "" 2247 #~ "Display your MediaTagger tag cloud in the sidebar. Before that, you need "2248 #~ "to have properly tagged your medias in the MediaTagger plugin Admin Panel "2249 #~ "and have as well setup a result page that you will use as your tag cloud "2250 #~ "target page"2251 #~ msgstr ""2252 #~ "Affichez le nuage de tags MediaTagger dans la colonne latérale. Avant "2253 #~ "tout, vous devez avoir taggé vos médias dans le panneau d'administration "2254 #~ "du plugin MediaTagger, et avoir également défini une page résultat qui "2255 #~ "sera utilisée comme page cible pour le nuage de tags."2256 2257 #, fuzzy2258 #~ msgid ""2259 2259 #~ "The direct PHP call to the MediaTagger plugin core function " 2260 2260 #~ "wpit_multisort_insert() is deprecated starting version 2.5.2 of this " -
wp-mediatagger/trunk/mediatagger-def.php
r854879 r855344 121 121 $t-> plugin_description = 'Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page'; 122 122 123 124 123 ?> -
wp-mediatagger/trunk/mediatagger.php
r854856 r855344 7 7 Author URI: http://www.photos-dauphine.com/ 8 8 Version: 4.0.2 9 Stable Tag: 4.0. 19 Stable Tag: 4.0.2 10 10 */ 11 11 … … 149 149 // 150 150 function plugin_activation(){ 151 global $wpdb;152 151 153 152 self::admin_message_log(self::$t->activation . " :<br/>", true); 154 153 155 // Create DBif not existing154 // Create table if not existing 156 155 // 157 $db_table_legacy = $wpdb->term_relationships . '_img'; // up to release 3.2.1 158 $db_table = self::$SQL_MDTG_TABLE; 159 // For testing, uncomment line below 160 // $db_table = self::$SQL_MDTG_TABLE . '_test'; 161 162 // If table already there, return with no action 163 if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table . '"') == $db_table){ 164 self::admin_message_log(self::$t->table_detected_not_created . ".<br/>"); 165 } else { // create or create AND import 166 $sql = 'CREATE TABLE ' . $db_table . '(object_id BIGINT(20) NOT NULL DEFAULT 0,term_taxonomy_id BIGINT(20) NOT NULL DEFAULT 0,PRIMARY KEY (object_id,term_taxonomy_id),KEY term_taxonomy_id (term_taxonomy_id)) ENGINE=MyISAM DEFAULT CHARSET=utf8;'; 167 $wpdb->query($sql); 168 169 if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table_legacy . '"') == $db_table_legacy){ // copy legacy to new 170 self::admin_message_log(self::$t->table_detected_converted . ".<br/>"); 171 $sql = 'INSERT INTO ' . $db_table . ' SELECT * FROM ' . $db_table_legacy . ';'; 172 $wpdb->query($sql); 173 } else { 174 self::admin_message_log(self::$t->table_not_detected_created . ".<br/>"); 175 } 176 } 177 156 self::check_table_exists(1); 157 178 158 self::load_options($admin_msg); 179 159 self::admin_message_log($admin_msg); … … 2718 2698 } 2719 2699 2700 self::check_table_exists(); 2701 2720 2702 $sql_result = $wpdb->get_results($sql_query); 2721 2703 if (mysql_error()) { … … 2726 2708 return $sql_result; 2727 2709 } 2728 2710 2711 //////////////////////////////////////////////////////////////// 2712 // Check table exists - initialize of copy according to case 2713 // 2714 private function check_table_exists($verbose=0){ 2715 2716 global $wpdb; 2717 $db_table_legacy = $wpdb->term_relationships . '_img'; // up to release 3.2.1 2718 $db_table = self::$SQL_MDTG_TABLE; 2719 // For testing, uncomment line below 2720 // $db_table = self::$SQL_MDTG_TABLE . '_test'; 2721 2722 // If table already there, return with no action 2723 if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table . '"') == $db_table){ 2724 if ($verbose) 2725 self::admin_message_log(self::$t->table_detected_not_created . ".<br/>"); 2726 return; 2727 } else { // create or create AND import 2728 $sql = 'CREATE TABLE ' . $db_table . '(object_id BIGINT(20) NOT NULL DEFAULT 0,term_taxonomy_id BIGINT(20) NOT NULL DEFAULT 0,PRIMARY KEY (object_id,term_taxonomy_id),KEY term_taxonomy_id (term_taxonomy_id)) ENGINE=MyISAM DEFAULT CHARSET=utf8;'; 2729 $wpdb->query($sql); 2730 2731 if ($wpdb->get_var('SHOW TABLES LIKE "' . $db_table_legacy . '"') == $db_table_legacy){ // copy legacy to new 2732 self::admin_message_log(self::$t->table_detected_converted . ".<br/>"); 2733 $sql = 'INSERT INTO ' . $db_table . ' SELECT * FROM ' . $db_table_legacy . ';'; 2734 $wpdb->query($sql); 2735 } else { 2736 self::admin_message_log(self::$t->table_not_detected_created . ".<br/>"); 2737 } 2738 } 2739 } 2729 2740 2730 2741 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 2778 2789 file_put_contents($i18n_filename, file_get_contents($form_file), FILE_APPEND); 2779 2790 file_put_contents($md5_filename, $md5); 2780 2781 // Get i18 file by FTP2782 //self::get_ftp_file('www/wp-content/plugins/wp-mediatagger/languages/mediatagger-def-i18n.php',2783 // 'C:\Users\bruno.bourgeois\Documents\HOME\phd\phd\wp-content\plugins\wp-mediatagger\languages\1234.txt');2784 /*if (unlink('/homez.424/photosdab/www/C:\\Users\\bruno.bourgeois\\Documents\\HOME\\phd\\phd\\wp-content\\plugins\\wp-mediatagger\\languages\\1234.txt'))2785 echo 'SUCCESS <br/>';2786 else2787 echo 'fail <br/>';*/2788 2791 } 2789 2792 } … … 2997 3000 function mdtg_widget_init(){ 2998 3001 $id = self::$PLUGIN_NAME; 2999 wp_register_sidebar_widget($id, $id, array($this, 'mdtg_widget'), array('description'=> __('Display your MediaTagger tag cloud in the sidebar. Before that, you need to have properly tagged your medias in the MediaTagger plugin Admin Panel and have as well setup a result page that you will use as your tag cloud target page', 'mediatagger')));3002 wp_register_sidebar_widget($id, $id, array($this, 'mdtg_widget'), array('description'=>self::$t->plugin_description)); 3000 3003 wp_register_widget_control($id, $id, array($this, 'mdtg_widget_control')); 3001 3004 } -
wp-mediatagger/trunk/readme.txt
r854856 r855344 4 4 Tags: widget, plugin, media, library, images, audio, video, mpeg, mp3, pdf, rtf, txt, taxonomy, photos, tags, tagging, bulk tagging, group tagging, gallery, photoblog, search, engine, classification, database, cleanup 5 5 Requires at least: 3.0 6 Tested up to: 4.0. 17 Stable tag: 4.0. 16 Tested up to: 4.0.2 7 Stable tag: 4.0.2 8 8 9 9 … … 21 21 22 22 23 = 4.0.2 = 24 - Read & write to new table secured with systematic table detection checking. 25 23 26 24 27 = 4.0.1 = 25 28 - Fix widget parameter loading moving from before 4.0 to 4.x 26 27 29 28 30 … … 46 48 47 49 48 49 50 = 3.2.1 = 50 51
Note: See TracChangeset
for help on using the changeset viewer.