mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-08 19:42:12 +00:00
craft-update: gate translated button labels with their egui callers (#542)
This commit is contained in:
1 parent
fe4e2ff3ef
commit
893eafc086
1 file changed
+1
@@ -80,6 +80,7 @@ impl Note {
|
||||
|
||||
/// A button label: `label` (title case, the lookup key) translated, then in capitals, as the card
|
||||
/// draws its buttons.
|
||||
#[cfg(any(feature = "egui", test))]
|
||||
pub(crate) fn button(translate: Translate, label: &str) -> String {
|
||||
translate(label, &[]).to_uppercase()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user