diff options
author | 2022-03-04 00:37:07 +0100 | |
---|---|---|
committer | 2022-03-04 00:53:12 +0100 | |
commit | 11af0293d48e9c93ea992db3c14185a7b5668291 (patch) | |
tree | 6bcce09c3269f57f7eaa0f57641329d805674521 /src | |
parent | xdg macros: don't fall through if directory not found (#4994) (diff) | |
download | firejail-11af0293d48e9c93ea992db3c14185a7b5668291.tar.gz firejail-11af0293d48e9c93ea992db3c14185a7b5668291.tar.zst firejail-11af0293d48e9c93ea992db3c14185a7b5668291.zip |
xdg macros: add Italian, Spanish, Portuguese, German
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/macros.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/firejail/macros.c b/src/firejail/macros.c index fc0cd355c..0ba64e844 100644 --- a/src/firejail/macros.c +++ b/src/firejail/macros.c | |||
@@ -22,9 +22,11 @@ | |||
22 | #define MAXBUF 4098 | 22 | #define MAXBUF 4098 |
23 | 23 | ||
24 | typedef struct macro_t { | 24 | typedef struct macro_t { |
25 | char *name; // macro name | 25 | char *name; // macro name |
26 | char *xdg; // xdg line in ~/.config/user-dirs.dirs | 26 | char *xdg; // xdg line in ~/.config/user-dirs.dirs |
27 | #define MAX_TRANSLATIONS 3 // several translations in case ~/.config/user-dirs.dirs not found | 27 | // several translations in case ~/.config/user-dirs.dirs not found: |
28 | // English, Russian, French, Italian, Spanish, Portuguese, German | ||
29 | #define MAX_TRANSLATIONS 7 | ||
28 | char *translation[MAX_TRANSLATIONS]; | 30 | char *translation[MAX_TRANSLATIONS]; |
29 | } Macro; | 31 | } Macro; |
30 | 32 | ||
@@ -32,37 +34,37 @@ Macro macro[] = { | |||
32 | { | 34 | { |
33 | "${DOWNLOADS}", | 35 | "${DOWNLOADS}", |
34 | "XDG_DOWNLOAD_DIR=\"$HOME/", | 36 | "XDG_DOWNLOAD_DIR=\"$HOME/", |
35 | { "Downloads", "Загрузки", "Téléchargement" } | 37 | { "Downloads", "Загрузки", "Téléchargement", "Scaricati", "Descargas", "Downloads", "Downloads" } |
36 | }, | 38 | }, |
37 | 39 | ||
38 | { | 40 | { |
39 | "${MUSIC}", | 41 | "${MUSIC}", |
40 | "XDG_MUSIC_DIR=\"$HOME/", | 42 | "XDG_MUSIC_DIR=\"$HOME/", |
41 | {"Music", "Музыка", "Musique"} | 43 | {"Music", "Музыка", "Musique", "Musica", "Música", "Música", "Musik" } |
42 | }, | 44 | }, |
43 | 45 | ||
44 | { | 46 | { |
45 | "${VIDEOS}", | 47 | "${VIDEOS}", |
46 | "XDG_VIDEOS_DIR=\"$HOME/", | 48 | "XDG_VIDEOS_DIR=\"$HOME/", |
47 | {"Videos", "Видео", "Vidéos"} | 49 | {"Videos", "Видео", "Vidéos", "Video", "Vídeos", "Vídeos", "Videos" } |
48 | }, | 50 | }, |
49 | 51 | ||
50 | { | 52 | { |
51 | "${PICTURES}", | 53 | "${PICTURES}", |
52 | "XDG_PICTURES_DIR=\"$HOME/", | 54 | "XDG_PICTURES_DIR=\"$HOME/", |
53 | {"Pictures", "Изображения", "Photos"} | 55 | {"Pictures", "Изображения", "Photos", "Immagini", "Imágenes", "Imagens", "Bilder" } |
54 | }, | 56 | }, |
55 | 57 | ||
56 | { | 58 | { |
57 | "${DESKTOP}", | 59 | "${DESKTOP}", |
58 | "XDG_DESKTOP_DIR=\"$HOME/", | 60 | "XDG_DESKTOP_DIR=\"$HOME/", |
59 | {"Desktop", "Рабочий стол", "Bureau"} | 61 | {"Desktop", "Рабочий стол", "Bureau", "Scrivania", "Escritorio", "Área de trabalho", "Schreibtisch" } |
60 | }, | 62 | }, |
61 | 63 | ||
62 | { | 64 | { |
63 | "${DOCUMENTS}", | 65 | "${DOCUMENTS}", |
64 | "XDG_DOCUMENTS_DIR=\"$HOME/", | 66 | "XDG_DOCUMENTS_DIR=\"$HOME/", |
65 | {"Documents", "Документы", "Documents"} | 67 | {"Documents", "Документы", "Documents", "Documenti", "Documentos", "Documentos", "Dokumente" } |
66 | }, | 68 | }, |
67 | 69 | ||
68 | { 0 } | 70 | { 0 } |