Bonjour,
Vous n&
#039;aimez pas la traduction française de
bug (à savoir bogue) ? Voici un petit bout de code qui va résoudre votre problème.
A placer dans un fichier nommé
custom_strings_inc.php (à créer s&
#039;il n&
#039;existe pas) :
if ( lang_get_current() == 'french' ) {
$t_vars = get_defined_vars();
foreach ( array_keys( $t_vars ) as $t_var ) {
$$t_var = str_replace( 'bogue', 'bug', $$t_var );
$$t_var = str_replace( 'Bogue', 'Bug', $$t_var );
}
}
Donc vous pouvez, par exemple, transformer votre
bugtracker en
tickettracker avec le code suivant :
if ( lang_get_current() == 'french' ) {
$t_vars = get_defined_vars();
foreach ( array_keys( $t_vars ) as $t_var ) {
$$t_var = str_replace( 'bogue', 'ticket', $$t_var );
$$t_var = str_replace( 'Bogue', 'Ticket', $$t_var );
}
} else if ( lang_get_current() == 'english' ) {
$t_vars = get_defined_vars();
foreach ( array_keys( $t_vars ) as $t_var ) {
$$t_var = str_replace( 'bug', 'ticket', $$t_var );
$$t_var = str_replace( 'Bug', 'Ticket', $$t_var );
}
}
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