Skip to content

Commit a363c2a

Browse files
committed
Switch to modern locale system
StreamController has introduced a new localization backend, which uses a singular `locales.csv` file containing all translations. This patch adds a `locales.csv` with all the existing American English localizations and updates our `PluginBase` class to not use the legacy locale mode. The old JSON file containing the American English localizations is also removed, as it is no longer used.
1 parent 90d8089 commit a363c2a

3 files changed

Lines changed: 38 additions & 45 deletions

File tree

locales.csv

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
key;en_US
2+
plugin.name;OBS LiveSplit One
3+
actions.split.name;Split
4+
actions.undo.name;Undo Last Split
5+
actions.skip.name;Skip Current Split
6+
actions.next-comparison.name;Next Comparison
7+
actions.prev-comparison.name;Previous Comparison
8+
actions.toggle-timing-method.name;Toggle Timing Method
9+
actions.reset.name;Reset Timer
10+
actions.pause.name;Pause Timer
11+
actions.undo-all-pauses.name;Undo All Timer Pauses
12+
actions.interact.name;Interact with Timer Source
13+
actions.save-splits.name;Save Splits
14+
actions.set-splits-path.name;Set Splits File
15+
actions.set-layout-path.name;Set Layout File
16+
actions.base.status.no-connection;Could not connect to OBS.
17+
actions.base.status.connected;Successfully connected to OBS.
18+
actions.base.websocket-group.title;OBS WebSocket Server
19+
actions.base.websocket-group.description;Provide the connection information to your OBS WebSocket server. This will be shared across all OBS LiveSplit One actions.
20+
actions.base.ip.label;IP:
21+
actions.base.port.label;Port:
22+
actions.base.password.label;Password:
23+
actions.timer-source-base.preferences-group.title;Timer Source
24+
actions.timer-source-base.preferences-group.description;Select an OBS LiveSplit One source to operate on if more than one source is present.
25+
actions.timer-source-base.source.label;Name:
26+
actions.set-splits-path.preferences-group.title;Splits To Load
27+
actions.set-splits-path.preferences-group.description;Select LiveSplit splits file to load.
28+
actions.set-splits-path.path.label;Path:
29+
actions.set-splits-path.button.label;Browse
30+
actions.set-splits-path.dialog.title;Select Splits File
31+
actions.set-splits-path.dialog.accept.label;Select
32+
actions.set-layout-path.preferences-group.title;Layout To Load
33+
actions.set-layout-path.preferences-group.description;Select LiveSplit layout file to load.
34+
actions.set-layout-path.path.label;Path:
35+
actions.set-layout-path.button.label;Browse
36+
actions.set-layout-path.dialog.title;Select Layout File
37+
actions.set-layout-path.dialog.accept.label;Select

locales/en_US.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class OBSLiveSplitOnePlugin(PluginBase):
3131
def __init__(self):
32-
super().__init__()
32+
super().__init__(use_legacy_locale=False)
3333

3434
# Launch backend
3535
print("Launching backend")

0 commit comments

Comments
 (0)