Plugin Directory

Changeset 1824704


Ignore:
Timestamp:
02/19/2018 04:05:07 PM (8 years ago)
Author:
tresrl
Message:

SimplestForm V 2.0.3

Location:
simplest-form/trunk
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • simplest-form/trunk/__POT/messages.pot

    r1767975 r1824704  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-11-16 12:27+0100\n"
    12 "PO-Revision-Date: 2017-11-16 12:27+0100\n"
     11"POT-Creation-Date: 2018-02-19 16:56+0100\n"
     12"PO-Revision-Date: 2018-02-19 16:56+0100\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1414"Language-Team: LANGUAGE <LL@li.org>\n"
     
    3333
    3434#: src/Simplestform/Admin.php:344 src/Simplestform/Admin.php:365
    35 #: src/Simplestform/Admin.php:390 src/Simplestform/Admin.php:697
    36 #: src/Simplestform/Admin.php:723 src/Simplestform/Admin.php:749
    37 #: src/Simplestform/Email.php:248 src/Simplestform/Email.php:255
    38 #: src/Simplestform/Email.php:269
     35#: src/Simplestform/Admin.php:390 src/Simplestform/Admin.php:826
     36#: src/Simplestform/Admin.php:852 src/Simplestform/Admin.php:878
     37#: src/Simplestform/Email.php:335 src/Simplestform/Email.php:342
     38#: src/Simplestform/Email.php:356
    3939msgid "Si"
    4040msgstr ""
     
    4242#: src/Simplestform/Admin.php:348 src/Simplestform/Admin.php:369
    4343#: src/Simplestform/Admin.php:375 src/Simplestform/Admin.php:394
    44 #: src/Simplestform/Admin.php:400 src/Simplestform/Admin.php:701
    45 #: src/Simplestform/Admin.php:727 src/Simplestform/Admin.php:753
    46 #: src/Simplestform/Email.php:259 src/Simplestform/Email.php:273
     44#: src/Simplestform/Admin.php:400 src/Simplestform/Admin.php:830
     45#: src/Simplestform/Admin.php:856 src/Simplestform/Admin.php:882
     46#: src/Simplestform/Email.php:346 src/Simplestform/Email.php:360
    4747msgid "No"
    4848msgstr ""
    4949
    50 #: src/Simplestform/Admin.php:447
     50#: src/Simplestform/Admin.php:461
    5151msgid "Settings"
    5252msgstr ""
    5353
    54 #: src/Simplestform/Admin.php:485 src/Simplestform/Email.php:226
    55 #: views/frontend/basic-form.php:86
     54#: src/Simplestform/Admin.php:499 src/Simplestform/Email.php:313
     55#: views/frontend/basic-form.php:1 views/frontend/basic-form.php:88
    5656msgid "Nome"
    5757msgstr ""
    5858
    59 #: src/Simplestform/Admin.php:486 src/Simplestform/Email.php:236
    60 #: views/frontend/basic-form.php:110
     59#: src/Simplestform/Admin.php:500 src/Simplestform/Email.php:323
     60#: views/frontend/basic-form.php:112
    6161msgid "Email"
    6262msgstr ""
    6363
    64 #: src/Simplestform/Admin.php:487 src/Simplestform/Admin.php:560
     64#: src/Simplestform/Admin.php:501 src/Simplestform/Admin.php:641
    6565msgid "Messaggio"
    6666msgstr ""
    6767
    68 #: src/Simplestform/Admin.php:488 src/Simplestform/Admin.php:540
    69 #: src/Simplestform/Email.php:242
     68#: src/Simplestform/Admin.php:502 src/Simplestform/Admin.php:619
     69#: src/Simplestform/Email.php:329
    7070msgid "Pagina"
    7171msgstr ""
    7272
    73 #: src/Simplestform/Admin.php:489
     73#: src/Simplestform/Admin.php:503
    7474msgid "Privacy"
    7575msgstr ""
    7676
    77 #: src/Simplestform/Admin.php:490
     77#: src/Simplestform/Admin.php:504
    7878msgid "Privacy ART 4"
    7979msgstr ""
    8080
    81 #: src/Simplestform/Admin.php:491
     81#: src/Simplestform/Admin.php:505
    8282msgid "Privacy ART 5"
    8383msgstr ""
    8484
    85 #: src/Simplestform/Admin.php:492
     85#: src/Simplestform/Admin.php:506
    8686msgid "Data"
    8787msgstr ""
    8888
    89 #: src/Simplestform/Admin.php:580 src/Simplestform/Email.php:247
     89#: src/Simplestform/Admin.php:507
     90msgid "Confermato il"
     91msgstr ""
     92
     93#: src/Simplestform/Admin.php:559
     94msgid "IP conferma"
     95msgstr ""
     96
     97#: src/Simplestform/Admin.php:579
     98msgid "Data conferma email"
     99msgstr ""
     100
     101#: src/Simplestform/Admin.php:599
     102msgid "IP"
     103msgstr ""
     104
     105#: src/Simplestform/Admin.php:661 src/Simplestform/Email.php:334
    90106msgid "Accettazione privacy"
    91107msgstr ""
    92108
    93 #: src/Simplestform/Admin.php:600 src/Simplestform/Email.php:267
     109#: src/Simplestform/Admin.php:681 src/Simplestform/Email.php:354
    94110msgid "Accettazione privacy ART 5"
    95111msgstr ""
    96112
    97 #: src/Simplestform/Admin.php:620 src/Simplestform/Email.php:253
     113#: src/Simplestform/Admin.php:701 src/Simplestform/Email.php:340
    98114msgid "Accettazione privacy ART 4"
    99115msgstr ""
    100116
    101 #: src/Simplestform/Admin.php:640 src/Simplestform/Email.php:231
    102 #: views/frontend/basic-form.php:98
     117#: src/Simplestform/Admin.php:721 src/Simplestform/Email.php:318
     118#: views/frontend/basic-form.php:100
    103119msgid "Telefono"
    104120msgstr ""
    105121
    106 #: src/Simplestform/Admin.php:806
     122#: src/Simplestform/Admin.php:935
    107123msgctxt "Post Type Singular Name"
    108124msgid "Form"
    109125msgstr ""
    110126
    111 #: src/Simplestform/Admin.php:809
     127#: src/Simplestform/Admin.php:938
    112128msgid "Aggiungi"
    113129msgstr ""
    114130
    115 #: src/Simplestform/Admin.php:812
     131#: src/Simplestform/Admin.php:941
    116132msgid "Tutte le richieste"
    117133msgstr ""
    118134
    119 #: src/Simplestform/Admin.php:818
     135#: src/Simplestform/Admin.php:947
    120136msgid "Modifica"
    121137msgstr ""
    122138
    123 #: src/Simplestform/Admin.php:821
     139#: src/Simplestform/Admin.php:950
    124140msgid "Nuovo"
    125141msgstr ""
    126142
    127 #: src/Simplestform/Admin.php:824
     143#: src/Simplestform/Admin.php:953
    128144msgid "Dettaglio"
    129145msgstr ""
    130146
    131 #: src/Simplestform/Admin.php:827
     147#: src/Simplestform/Admin.php:956
    132148msgid "Cerca"
    133149msgstr ""
    134150
    135 #: src/Simplestform/Admin.php:830
     151#: src/Simplestform/Admin.php:959
    136152msgid "Nessun risultato"
    137153msgstr ""
    138154
    139 #: src/Simplestform/Admin.php:833
     155#: src/Simplestform/Admin.php:962
    140156msgid "Nessun risultato nel cestino"
    141157msgstr ""
    142158
    143 #: src/Simplestform/Admin.php:836
     159#: src/Simplestform/Admin.php:965
    144160msgid "Genitore:"
    145161msgstr ""
    146162
    147 #: src/Simplestform/Admin.php:1011
     163#: src/Simplestform/Admin.php:1140
    148164msgid "You do not have sufficient permissions to access this page."
    149165msgstr ""
    150166
    151 #: src/Simplestform/Email.php:208
     167#: src/Simplestform/Base.php:332
     168msgid "La tua richiesta è stata confermata con successo. Grazie!"
     169msgstr ""
     170
     171#: src/Simplestform/Base.php:333
     172msgid ""
     173"Non abbiamo trovato alcuna richiesta. Forse hai già confermato questa "
     174"richiesta oppure il link è scaduto? Ricorda che devi confermare la tua "
     175"richiesta entro 24h!"
     176msgstr ""
     177
     178#: src/Simplestform/Email.php:228
    152179msgid "Copia della richiesta di informazioni"
    153180msgstr ""
    154181
    155 #: src/Simplestform/Email.php:209
     182#: src/Simplestform/Email.php:229
    156183msgid "grazie per averci scritto."
    157184msgstr ""
    158185
    159 #: src/Simplestform/Email.php:210
    160 msgid ""
    161 "Nel più breve tempo possibile sarai ricontattato con le risposte alle tue "
    162 "domande."
    163 msgstr ""
    164 
    165 #: src/Simplestform/Email.php:211
     186#: src/Simplestform/Email.php:232
     187msgid ""
     188"Per registrare la tua richiesta devi confermare l'operazione cliccando sul "
     189"bottone seguente"
     190msgstr ""
     191
     192#: src/Simplestform/Email.php:234
     193msgid ""
     194"Se non si clicca sul link entro 24 ore, la tua richiesta verrà cancellata. "
     195"Dovrai pertanto eseguire una nuova richiesta"
     196msgstr ""
     197
     198#: src/Simplestform/Email.php:236
    166199msgid ""
    167200"Nel frattempo, qui sotto trovi una copia delle informazioni inserite. Se "
     
    169202msgstr ""
    170203
    171 #: src/Simplestform/Frontend.php:199
     204#: src/Simplestform/Email.php:238
     205msgid "Conferma la tua richiesta"
     206msgstr ""
     207
     208#: src/Simplestform/Email.php:290
     209msgid "Richiesta confermata in data"
     210msgstr ""
     211
     212#: src/Simplestform/Frontend.php:193
    172213msgid "Non inserire nulla nel campo \"Trap\""
    173214msgstr ""
    174215
    175 #: src/Simplestform/Frontend.php:356
     216#: src/Simplestform/Frontend.php:357
    176217msgid "Alcuni campi obbligatori non sono stati compilati"
    177218msgstr ""
    178219
    179 #: src/Simplestform/Frontend.php:364
     220#: src/Simplestform/Frontend.php:365
    180221msgid "L'email inserita non sembra corretta"
    181222msgstr ""
    182223
    183 #: src/Simplestform/Frontend.php:371
     224#: src/Simplestform/Frontend.php:372
    184225msgid "L'accettazione privacy è obbligatoria"
    185226msgstr ""
    186227
    187 #: src/Simplestform/Frontend.php:402
     228#: src/Simplestform/Frontend.php:403
    188229#, php-format
    189230msgid ""
     
    373414msgstr ""
    374415
    375 #: views/frontend/basic-form.php:122
     416#: views/frontend/basic-form.php:124
    376417msgid "Richiesta"
    377418msgstr ""
    378419
    379 #: views/frontend/basic-form.php:140
    380 msgid ""
    381 "Autorizzo il trattamento dei miei dati, come riportato nella policy privacy"
    382 msgstr ""
    383 
    384 #: views/frontend/basic-form.php:163
    385 msgid "Ho letto l'informativa ed accetto le finalità previste dall'art. 4"
    386 msgstr ""
    387 
    388 #: views/frontend/basic-form.php:180
    389 msgid "Ho letto l'informativa ed accetto le finalità previste dall'art. 5"
    390 msgstr ""
    391 
    392 #: views/frontend/basic-form.php:195
     420#: views/frontend/basic-form.php:142
     421msgid ""
     422"Autorizzo il trattamento dei miei dati, come riportato alla lett. A punti "
     423"1,2 e 3 della policy privacy"
     424msgstr ""
     425
     426#: views/frontend/basic-form.php:165
     427msgid ""
     428"Ho letto l'informativa privacy ed accetto le finalità previste (Lett. A,  "
     429"punto 4)"
     430msgstr ""
     431
     432#: views/frontend/basic-form.php:182
     433msgid ""
     434"Ho letto l'informativa privacy ed accetto le finalità previste (Lett. A,  "
     435"punto 5)"
     436msgstr ""
     437
     438#: views/frontend/basic-form.php:197
    393439msgid "Non inserire nulla in questo campo"
    394440msgstr ""
    395441
    396 #: views/frontend/basic-form.php:201
     442#: views/frontend/basic-form.php:203
    397443msgid "Invia"
    398444msgstr ""
  • simplest-form/trunk/readme.txt

    r1804560 r1824704  
    44Requires at least: 4.7
    55Tested up to: 4.9.2
    6 Stable tag: 2.0.2
     6Stable tag: 2.0.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3434
    3535== Changelog ==
     36
     37= 2.0.3 =
     38* Added translation
    3639
    3740= 2.0.2 =
  • simplest-form/trunk/simplestform.php

    r1804560 r1824704  
    77Author: TRe Technology And Research S.r.l.
    88Author URI: http://www.tresrl.it
    9 Version: 2.0.2
     9Version: 2.0.3
    1010License: GPL-2.0+
    1111*/
     
    7070}
    7171
    72 
    7372/**
    7473 * The base dir of the plugin.
     
    8382$base_dir = plugin_dir_path( __FILE__ );
    8483$plugin_base_name = plugin_basename(__FILE__);
     84
     85
     86/**
     87 * Load plugin textdomain.
     88 * The directory doesn't need to have full path!!!
     89 *
     90 * @since 2.0.3
     91 */
     92add_action( 'init', 'enable_translation' );
     93
     94function enable_translation() {
     95       
     96    load_plugin_textdomain( 'simplestform_language_domain' , FALSE , basename( dirname( __FILE__ ) ).'/inc/lang/' );
     97   
     98   
     99}
    85100
    86101if ( is_admin() ) {
  • simplest-form/trunk/src/Simplestform/Base.php

    r1782511 r1824704  
    3535     * @var string
    3636     */
    37     private $_version = '2.0';
     37    private $_version = '2.0.3';
    3838   
    3939    /**
     
    493493            $api_key = esc_attr( get_option ( $this->get_prefix().'option_api_key' ));
    494494               
    495             if ( $need_to_check === true ) {
    496            
    497                 if ( get_home_url() == 'http://www.tresrl.it' ) {
    498                    
    499                     $authorized = true;
    500                    
    501                 } else {
    502                
    503                     $api_key = esc_attr( get_option ( $this->get_prefix().'option_api_key' ));
    504                        
    505                     if ( $api_key ) {
     495            if ( get_home_url() == 'http://www.tresrl.it' ) {
     496               
     497                $authorized = true;
     498                   
     499            } else {
     500               
     501                if ( $api_key ) {
     502                   
     503                    $endpoint = $this->get_api_endpoint_url();
     504                    $url = $endpoint.'api='.$api_key.'&service=simplestform';
    506505                           
    507                         $endpoint = $this->get_api_endpoint_url();
    508                         $url = $endpoint.'api='.$api_key.'&service=simplestform';
     506                    $get = wp_remote_get ( $url );
    509507                           
    510                         $get = wp_remote_get ( $url );
     508                    if ( is_array ( $get ) ) {
    511509                           
    512                         if ( is_array ( $get ) ) {
     510                        $response = wp_remote_retrieve_body( $get );
     511                               
     512                        $response = json_decode($response);
     513                               
     514                        if ( isset ( $response->authorized ) ) {
     515                               
     516                            $authorized = $response->authorized;
     517                                   
     518                        }
     519                               
     520                    }
    513521                           
    514                             $response = wp_remote_retrieve_body( $get );
    515                                
    516                             $response = json_decode($response);
    517                                
    518                             if ( isset ( $response->authorized ) ) {
    519                                
    520                                 $authorized = $response->authorized;
    521                                    
    522                             }
    523                                
    524                         }
    525                            
    526                     }
    527                    
    528522                }
    529                
     523                   
    530524            }
    531525               
  • simplest-form/trunk/views/admin/settings.php

    r1767975 r1824704  
    2121        if ( !is_plugin_active('wp-mail-smtp/wp_mail_smtp.php') ) {
    2222           
    23             $notice = _x( 'Invia le email in modalità sicura. Installa il plugin <strong>%s</strong>.' , TRELANDING__LANGUAGE_DOMAIN );
     23            $notice = _x( 'Invia le email in modalità sicura. Installa il plugin <strong>%s</strong>.' , $this->get_language_domain() );
    2424           
    2525            ?>
    2626           
    2727                <div class="notice notice-warning">
    28                     <p><strong><?php printf( $notice , 'WP Mail SMTP by Callum Macdonald' ); ?></strong></p>
     28                    <p><strong><?php printf( $notice , 'WP Mail SMTP by WP Forms' ); ?></strong></p>
    2929                </div>
    3030           
  • simplest-form/trunk/views/frontend/basic-form.php

    r1771340 r1824704  
     1<h1><?php _e( 'Nome' , 'simplestform_language_domain' ) ?></h1>
     2
    13<div class="main-simplestform-container">
    24
Note: See TracChangeset for help on using the changeset viewer.