Skip to content

Commit

Permalink
fix localization warnings (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx authored Apr 3, 2024
1 parent 25d34f5 commit ebb9320
Show file tree
Hide file tree
Showing 4 changed files with 850 additions and 113 deletions.
12 changes: 6 additions & 6 deletions DuckDuckGo/Common/Localizables/UserText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ struct UserText {
static func mainMenuHomeButtonMode(for position: HomeButtonPosition) -> String {
switch position {
case .hidden:
return NSLocalizedString("Hide", comment: "Main Menu > View > Home Button > None item")
return NSLocalizedString("main.menu.home.button.mode.hide", value: "Hide", comment: "Main Menu > View > Home Button > None item")
case .left:
return NSLocalizedString("Show Left of the Back Button", comment: "Main Menu > View > Home Button > left position item")
return NSLocalizedString("main.menu.home.button.mode.left", value: "Show Left of the Back Button", comment: "Main Menu > View > Home Button > left position item")
case .right:
return NSLocalizedString("Show Right of the Reload Button", comment: "Main Menu > View > Home Button > right position item")
return NSLocalizedString("main.menu.home.button.mode.right", value: "Show Right of the Reload Button", comment: "Main Menu > View > Home Button > right position item")
}
}

Expand Down Expand Up @@ -569,11 +569,11 @@ struct UserText {
static func homeButtonMode(for position: HomeButtonPosition) -> String {
switch position {
case .hidden:
return NSLocalizedString("Hide", comment: "Preferences > Home Button > None item")
return NSLocalizedString("context.menu.home.button.mode.hide", value: "Hide", comment: "Preferences > Home Button > None item")
case .left:
return NSLocalizedString("Show left of the back button", comment: "Preferences > Home Button > left position item")
return NSLocalizedString("context.menu.home.button.mode.left", value: "Show left of the back button", comment: "Preferences > Home Button > left position item")
case .right:
return NSLocalizedString("Show right of the reload button", comment: "Preferences > Home Button > right position item")
return NSLocalizedString("context.menu.home.button.mode.right", value: "Show right of the reload button", comment: "Preferences > Home Button > right position item")
}
}

Expand Down
Loading

0 comments on commit ebb9320

Please sign in to comment.