recorder - autotranslate more strings

master
thyttan 2022-12-02 23:15:20 +01:00
parent 6522e0311d
commit db38c19701
3 changed files with 5 additions and 4 deletions

View File

@ -23,3 +23,4 @@
0.17: Use default Bangle formatter for booleans
0.18: Improve widget load speed, allow currently recording track to be plotted in openstmap
0.19: Fix track plotting code
0.20: Automatic translation of some more strings.

View File

@ -61,7 +61,7 @@ function showMainMenu() {
setTimeout(function() {
E.showMenu();
WIDGETS["recorder"].setRecording(v).then(function() {
print("Complete");
print(/*LANG*/"Complete");
loadSettings();
print(settings.recording);
showMainMenu();
@ -96,7 +96,7 @@ function showMainMenu() {
};
var recorders = WIDGETS["recorder"].getRecorders();
Object.keys(recorders).forEach(id=>{
mainmenu["Log "+recorders[id]().name] = menuRecord(id);
mainmenu[/*LANG*/"Log "+recorders[id]().name] = menuRecord(id);
});
delete recorders;
return E.showMenu(mainmenu);
@ -404,7 +404,7 @@ function viewTrack(filename, info) {
title: title,
miny: min,
maxy: max,
xlabel : x=>Math.round(x*dur/(60*infn.length))+" min" // minutes
xlabel : x=>Math.round(x*dur/(60*infn.length))+/*LANG*/" min" // minutes
});
g.setFont("6x8",2);
g.setFontAlign(0,0,3);

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.19",
"version": "0.20",
"description": "Record GPS position, heart rate and more in the background, then download to your PC.",
"icon": "app.png",
"tags": "tool,outdoors,gps,widget",