Skip to content

Commit

Permalink
Fix untranslatable string
Browse files Browse the repository at this point in the history
Add group was bare text, add translatable string
  • Loading branch information
Beryesa committed Jul 31, 2024
1 parent d88d0ba commit a738c38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion i18n/en/cosmic_app_library.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ run-on = Run on {$gpu}
run-on-default = (Default)
remove = Move to library home
create-new = Create new folder
add-group = Add group
delete = Delete
rename = Rename
delete-folder = Delete folder?
Expand All @@ -24,4 +25,4 @@ flatpak = Flatpak
snap = Snap
system = System
local = Local
nix = Nix
nix = Nix
3 changes: 2 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static NEW_GROUP_ID: Lazy<Id> = Lazy::new(|| Id::new("new_group"));
static SUBMIT_DELETE_ID: Lazy<Id> = Lazy::new(|| Id::new("cancel_delete"));

static CREATE_NEW: Lazy<String> = Lazy::new(|| fl!("create-new"));
static ADD_GROUP: Lazy<String> = Lazy::new(|| fl!("add-group"));
static SEARCH_PLACEHOLDER: Lazy<String> = Lazy::new(|| fl!("search-placeholder"));
static NEW_GROUP_PLACEHOLDER: Lazy<String> = Lazy::new(|| fl!("new-group-placeholder"));
static SAVE: Lazy<String> = Lazy::new(|| fl!("save"));
Expand Down Expand Up @@ -1184,7 +1185,7 @@ impl cosmic::Application for CosmicAppLibrary {
.height(Length::Fixed(group_icon_size))
)
.padding(spacing.space_xxs),
text("Add group")
text(&fl!("add-group").as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
]
Expand Down

0 comments on commit a738c38

Please sign in to comment.