-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace the Firefox word in all strings with a placeholder #22189
Comments
Would you still want the string changed where it says "intentionally hardcoded" and where it says "Firefox Account"/"Firefox Sync"? |
Yeah, we will need to change the comments. Thanks for pointing that out. |
@Amejia481 I'm assuming this is what you meant, but just to clarify: |
@grigoryk thanks for clarifying, yeah, you are right. @S10MC2015 as @grigoryk mentioned we want to keep the ones that are referring to specific Firefox services as they are. We only want to update strings that are related to the app's name. |
Hi, I would like to work on this issue! |
@Alexandru2909 thanks for interesting on this bug, lets just confirm with @S10MC2015. if we don't get any update after a day, please feel free to work on it, as it's been a long time since the last update. |
@Alexandru2909 can work on it. Sorry I haven't done any work. I don't think I'll have the time to work on for a while either. |
…ith placeholder
…ith placeholder
…ith placeholder
…ith placeholder
…with placeholder
…with placeholder
…with placeholder
Tested this on Nightly 99 and here are the results: Case 1
Case 2
For case 2, the placeholder shouldn't be Firefox only? since the other tabs are on 2 different profiles of Firefox Release. |
@sflorean 👋🏽 Thanks for taking a look! |
I agree, this seems to be the case. Could the same reasoning be applied to "Sync Firefox between devices"? or is it better to use |
Yes, I guess 😅 , it's a bit tricky but I think it was the intention of the message. |
Verified as fixed on the latest Nightly 100.0a1 (2022-04-01) build. |
We would like to replace the word "Firefox" in all our strings with a string placeholder (only on
/app/src/main/res/values/strings.xml
). For example:This is what we have: 😞
This is what we need: 😄
The string above, we want replace the word "Firefox" with a placeholder that we will replace in code:
Replace each reference of the string in code using the string placeholder
app_name
:From the code above, you can notice:
synced_tabs_no_tabs
we created a new string adding a_#
(a underscore with number, starting on 2), and added the propertiesmoz:removedIn="95" tools:ignore="UnusedResources"
tosynced_tabs_no_tabs
. We do this, for limitation described here.app_name
, we also have to make sure we replace all reference of the old string (synced_tabs_no_tabs
) with the new string (synced_tabs_no_tabs_2
) both in code and XML layouts.For more context see mozilla-l10n/android-l10n#393 (comment)
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: