• Resolved Devil75

    (@devil75)


    Hi,
    it’s possible to have on the next releases the options to translate the variables of the status and severity of the tickets (Open, Closed and Low, Normal, High, Urgent, Critical)???
    And also the translation of the tabs (in the admin panel) Open and Closed!

    Thank a lot and best regards.
    Luigi

    Some examples of my custom personalizations in italian language:

    $output .= '</select></div>
                    <div style="float:left;margin-left:20px;"><h3>' . __('Severity', 'wpsc-support-tickets') . '</h3>
                        <select name="wpscst_severity">
                            <option value="Bassa"';
                                if ($results[0]['severity'] == 'Bassa') {
                                    $output.= ' selected="selected" ';
                                } $output.='>
                                ' . __('Bassa', 'wpsc-support-tickets') . '
                            </option>
                            <option value="Normale"';
                                if ($results[0]['severity'] == 'Normale') {
                                    $output.= ' selected="selected" ';
                                } $output.='>
                                ' . __('Normale', 'wpsc-support-tickets') . '
                            </option>
                            <option value="Alta"';
                                if ($results[0]['severity'] == 'Alta') {
                                    $output.= ' selected="selected" ';
                                } $output.='>
                                ' . __('Alta', 'wpsc-support-tickets') . '
                            </option>
                            <option value="Urgente"';
                                if ($results[0]['severity'] == 'Urgente') {
                                    $output.= ' selected="selected" ';
                                } $output.='>
                                ' . __('Urgente', 'wpsc-support-tickets') . '
                            </option>
                            <option value="Critica"';
                                if ($results[0]['severity'] == 'Critica') {
                                    $output.= ' selected="selected" ';
                                } $output.='>
                                ' . __('Critica', 'wpsc-support-tickets') . '
                            </option>
                        </select>

    …or for the status:

    $table_name = $wpdb->prefix . "wpscst_tickets";
                $sql = "SELECT * FROM <code>{$table_name}</code> WHERE <code>resolution</code>='{$resolution}' ORDER BY <code>last_updated</code> DESC;";
                $results = $wpdb->get_results($sql, ARRAY_A);
                if (isset($results) && isset($results[0]['primkey'])) {
                    if ($resolution === 'Aperto') {
                        $output .= '<h3>' . __('View Open Tickets:', 'wpsc-support-tickets') . '</h3>';
                    } elseif ($resolution === 'Chiuso') {
                        $output .= '<h3>' . __('View Closed Tickets:', 'wpsc-support-tickets') . '</h3>';
                    }

    https://www.ads-software.com/plugins/wpsc-support-tickets/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Translation of variables Open/Closed/Urgent etc.’ is closed to new replies.