Skip to content

Commit 145fd61

Browse files
authored
Revert "Mark constants translatable (#114)"
This reverts commit 1cd5e56.
1 parent 1cd5e56 commit 145fd61

2 files changed

Lines changed: 67 additions & 21 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"id" : "io.github.revisto.drum-machine",
3+
"runtime" : "org.gnome.Platform",
4+
"runtime-version" : "48",
5+
"sdk" : "org.gnome.Sdk",
6+
"command" : "drum-machine",
7+
"finish-args" : [
8+
"--share=ipc",
9+
"--socket=fallback-x11",
10+
"--device=dri",
11+
"--socket=wayland",
12+
"--socket=pulseaudio"
13+
],
14+
"cleanup" : [
15+
"/include",
16+
"/lib/pkgconfig",
17+
"/man",
18+
"/share/doc",
19+
"/share/gtk-doc",
20+
"/share/man",
21+
"/share/pkgconfig",
22+
"*.la",
23+
"*.a"
24+
],
25+
"modules" : [
26+
"python-dependencies.json",
27+
{
28+
"name": "blueprint-compiler",
29+
"buildsystem": "meson",
30+
"cleanup": ["*"],
31+
"sources": [
32+
{
33+
"type": "git",
34+
"url": "https://gitlab.gnome.org/GNOME/blueprint-compiler",
35+
"tag": "0.18.0"
36+
}
37+
]
38+
},
39+
{
40+
"name" : "drum-machine",
41+
"builddir" : true,
42+
"buildsystem" : "meson",
43+
"sources" : [
44+
{
45+
"type" : "dir",
46+
"path" : "."
47+
}
48+
]
49+
}
50+
]
51+
}

src/config/constants.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,27 @@
1818
# SPDX-License-Identifier: GPL-3.0-or-later
1919

2020
from typing import List, Set, Tuple
21-
from gettext import gettext as _
2221

23-
# Default drum part names shown in the UI
2422
DEFAULT_DRUM_PARTS: List[str] = [
25-
_("kick"),
26-
_("kick-2"),
27-
_("kick-3"),
28-
_("snare"),
29-
_("snare-2"),
30-
_("hihat"),
31-
_("hihat-2"),
32-
_("clap"),
33-
_("tom"),
34-
_("crash"),
23+
"kick",
24+
"kick-2",
25+
"kick-3",
26+
"snare",
27+
"snare-2",
28+
"hihat",
29+
"hihat-2",
30+
"clap",
31+
"tom",
32+
"crash",
3533
]
36-
37-
# Default rhythm pattern names shown in the UI
3834
DEFAULT_PATTERNS: List[str] = [
39-
_("Shoot"),
40-
_("Maybe Rock"),
41-
_("Boom Boom"),
42-
_("Night"),
43-
_("Slow"),
44-
_("Chill"),
35+
"Shoot",
36+
"Maybe Rock",
37+
"Boom Boom",
38+
"Night",
39+
"Slow",
40+
"Chill",
4541
]
46-
4742
NUM_TOGGLES: int = 16
4843
GROUP_TOGGLE_COUNT: int = 4
4944
DEFAULT_BPM: int = 120

0 commit comments

Comments
 (0)