Skip to content

Commit

Permalink
Fix user text
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Dec 3, 2024
1 parent 2f55110 commit 924f084
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/SettingsAIChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct SettingsAIChatView: View {
Text(UserText.aiChatFeatureName)
.daxTitle3()

Text(.init(UserText.aiChatPreferencesCaptionWithLinkMarkdown))
Text(.init(UserText.aiChatSettingsCaptionWithLinkMarkdown))
.tint(Color.init(designSystemColor: .accent))
.daxBodyRegular()
.multilineTextAlignment(.center)
Expand Down
12 changes: 7 additions & 5 deletions DuckDuckGo/UserText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ But if you *do* want a peek under the hood, you can find more information about
public static let settingsOpenVideosInDuckPlayerLabel = NSLocalizedString("duckplayer.settings.open-videos-in", value: "Open YouTube Videos in Duck Player", comment: "Settings screen cell text for DuckPlayer settings")
public static let duckPlayerFeatureName = NSLocalizedString("duckplayer.settings.title", value: "Duck Player", comment: "Settings screen cell text for DuckPlayer settings")

public static let settingsOpenDuckPlayerNewTabLabel = NSLocalizedString("duckplayer.settings.open-new-tab-label", value: "Open Duck Player in a new tab", comment: "Settings screen cell text for DuckPlayer settings to open in new tab")
public static let settingsOpenDuckPlayerNewTabLabel = NSLocalizedString("duckplayer.settings.open-new-tab-label", value: "Open Duck Player in a New Tab", comment: "Settings screen cell text for DuckPlayer settings to open in new tab")


public static let settingsOpenVideosInDuckPlayerTitle = NSLocalizedString("duckplayer.settings.title", value: "Duck Player", comment: "Settings screen cell text for DuckPlayer settings")
public static let settingsDuckPlayerFooter = NSLocalizedString("duckplayer.settings.footer", value: "DuckDuckGo provides all the privacy essentials you need to protect yourself as you browse the web.", comment: "Footer label in the settings screen for Duck Player")
Expand All @@ -1318,9 +1318,11 @@ But if you *do* want a peek under the hood, you can find more information about
public static let aiChatFeatureName = NSLocalizedString("aichat.settings.title", value: "AI Chat", comment: "Settings screen cell text for AI Chat settings")

public static let aiChatSettingsEnableFooter = NSLocalizedString("aichat.settings.enable.footer", value: "Turning this off will hide the AI Chat feature in the DuckDuckGo app.", comment: "Footer text for AI Chat settings")
public static let aiChatSettingsEnableBrowsingMenuToggle = NSLocalizedString("aichat.settings.enable.browsing-menu-toggle", value: "Show AI Chat in Browsing Menu", comment: "Toggle text to enable/disable AI Chat in the browsing menu")

static let aiChatPreferencesCaptionWithLinkMarkdown = NSLocalizedString("ai-chat.preferences.caption.link.markdown", value: "AI Chat is an optional feature available at [duck.ai](https://duck.ai) that lets you have private conversations with popular 3rd-party AI chat models. Your chats are not used to train chat models.", comment: "Ai Chat preferences explanation with a markdown link. Do not translate what's inside [] and ()")
static let aiChatSettingsCaptionWithLinkMarkdown = NSLocalizedString("ai-chat.preferences.text.markdown", value: """
AI Chat is an optional feature available at [duck.ai](ddgquicklink://duck.ai) that lets you have private conversations with popular 3rd-party AI chat models. Your chats are not used to train chat models.
[Learn More](ddgquicklink://duckduckgo.com/duckduckgo-help-pages/aichat/)
""", comment: "Ai Chat preferences explanation with a markdown link. Do not translate what's inside [] and ()")
public static let aiChatSettingsEnableBrowsingMenuToggle = NSLocalizedString("aichat.settings.enable.browsing-menu-toggle", value: "Show AI Chat in Browser Menu", comment: "Toggle text to enable/disable AI Chat in the browsing menu")


// MARK: - New Tab Page
Expand Down
15 changes: 14 additions & 1 deletion DuckDuckGo/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@
/* No comment provided by engineer. */
"addWidget.title" = "One tap to your favorite sites.";

/* Ai Chat preferences explanation with a markdown link. Do not translate what's inside [] and () */
"ai-chat.preferences.text.markdown" = "AI Chat is an optional feature available at [duck.ai](ddgquicklink://duck.ai) that lets you have private conversations with popular 3rd-party AI chat models. Your chats are not used to train chat models.
[Learn More](ddgquicklink://duckduckgo.com/duckduckgo-help-pages/aichat/)";

/* Toggle text to enable/disable AI Chat in the browsing menu */
"aichat.settings.enable.browsing-menu-toggle" = "Show AI Chat in Browser Menu";

/* Footer text for AI Chat settings */
"aichat.settings.enable.footer" = "Turning this off will hide the AI Chat feature in the DuckDuckGo app.";

/* Settings screen cell text for AI Chat settings */
"aichat.settings.title" = "AI Chat";

/* Title for DuckDuckGo AI Chat. Should not be translated */
"aichat.title" = "DuckDuckGo AI Chat";

Expand Down Expand Up @@ -1092,7 +1105,7 @@
"duckplayer.settings.learn-more" = "Learn More";

/* Settings screen cell text for DuckPlayer settings to open in new tab */
"duckplayer.settings.open-new-tab-label" = "Open Duck Player in a new tab";
"duckplayer.settings.open-new-tab-label" = "Open Duck Player in a New Tab";

/* Settings screen cell text for DuckPlayer settings */
"duckplayer.settings.open-videos-in" = "Open YouTube Videos in Duck Player";
Expand Down

0 comments on commit 924f084

Please sign in to comment.