maryna7679 commited on
Commit
a124874
·
1 Parent(s): b35af45

Added localization for completion button

Browse files
Files changed (2) hide show
  1. Resources/localization.py +3 -1
  2. app.py +4 -0
Resources/localization.py CHANGED
@@ -14,6 +14,7 @@ STRINGS = {
14
  # Main interface
15
  "next_button": "Finish this video and go to next",
16
  "add_entry_button": "Add Entry",
 
17
 
18
  # Table headers
19
  "header_start": "Start",
@@ -51,7 +52,8 @@ STRINGS = {
51
  # Main interface
52
  "next_button": "Завершити відео і перейти до наступного",
53
  "add_entry_button": "Додати субтитр",
54
-
 
55
  # Table headers
56
  "header_start": "Початок",
57
  "header_text": "Текст",
 
14
  # Main interface
15
  "next_button": "Finish this video and go to next",
16
  "add_entry_button": "Add Entry",
17
+ "editing_complete_checkbox": "Captions for this video are complete",
18
 
19
  # Table headers
20
  "header_start": "Start",
 
52
  # Main interface
53
  "next_button": "Завершити відео і перейти до наступного",
54
  "add_entry_button": "Додати субтитр",
55
+ "editing_complete_checkbox": "Розмітка цього відео готова",
56
+
57
  # Table headers
58
  "header_start": "Початок",
59
  "header_text": "Текст",
app.py CHANGED
@@ -198,6 +198,10 @@ with gr.Blocks(css=css, head=yt_init_js, fill_width=True) as main_page:
198
  fn=get_next_components,
199
  outputs=[caption_editor, current_video_id]
200
  )
 
 
 
 
201
 
202
  current_video_id.change(
203
  fn=None,
 
198
  fn=get_next_components,
199
  outputs=[caption_editor, current_video_id]
200
  )
201
+ next_video_button.click(
202
+ fn=lambda: False,
203
+ outputs=editing_complete_checkbox
204
+ )
205
 
206
  current_video_id.change(
207
  fn=None,