Translate skill

master
Bob Mottram 2019-09-07 10:58:44 +01:00
parent 1539395ae4
commit 8cd455d7b6
3 changed files with 5 additions and 3 deletions

View File

@ -124,5 +124,6 @@
"A list of moderator nicknames. One per line.": "A list of moderator nicknames. One per line.", "A list of moderator nicknames. One per line.": "A list of moderator nicknames. One per line.",
"Moderators": "Moderators", "Moderators": "Moderators",
"List of moderator nicknames": "List of moderator nicknames", "List of moderator nicknames": "List of moderator nicknames",
"Your bio": "Your bio" "Your bio": "Your bio",
"Skill": "Skill"
} }

View File

@ -124,5 +124,6 @@
"A list of moderator nicknames. One per line.": "Une liste de surnoms de modérateurs. Un par ligne.", "A list of moderator nicknames. One per line.": "Une liste de surnoms de modérateurs. Un par ligne.",
"Moderators": "Les modérateurs", "Moderators": "Les modérateurs",
"List of moderator nicknames": "Liste des pseudo du modérateur", "List of moderator nicknames": "Liste des pseudo du modérateur",
"Your bio": "Votre biographie" "Your bio": "Votre biographie",
"Skill": "Compétence"
} }

View File

@ -444,7 +444,7 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int)
skillCtr=1 skillCtr=1
if skills: if skills:
for skillDesc,skillValue in skills.items(): for skillDesc,skillValue in skills.items():
skillsStr+='<p><input type="text" placeholder="Skill '+str(skillCtr)+'" name="skillName'+str(skillCtr)+'" value="'+skillDesc+'" style="width:40%">' skillsStr+='<p><input type="text" placeholder="'+translate['Skill']+' '+str(skillCtr)+'" name="skillName'+str(skillCtr)+'" value="'+skillDesc+'" style="width:40%">'
skillsStr+='<input type="range" min="1" max="100" class="slider" name="skillValue'+str(skillCtr)+'" value="'+str(skillValue)+'"></p>' skillsStr+='<input type="range" min="1" max="100" class="slider" name="skillValue'+str(skillCtr)+'" value="'+str(skillValue)+'"></p>'
skillCtr+=1 skillCtr+=1