-
Notifications
You must be signed in to change notification settings - Fork 0
/
filetypes.go
69 lines (42 loc) · 1.96 KB
/
filetypes.go
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
package main
var LANG = []string{"en", "fr", "es"}
type FileType struct {
en, fr, es string
}
// Return fileType value given targeted language
func (ft *FileType) val(lang string) string {
switch lang {
case "en":
return ft.en
case "fr":
return ft.fr
case "es":
return ft.es
default:
return ft.en
}
}
var AUDIO FileType = FileType{"Audios", "Audios", "Audios"}
var ARCHIVES FileType = FileType{"Archives", "Archives", "Archivo"}
var OTHERS FileType = FileType{"Others", "Autres", "Otras"}
var MEDIA_ARCHIVES = FileType{"Media_archives", "Médias_archivés", "Archivos_de_medios"}
var CAD = FileType{"CAD", "CAD", "CAD"}
var EDA = FileType{"EDA", "EDA", "EDA"}
var DATABASES = FileType{"Databases", "Bases_de_données", "Bases_de_datos"}
var PUBLISHING = FileType{"Publishing", "Édition", "Publicación"}
var DOCUMENTS = FileType{"Documents", "Documents", "Documentos"}
var FINANCIAL_DATAS = FileType{"Financial_datas", "Données_financières", "Datos_financieros"}
var FONTS = FileType{"Fonts", "Polices", "Fuentes"}
var COLORS = FileType{"Colors", "Couleurs", "Colores"}
var PICTURES = FileType{"Pictures", "Images", "Imágenes"}
var VECTOR_GRAPHICS = FileType{"Vector_graphics", "Images_vectorielles", "Gráficos_vectoriales"}
var _3D_GRAPHICS = FileType{"3D_graphics", "Images_3d", "Gráficos_en_3D"}
var SHORTCUTS = FileType{"Shortcuts", "Raccourcis", "Atajos"}
var EXECUTABLES = FileType{"Executables", "Exécutables", "ejecutables"}
var PRESENTATIONS = FileType{"Slides", "Diapositives", "Diapositivas"}
var PLAYLIST = FileType{"Playlists", "Playlists", "Lista_de_reproducción"}
var SOURCES_CODE = FileType{"Sources_code", "Code_sources", "Código fuente"}
var SPREADSHEETS = FileType{"Spreadsheets", "Feuilles_de_calcul", "Hojas_de_cálculo"}
var VIDEOS = FileType{"Videos", "Vidéos", "Videos"}
var VIRTUAL_MACHINES = FileType{"Virtual_machines", "Machines_virtuelles", "Maquinas_virtuales"}
var WEB_PAGES = FileType{"Web_pages", "Pages_web", "Páginas_web"}