-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
75 lines (57 loc) · 1.83 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// set lang here
var lang = 'fr';
// localize strings
if( lang === 'fr') {
var localize = {
"lang" : {
"chooseCameraResolution" : "Résolution de votre caméra :",
"audioInputSource" : "Source audio :",
"audioOutputDestination" : "Destination audio :",
"videoInputSource" : "Source video :",
"videoStreamCouldntBeStartedTryChangingRes" : "Le flux vidéo n’a pas pu être démarré.\nEssayez de modifier la résolution dans le panneau de droite.",
"audioStreamCouldntBeStarted" : "Le flux audio n’a pas pu être démarré.",
"settings" : "Règlages",
"openCamera" : "Camera",
"closeCamera" : "Fermer"
}
};
} else if( lang === 'en') {
var localize = {
"lang" : {
"chooseCameraResolution" : "Choose camera's resolution:",
"audioInputSource" : "audio source:",
"audioOutputDestination" : "audio output:",
"videoInputSource" : "video source:",
"settings" : "Settings",
"openCamera" : "Camera",
"closeCamera" : "Close"
}
};
}
var settings = {
"codelang" : lang,
"contentDirname" : "user",
"metaFileext" : ".txt",
"confMetafilename" : "meta",
"metaDateFormat" : "YYYYMMDD_HHmmss",
"textEncoding" : "UTF-8",
"textFieldSeparator" : "\n\n----\n\n",
"deletedPrefix" : "x_",
"thumbSuffix" : "_thumb",
"mediaThumbWidth" : 320,
"mediaThumbHeight" : 240,
"startingPosX" : 0,
"startingPosY" : 0,
"startingWidth" : .50,
"_comment" : "// see http://regexr.com/3d4t8",
"regexpMatchFolderNames" : "^([^.]+)$",
"regexpMatchProjectPreviewNames" : "^(apercu|preview)",
"regexpGetFileExtension" : "\\.[^.]*$",
"regexpRemoveFileExtension" : "(.+?)(\\.[^.]*$|$)"
};
// should work in ES6
var settings = Object.assign( localize, settings);
try {
module.exports = settings;
} catch( err) {
}