Add missing text in diseases
This commit is contained in:
@ -70,22 +70,25 @@ Hooks.once('init', () => {
|
||||
},
|
||||
// To avoid duplicateing class for all careers
|
||||
"generic_localization": (value) => {
|
||||
return game.i18n.localize( value.trim() );
|
||||
if ( value )
|
||||
return game.i18n.localize( value.trim() );
|
||||
},
|
||||
"trapping_qualities_flaws": (value) => {
|
||||
var list = value.split( "," );
|
||||
var i=0;
|
||||
var re = /(.*) (\d+)/i;
|
||||
for (i=0; i<list.length; i++) {
|
||||
var splitted = re.exec( list[i].trim() );
|
||||
if ( splitted ) {
|
||||
//console.log("FOund:", splitted[0], splitted[1], splitted[2] );
|
||||
list[i] = game.i18n.localize( splitted[1] ) + " " + splitted[2];
|
||||
} else {
|
||||
list[i] = game.i18n.localize( list[i].trim() ) ;
|
||||
"trapping_qualities_flaws": (value) => {
|
||||
if ( value ) {
|
||||
var list = value.split( "," );
|
||||
var i=0;
|
||||
var re = /(.*) (\d+)/i;
|
||||
for (i=0; i<list.length; i++) {
|
||||
var splitted = re.exec( list[i].trim() );
|
||||
if ( splitted ) {
|
||||
//console.log("FOund:", splitted[0], splitted[1], splitted[2] );
|
||||
list[i] = game.i18n.localize( splitted[1] ) + " " + splitted[2];
|
||||
} else {
|
||||
list[i] = game.i18n.localize( list[i].trim() ) ;
|
||||
}
|
||||
}
|
||||
return list.toString();
|
||||
}
|
||||
return list.toString();
|
||||
},
|
||||
// Search back in careers the translated name of the groupe (as it is the name of the level career itself)
|
||||
"career_careergroup": (value) => {
|
||||
|
Reference in New Issue
Block a user