|
[Résolu] Personnaliser les états D'UN des projets D'UN Mantis ?Posted by gom
Bonjour à tous,
Est-il possible de faire cela ? Pour personnaliser l'affichage, je pense avoir trouvé la réponse : [www.mantisbt.org]. Gôm Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c Edited 1 time(s). Last edit at 10/14/2008 11:59AM by gom.
Oui.
J'imagine qu'il faut dire comment ? 2 solutions : 1) En passant par la page de configuration dans Manage 2) en utilisant la fonction config_set( 'nom', valeur, NO_USER, project_id ); Ainsi par exemple :
Je me suis limité au strict minimum, il faut bien sûr vérifier les syntaxes. Ce code est a écrire dans un fichier qu'il faut consulter 1 fois par le biais du navigateur. Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Salut Vincent,
J'ai choisi la 1ère solution : Bon bien sûr, j'ai encore un problème ... il faudrait que je modifie ces libellés, mais différemment pour chaque projet. Comment créer cela dans "custom_strings_inc.php" ? Et est-ce bien dans ce fichier ? Merci de me donner encore un petit coup de main. Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c Edited 1 time(s). Last edit at 10/07/2008 12:33PM by gom.
Le problème est qu'elle sera valable pour TOUS LES PROJETS et moi je souhaite qu'elle soit différente pour CHAQUE PROJET. Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c Edited 1 time(s). Last edit at 10/07/2008 02:23PM by deboutv.
C'est pas possible ou beaucoup trop dangereux. Il vaut mieux avoir une chaîne qui contient tous les projets. De 0 à 5 les états du projet 1, de 6 à 10 les états du projet 2...
Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Avoir une chaîne de caractères qui contient les statuts de tous les projets n'est pas également dangereux ?
De plus, je vais tout avoir en multiples exemplaires, car seul un statut diffère d'un projet à l'autre. Dommage ! Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c
Le problème est qu'ils sont des états commun, mais avec une traduction en français différente !
Exemple : - 30:acknowledged = approuvé (Projet 1) - 30:acknowledged = assigné (Projet 2) Donc, on en revient au point de départ, il me faut dupliquer tous mes états en autant de fois que j'ai un libellé différent ? Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c Edited 1 time(s). Last edit at 10/07/2008 05:13PM by gom.
Effectivement, j'ai simplement eu à compléter mon "config_inc.php" :
################################ # Mantis Look and Feel Variables ################################ # --- status color codes ---------- # $g_status_colors = array( 'new' => '#ffa0a0', # 10 : red, 'feedback' => '#ff50a8', # 20 : purple 'acknowledged' => '#ffd850', # 30 : orange 'allocated' => '#ffd850', # 31 : orange 'analysed' => '#b0e0e6', # 32 : powderblue 'confirmed' => '#ffffb0', # 40 : yellow 'approved' => '#fff68f', # 41 : khaki1 'assigned' => '#c8c8ff', # 50 : blue 'commissioning'=> '#CD9B9B', # 51 : rosybrown3 'resolved' => '#cceedd', # 80 : buish-green 'solved' => '#cceedd', # 80 : buish-green 'closed' => '#e8e8e8' # 90 : light gray ########################### # Mantis Enum Strings ########################### # --- enum strings ---------------- $g_status_enum_string = '10:new, 30:acknowledged, 31:allocated, 32:analysed, 41:approved, 50:assigned, 51:commissioning, 80:resolved, 81:solved, 90:closed'; J'ai également modifié mon "strings_french.txt" : #$s_status_enum_string = '10:nouveau, 20:commentaire, 30:accepté, 40:confirmé, 50:affecté, 80:résolu, 90:fermé'; $s_status_enum_string = '10:Nouveau, 20:Commentaire, 30:Approuvé, 31:Assigné, 32:Analysé, 40:Confirmé, 41:Approuvé, 50:En cours, 51:A recetter, 80:Résolu, 81:Recetté OK, 90:Fermé'; Par contre, j'avais un problème avec le bouton suivant : Un clique sur ce bouton redirige l'utilisateur vers le formulaire suivant : Il faut donc penser à ajouter les lignes correspondantes (toujours dans le(s) fichier(s) de langue) : # bug_change_status_page.php $s_new_bug_title = 'Nouvel incident'; $s_feedback_bug_title = 'Demander un commentaire sur l\'incident'; $s_acknowledged_bug_title = 'Approuver l\'incident'; $s_allocated_bug_title = 'Assigner l\'incident'; $s_analysed_bug_title = 'Analyse de l\'incident'; $s_confirmed_bug_title = 'Confirmer l\'incident'; $s_approved_bug_title = 'Approuver l\'incident'; $s_assigned_bug_title = 'Incident en cours'; $s_commissioning_bug_title = 'Incident à recetter'; $s_new_bug_button = 'Nouvel incident'; $s_feedback_bug_button = 'Demander un commentaire'; $s_acknowledged_bug_button = 'Incident approuvé'; $s_allocated_bug_button = 'Assigner l\'incident'; $s_analysed_bug_button = 'Incident analysé'; $s_confirmed_bug_button = 'Incident confirmé'; $s_approved_bug_button = 'Incident approuvé'; $s_assigned_bug_button = 'Incident assigné'; $s_commissioning_bug_button = 'Incident à recetter'; [...] # bug_resolve_page.php [...] $s_solved_bug_title = 'Résolution d\'un incident'; $s_solved_bug_button = 'Recette OK - Incident résolu'; De plus, il faut penser à compléter le(s) fichier(s) de langue pour les emails : $s_email_notification_title_for_status_bug_new = 'L\'incident suivant est de nouveau à l\'état « nouveau ».'; $s_email_notification_title_for_status_bug_feedback = 'L\'incident suivant nécessite votre commentaire.'; $s_email_notification_title_for_status_bug_acknowledged = 'L\'incident suivant a été approuvé.'; $s_email_notification_title_for_status_bug_allocated = 'L\'incident suivant a été assigné.'; $s_email_notification_title_for_status_bug_analysed = 'L\'incident suivant a été analysé.'; $s_email_notification_title_for_status_bug_approved = 'L\'incident suivant a été approuvé.'; $s_email_notification_title_for_status_bug_confirmed = 'L\'incident suivant a été confirmé.'; $s_email_notification_title_for_status_bug_assigned = 'L\'incident suivant est en cours.'; $s_email_notification_title_for_status_bug_commissioning = 'L\'incident suivant est à recetter.'; $s_email_notification_title_for_status_bug_resolved = 'L\'incident suivant a été résolu.'; $s_email_notification_title_for_status_bug_closed = 'L\'incident suivant a été fermé.'; Gôm Mantis : 1.0.6 - 1.1.2 (avec Plugins) Apache : 2.0.63 PHP : 4.4.9 MySQL : 5.0.51b OS : Windows 2003 Server R2 SP2 Environnement : WAMP Server 2.0c
Sorry, only registered users may post in this forum.
Online Users
Guests:
7
Record Number of Users:
1
on April 02, 2023
Record Number of Guests:
115
on November 09, 2023
Top Users
|