-
I'm updating my fork of the code to bring it in line with 104.1. I am trying to work out where the actual string for "Set links from websites, emails, and Messages to open automatically in Firefox." comes from. It seems it should be from HomeTabBanner.EvergreenMessage.HomeBannerDescription, but I don't think it is. In my fork, I've modified private func MZLocalizedString(_ key: String,
tableName: String? = nil,
value: String = "",
comment: String,
lastUpdated: StringLastUpdatedAppVersion
) -> String {
var s = NSLocalizedString(key,
tableName: tableName,
bundle: Strings.bundle,
value: value,
comment: comment)
s = s.replacingOccurrences(of: "Firefox", with: "My Browser")
return s
} This works great for every string with Firefox in it, except for the Default Browser banner description. I even modified MZLocalizedString to just return "Say What?" and this is what I get: So it seems that those two strings are bypassing MZLocalizedString. What's the story? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The home tab banner is configured with |
Beta Was this translation helpful? Give feedback.
The home tab banner is configured with
Messages
coming from Nimbus. When a user is part of that experiment for banner, they will see different messages in there. They cannot be locally modified. I guess you could change where the MessageCardDataAdaptor takes it's input from, or remove the banner entirely.