Closed Bug 1243313 Opened 8 years ago Closed 5 years ago

Do not localize "Global" scope type in debugger for consistency

Categories

(DevTools :: Debugger, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: theo, Unassigned)

References

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

Attached image Screenshot, French
We're localizing "Global" in "Global scope" header with this string: 

https://transvision.mozfr.org/?sourcelocale=en-US&locale=fr&repo=aurora&search_type=entities&recherche=devtools/client/debugger.properties:globalScopeLabel

But since we're not localizing other scope types as discussed here [1], we should not localize Global either for consistency. Flod, any reason I would have missed for not doing that?

Thanks to Julien for spotting this issue :) Fixed French manually here [2], but I guess it would make sense to remove this string completely for other locales.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=755346#c39
[2] http://hg.mozilla.org/l10n-central/fr/rev/67082fdacb90#l1.24
Flags: needinfo?(francesco.lodolo)
(In reply to Théo Chevalier [:tchevalier] from comment #0)
> But since we're not localizing other scope types as discussed here [1], we
> should not localize Global either for consistency. Flod, any reason I would
> have missed for not doing that?

One possible reason might be the case, but I think it might make more sense to hard-code it.
Flags: needinfo?(francesco.lodolo)
(In reply to Michal Stanke (Mozilla.cz) [:MikkCZ] from comment #2)
> In that case,
> https://transvision.mozfr.org/?sourcelocale=en-
> US&repo=aurora&search_type=entities&recherche=devtools/client/debugger.
> properties:scopeLabel should also be not localizeable, so we do not have
> partly localized and not localized strings.

I would leave it localized, because you can turn it into a less awkward translation like "Scope: %S". 
That's what we choose for French: localized label, English value
https://transvision.mozfr.org/?sourcelocale=en-US&locale=fr&repo=aurora&search_type=entities&recherche=devtools/client/debugger.properties:scopeLabel

Maybe that would be helpful mentioning this possibility in a localization note.
I believe that all of these strings actually SHOULD be localizable. For example, "function" is both a non-localizable lexical construct, and a (quite localizable) name of a thing it refers to. In case of "block" it's even more obvious that in various languages it can be called differently.

I think it should be left up to the localizers to decide which way to go here. I'd much rather see "Funkcijos kintamieji" and "Bloko kintamieji" than "Function kintamieji" and "Block kintamieji" in my language.
While at that, I believe the string "(anonymous)" should also be localizable.
Modified Whiteboard 'good-first-bug' to 'good first bug'.
See https://wiki.mozilla.org/Good_first_bug
Whiteboard: [good-first-bug] → [good first bug]
[good first bug] whiteboard -> keyword mass change
Keywords: good-first-bug
Was looking at this because it has the good-first-bug keyword, but it seems like it might not be applicable anymore. 

> Examine, modify, and watch variables
> 
> This feature isn't yet supported in the new debugger. If you need to use it, you can, for now, switch back to the old debugger by visiting about:config and setting the "devtools.debugger.new-debugger-frontend" preference to false.

From the documentation at https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Examine,_modify,_and_watch_variables#wikiArticle

Should this be closed? Or just looked at again when or if this feature is implemented in the new debugger front end?
(In reply to Brian Farr from comment #9)
> Was looking at this because it has the good-first-bug keyword, but it seems
> like it might not be applicable anymore. 
> 
> > Examine, modify, and watch variables
> > 
> > This feature isn't yet supported in the new debugger. If you need to use it, you can, for now, switch back to the old debugger by visiting about:config and setting the "devtools.debugger.new-debugger-frontend" preference to false.
> 
> From the documentation at
> https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Examine,
> _modify,_and_watch_variables#wikiArticle
> 
> Should this be closed? Or just looked at again when or if this feature is
> implemented in the new debugger front end?

Jason, should we close this bug or does this affect the new frontend as well?
Flags: needinfo?(jlaster)
Keywords: good-first-bug
We can close it
Flags: needinfo?(jlaster)
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: