-
Notifications
You must be signed in to change notification settings - Fork 971
Sort properties file and remove duplicates #10647
Conversation
I'm wondering if the strings should also be sorted semantically, separating lines with comment lines. |
@luixxiul Could you provide more details ? |
customFilters=Custom filters | ||
disableAdBlockForSite=Disable Ad block | ||
lastCheckETagLabel=Last check ETag: | ||
lastUpdateCheckDateLabel=Last update check: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srirambv I mean like this:
label_lastUpdateCheckDate=...
label_lastCheckETag=...
Specifying a hierarchy with dashes or something more proper would make it easier for us to see the system of the localization strings and enhance it when new ones get added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luixxiul I'd suggest creating a new issue and proposing the strategy. If it's something that is easier for translators and also for programmers, then maybe we can adapt it. Personally, I don't know how helpful it would be
autofillData=Autofill data | ||
autofillTitle=Autofill Settings | ||
city=City | ||
country=Country |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srirambv another example:
addresses_city=...
addresses_country=...
...
creditCards_edit=...
creditCards_expirationDate=...
The hierarchy has not been explicitly specified with a certain rule which we should follow when adding/editing the localization strings. Creating that rule would increase maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luixxiul definitely something we'd want proposed in its own issue
@@ -1,9 +0,0 @@ | |||
errorReload=Retry the URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was removing this file intended? It's still referenced in a few places:
Line 384 in e691f76
path.join(__dirname, 'extensions', 'brave', 'locales', lang, 'error.properties'), |
<link rel="localization" href="locales/{locale}/error.properties"> |
<link rel="localization" href="locales/{locale}/error.properties"> |
<link rel="localization" href="locales/{locale}/error.properties"> |
(possibly others)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments left 😄 The issue mentioned is that error.properties
is referenced a few places which will break if the file is deleted. We should remove those references also
Do you have a list of the duplicate strings? (just curious how many there are / where they were)
@bsclifton removed the references for
There weren't much may be about 10. Most were in autofill and bookmark |
Codecov Report
@@ Coverage Diff @@
## master #10647 +/- ##
==========================================
+ Coverage 54.16% 54.55% +0.39%
==========================================
Files 247 244 -3
Lines 21543 21128 -415
Branches 3334 3262 -72
==========================================
- Hits 11669 11527 -142
+ Misses 9874 9601 -273
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😄
there are definitely issues with this- I'm going to have to revert |
Sure will only do a sort |
Submitter Checklist:
Remove duplicate strings in properties file
Sort string alphabetically in all properties file
Merged error.properties into errorMessage.properties
Fixes : #3958
git rebase -i
to squash commits (if needed).Test Plan:
Verify all text in browser is shown as before
Reviewer Checklist:
Tests