From 8cd455d7b628a5a3c24b8d945b29d1f6d13569bb Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Sat, 7 Sep 2019 10:58:44 +0100 Subject: [PATCH] Translate skill --- translations/en.json | 3 ++- translations/fr.json | 3 ++- webinterface.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/translations/en.json b/translations/en.json index 49cc6513..b13c8cdf 100644 --- a/translations/en.json +++ b/translations/en.json @@ -124,5 +124,6 @@ "A list of moderator nicknames. One per line.": "A list of moderator nicknames. One per line.", "Moderators": "Moderators", "List of moderator nicknames": "List of moderator nicknames", - "Your bio": "Your bio" + "Your bio": "Your bio", + "Skill": "Skill" } diff --git a/translations/fr.json b/translations/fr.json index 77fde780..8d2fddb0 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -124,5 +124,6 @@ "A list of moderator nicknames. One per line.": "Une liste de surnoms de modérateurs. Un par ligne.", "Moderators": "Les modérateurs", "List of moderator nicknames": "Liste des pseudo du modérateur", - "Your bio": "Votre biographie" + "Your bio": "Votre biographie", + "Skill": "Compétence" } diff --git a/webinterface.py b/webinterface.py index cf373e4d..cab7bb21 100644 --- a/webinterface.py +++ b/webinterface.py @@ -444,7 +444,7 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int) skillCtr=1 if skills: 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>' skillCtr+=1