Skip to content

Localize title and aria label in ProfileName#5345

Merged
julienw merged 2 commits into
firefox-devtools:mainfrom
theoniko:localize-title-and-aria-label-in-ProfileName
Jan 29, 2025
Merged

Localize title and aria label in ProfileName#5345
julienw merged 2 commits into
firefox-devtools:mainfrom
theoniko:localize-title-and-aria-label-in-ProfileName

Conversation

@theoniko

@theoniko theoniko commented Jan 27, 2025

Copy link
Copy Markdown
Contributor

Fixes #5094

@codecov

codecov Bot commented Jan 27, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.02%. Comparing base (52f3144) to head (dfb4f29).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5345      +/-   ##
==========================================
- Coverage   86.02%   86.02%   -0.01%     
==========================================
  Files         311      311              
  Lines       29791    29790       -1     
  Branches     8217     8217              
==========================================
- Hits        25629    25628       -1     
  Misses       3576     3576              
  Partials      586      586              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread src/components/app/ProfileName.js Outdated
className="profileNameButton menuButtonsButton menuButtonsButton-hasRightBorder menuButtonsButton-hasIcon"
onFocus={this.handleButtonFocus}
onClick={this.handleButtonFocus}
<Localized id="ProfileName--profile-name" attrs={{ title: true }}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it would be better to have 2 different ids for the 2 different elements.

What do you think of:

ProfileName--edit-profile-name-button
and
ProfileName--edit-profile-name-input

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.
I did git commit --amend and git push --force my branch so i do not have the very latest commits.
Shall i add them? If yes, is rebasing main to my branch the way or do i need a merge commit or sth similar?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Usually we use rebase in this project, but that's not really necessary unless there are conflicts (github should tell when it's happening).
Before merging we do a merge directly with the github interface to get the tests running on the latest code, and then merge from there.

@theoniko theoniko force-pushed the localize-title-and-aria-label-in-ProfileName branch from dfb4f29 to cbc545e Compare January 29, 2025 07:37
Comment thread locales/en-US/app.ftl
PanelSearch--search-field-hint =
Did you know you can use the comma (,) to search using several terms?

## Profile Name Button

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @flodolo , do you think this needs some more comments, for example to make explicit that only title and aria-label should be translated, but the string itself should stay empty?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, this will show up in Pontoon as a single input field, hiding the underlying complexity.

See for example https://pontoon.mozilla.org/fr/firefox-profiler/all-resources/?search=FooterLinks--hide-button&search_identifiers=true&string=242768

FooterLinks--hide-button =
    .title = Hide footer links
    .aria-label = Hide footer links

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah perfect, thanks!

@julienw julienw marked this pull request as ready for review January 29, 2025 10:01
@julienw julienw requested a review from a team as a code owner January 29, 2025 10:01
Comment thread locales/en-US/app.ftl
PanelSearch--search-field-hint =
Did you know you can use the comma (,) to search using several terms?

## Profile Name Button

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, this will show up in Pontoon as a single input field, hiding the underlying complexity.

See for example https://pontoon.mozilla.org/fr/firefox-profiler/all-resources/?search=FooterLinks--hide-button&search_identifiers=true&string=242768

FooterLinks--hide-button =
    .title = Hide footer links
    .aria-label = Hide footer links

@julienw julienw enabled auto-merge (squash) January 29, 2025 12:30
@julienw julienw merged commit 9ee0d27 into firefox-devtools:main Jan 29, 2025
@canova canova mentioned this pull request Jan 30, 2025
canova added a commit that referenced this pull request Jan 30, 2025
Updates:

[Julien Wajsberg] Some more small refactorings (#5320)
[Markus Stange] Pass the correct sample index offset to
getTimingsForCallNodeIndex for the flame graph tooltip. (#5328)
[Nisarg Jhaveri] Update docs to include Android Studio/Simpleperf trace
file support (#5309)
[Markus Stange] Don't pass the preview filtered thread to
getTimingsForPath/CallNodeIndex. (#5329)
[Nazım Can Altınova] Add a "Sample timestamp" field to the sample
tooltip in timeline (#5322)
[Markus Stange] Reduce confusion between call tree summary strategy
aware samples and regular samples (#5330)
[Markus Stange] Rename this getCounter selector to getCounters. (#5337)
[Markus Stange] Make sample indexes compatible between the unfiltered
and (preview) filtered call tree summary strategy samples when using an
allocation strat>
[Markus Stange] Remove some code that uses the preview filtered thread
(#5336)
[Markus Stange] Remove getMarkerSchemaName special cases - look up
marker schemas from data.type and nothing else (#5293)
[Markus Stange] Remove the makeProfileSerializable step - make the raw
in-memory profile match the format that's stored in the file (#5287)
[Nicolas Chevobbe] Adapt FilterNavigatorBar to High Contrast Mode.
(#5257)
[Nicolas Chevobbe] Adapt Tracks to High Contrast Mode. (#5252)
[Markus Stange] Adjust string index fields in markers when merging
threads (#5344)
[Theodoros Nikolaou] Localize title and aria label in ProfileName
(#5345)
[Julien Wajsberg] Adapt time-slice selection in High Contrast Mode.
(#5259)
[Markus Stange] Make stackTable (sub)category derived data (#5342)
[Markus Stange] Compute cpuRatio values when computing the derived
thread (#5288)
[Nazım Can Altınova] Add a context menu item to open the JS scripts in
DevTools debugger (#5295)

Also thanks to our localizers:

el: Jim Spentzos
fr: Théo Chevalier
it: Francesco Lodolo [:flod]
zh-TW: Pin-guang Chen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit the profile name is hard-coded in English

3 participants