diff --git a/columns_preference.php b/columns_preference.php index a475bfb..a0d4217 100644 --- a/columns_preference.php +++ b/columns_preference.php @@ -44,14 +44,14 @@ do_query("insert into `ap_column_preferences`(form_id,element_name,position) values('{$form_id}','{$element_name}','{$position}')"); } - $_SESSION['AP_SUCCESS']['title'] = 'Success'; - $_SESSION['AP_SUCCESS']['desc'] = 'Columns preference successfully saved.'; + $_SESSION['AP_SUCCESS']['title'] = 'Completado'; + $_SESSION['AP_SUCCESS']['desc'] = 'Se han guardado las preferencias de las columnas.'; header("Location: manage_entries.php?id={$form_id}"); exit; }else{ - $_SESSION['AP_ERROR']['title'] = 'An error occured while saving'; - $_SESSION['AP_ERROR']['desc'] = 'Please select at least one column.'; + $_SESSION['AP_ERROR']['title'] = 'Ha ocurrido un error mientras se guardaban las preferencias'; + $_SESSION['AP_ERROR']['desc'] = 'Por favor, seleccione al menos una columna.'; } } @@ -81,9 +81,9 @@ $query = "select element_id,element_title,element_type,element_constraint from `ap_form_elements` where form_id='$form_id' and element_type != 'section' order by element_position asc"; $result = do_query($query); - $column_name_lookup['date_created'] = 'Date Created'; - $column_name_lookup['date_updated'] = 'Date Updated'; - $column_name_lookup['ip_address'] = 'IP Address'; + $column_name_lookup['date_created'] = 'Fecha de alta'; + $column_name_lookup['date_updated'] = 'Fecha de modificación'; + $column_name_lookup['ip_address'] = 'Dirección IP'; while($row = do_fetch_result($result)){ $element_type = $row['element_type']; @@ -97,12 +97,12 @@ $row['element_title'] = htmlspecialchars($row['element_title']); if('address' == $element_type){ //address has 6 fields - $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - Street Address'; - $column_name_lookup['element_'.$row['element_id'].'_2'] = 'Address Line 2'; - $column_name_lookup['element_'.$row['element_id'].'_3'] = 'City'; - $column_name_lookup['element_'.$row['element_id'].'_4'] = 'State/Province/Region'; - $column_name_lookup['element_'.$row['element_id'].'_5'] = 'Zip/Postal Code'; - $column_name_lookup['element_'.$row['element_id'].'_6'] = 'Country'; + $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - Dirección'; + $column_name_lookup['element_'.$row['element_id'].'_2'] = 'Dirección (línea 2)'; + $column_name_lookup['element_'.$row['element_id'].'_3'] = 'Ciudad'; + $column_name_lookup['element_'.$row['element_id'].'_4'] = 'Provincia/Región/Estado'; + $column_name_lookup['element_'.$row['element_id'].'_5'] = 'Codigo postal'; + $column_name_lookup['element_'.$row['element_id'].'_6'] = 'País'; $column_type_lookup['element_'.$row['element_id'].'_1'] = $row['element_type']; $column_type_lookup['element_'.$row['element_id'].'_2'] = $row['element_type']; @@ -112,17 +112,17 @@ $column_type_lookup['element_'.$row['element_id'].'_6'] = $row['element_type']; }elseif ('simple_name' == $element_type){ //simple name has 2 fields - $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - First'; - $column_name_lookup['element_'.$row['element_id'].'_2'] = $row['element_title'].' - Last'; + $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - Primer nombre'; + $column_name_lookup['element_'.$row['element_id'].'_2'] = $row['element_title'].' - Segundo nombre'; $column_type_lookup['element_'.$row['element_id'].'_1'] = $row['element_type']; $column_type_lookup['element_'.$row['element_id'].'_2'] = $row['element_type']; }elseif ('name' == $element_type){ //name has 4 fields - $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - Title'; - $column_name_lookup['element_'.$row['element_id'].'_2'] = $row['element_title'].' - First'; - $column_name_lookup['element_'.$row['element_id'].'_3'] = $row['element_title'].' - Last'; - $column_name_lookup['element_'.$row['element_id'].'_4'] = $row['element_title'].' - Suffix'; + $column_name_lookup['element_'.$row['element_id'].'_1'] = $row['element_title'].' - Título'; + $column_name_lookup['element_'.$row['element_id'].'_2'] = $row['element_title'].' - Primer nombre'; + $column_name_lookup['element_'.$row['element_id'].'_3'] = $row['element_title'].' - Segundo nombre'; + $column_name_lookup['element_'.$row['element_id'].'_4'] = $row['element_title'].' - Sufijo'; $column_type_lookup['element_'.$row['element_id'].'_1'] = $row['element_type']; $column_type_lookup['element_'.$row['element_id'].'_2'] = $row['element_type']; @@ -220,8 +220,8 @@ EOT;
-

Entries Choose Columns

-

Specify which columns are displayed in Entries table

+

Respuestas Seleccionar columnas

+

Indique las columnas que se visualizarán en la lista de respuestas

@@ -232,7 +232,7 @@ EOT; - Choose columns to be displayed: + Seleccione las columnas a visualizar:   @@ -273,7 +273,7 @@ EOT;
- +
diff --git a/config.php b/config.php index 0b4c73e..eb4a960 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ THIS FILE MUST BE RENAMED config.php BEFORE STARTING INSTALLATION */ /** MySQL settings **/ -define('DB_NAME', 'matchform'); //The name of your database. Note that this database must exist before running installer.php +define('DB_NAME', 'mathform'); //The name of your database. Note that this database must exist before running installer.php define('DB_USER', 'matchform'); //Your database username define('DB_PASSWORD', '123456'); //Your database users password define('DB_HOST', 'localhost'); //The hostname for your database diff --git a/edit_form.php b/edit_form.php index 04c6604..39a1c38 100644 --- a/edit_form.php +++ b/edit_form.php @@ -60,7 +60,7 @@ $form->name = 'Formulario sin título'; $form->description = 'Haga click aquí para indicar una breve descripción.'; $form->redirect = ''; - $form->success_message = 'Gracias. Sus respuestas se han enviado correctamente'; + $form->success_message = 'Gracias. Sus respuestas se han enviado correctamente.'; $form->password = ''; $form->frame_height = 0; $form->unique_ip = 0; @@ -164,7 +164,7 @@ $header_data =<< + EOT; @@ -184,7 +184,7 @@ EOT;
- Guardar formulario + Guardar el formulario
@@ -193,7 +193,7 @@ EOT;