Skip to content

Commit

Permalink
Updated translations and tooltip in Save Movie/Image Annotations option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 11, 2024
1 parent 93e3cce commit 0e68b48
Show file tree
Hide file tree
Showing 12 changed files with 1,829 additions and 1,409 deletions.
2 changes: 1 addition & 1 deletion bin/python/po_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(self, po_file, lang, use_google = True, use_tokenizer = True):
return

model_name = f"Helsinki-NLP/opus-mt-en-{self.helsinki}"
print('Load model',model_name)
print('Load model',model_name,'for',self.code)

if use_tokenizer:
self.tokenizer = MarianTokenizer.from_pretrained(model_name,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/mrvWidgets/mrvSaveImageOptionsUI.fl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ o->value(0);} {}
label {Save Annotations}
callback {auto settings = mrv::App::app->settings();
settings->setValue("SaveImage/Annotations", static_cast<int>(o->value()));}
tooltip {Save Annotations burned into the movie or sequence.} xywh {192 49 25 25} down_box DOWN_BOX
tooltip {Save Annotations burned into the movie or sequence.
It also allows saving OpenEXRs from an 8-bit movie and changing OpenEXR's pixel type.

Furthermore, it allows saving A/B or Tiled comparisons.

However, it is limited to the size of your screen.} xywh {192 49 25 25} down_box DOWN_BOX
code0 {auto settings = mrv::App::app->settings();}
code1 {int value = settings->getValue<int>("SaveImage/Annotations");}
code2 {o->value(value);}
Expand Down
14 changes: 9 additions & 5 deletions src/lib/mrvWidgets/mrvSaveMovieOptionsUI.fl
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ class SaveMovieOptionsUI {open
xywh {834 81 465 613} type Double align 0 hide modal
} {
Fl_Group {} {
label {Common Settings}
label {Common Settings} open
xywh {34 38 390 44} box ROUNDED_FRAME color 56
} {
Fl_Check_Button Annotations {
label {Save Annotations}
callback {auto settings = mrv::App::app->settings();
settings->setValue("SaveMovie/Annotations", static_cast<int>(o->value()));}
tooltip {Save Annotations burned into the movie or sequence. It also allows saving OpenEXRs from an 8-bit movie and changing OpenEXR's pixel type.} xywh {160 48 25 18} down_box DOWN_BOX
settings->setValue("SaveMovie/Annotations", static_cast<int>(o->value()));} selected
tooltip {Save Annotations burned into the movie or sequence.
It also allows saving OpenEXRs from an 8-bit movie and changing OpenEXR's pixel type.

Furthermore, it allows saving A/B or Tiled comparisons.

However, it is limited to the size of your screen.} xywh {160 48 20 20} down_box DOWN_BOX
code0 {auto settings = mrv::App::app->settings();}
code1 {int value = settings->getValue<int>("SaveMovie/Annotations");}
code2 {o->value(value);}
Expand Down Expand Up @@ -493,8 +498,7 @@ Hardware encoding is only supported on newer MacBook
Pro with M1 or newer chips. H264, Prores, VP9 and
AV1 are supported or soon will be.
)"));
uiHelpWindow->show();} {selected
}
uiHelpWindow->show();} {}
}
Function {help_pixel_format_cb()} {} {
code {uiHelpWindow->label(_("Pixel Format Help"));
Expand Down
Loading

0 comments on commit 0e68b48

Please sign in to comment.