Commit Graph
201 Commits
Author SHA1 Message Date
Ahmed Kamal be50933b3e Fix formatting of python scripts (#19623)
* temp

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* trivial change to trigger lint

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Apply fixes

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Revert "temp"

This reverts commit 9724d3bc66cdf8082cb62f7ee79923507fdbba47.

* Revert "trivial change to trigger lint"

This reverts commit 5417ce862b7a0f381b9dd3ed81c8a44b06f36b54.

* The big fmt

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Improve regex, please sonarcloud

Group parts of the regex together to make
the operator precedence explicit

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

---------

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2023-08-09 12:40:12 +01:00
Mihai PLESA 1ccc9522a6 remove brave github token (#19536) 2023-08-07 08:36:41 -04:00
Michael Herrmann 5dc3dcc00b Update Widevine signature_generator to Python 3 (#19437) 2023-07-27 23:55:10 +09:00
Mihai PLESA 66c4fac1d6 Revert "Update Widevine signature_generator to Python 3" (#19419)
Revert "Update Widevine signature_generator to Python 3 (#18636)"

This reverts commit 2e124e822f.
2023-07-25 13:00:33 -04:00
Michael Herrmann 2e124e822f Update Widevine signature_generator to Python 3 (#18636)
* Update Widevine signature_generator to Python 3

* Fix missing dependency 'macholib' on macOS

* Add missing license for macholib

* Fix Widevine signature generation on macOS

* Add third_party/macholib/ to .gitignore

* Fix lint errors

* Simplify code

* Add comment

* Lint

* Simplify code

* Only include DEP macholib on macOS

* Fix build error

* Remove obsolete import

* Reference more stable dep license file

* Remove wrong line of code

* Remove unnecessary comment

* Remove obsolete workaround

* Revert "Remove obsolete workaround"

This reverts commit 0c1b736ed7bc02449e6dd2d49b5985c829df85b6.

* Update comment

* Fix Android build

* Fix Android build

* Fix broken init on Windows

* Remove obsolete workaround
2023-07-25 11:56:06 -04:00
mkarolin fcde02393a [Android] Adds l10n for android_chrome_tab_ui_strings.grd. 2023-06-20 16:18:21 -04:00
mkarolin 035d7e37b4 Fixes escaping of $ in strings rebase script. 2023-05-15 13:10:36 +01:00
Michael Herrmann 3bcac3e282 Refactor: Move some Widevine logic from JS to GN 2023-05-09 13:27:37 +02:00
Michael Herrmann 4a30ce4e5e Fix some old lint warnings 2023-05-09 13:27:34 +02:00
Michael Herrmann 75ddbb07fe Refactor: De-duplicate code 2023-05-09 13:26:07 +02:00
Aleksey Khoroshilov 95e48b4b1c Update Rust to 1.67.1, add support for native arm64 MacOS toolchain. 2023-04-26 18:16:55 +07:00
Ceperaandmkarolin 9528ea0091 Fix detection of Google Chrome Beta/Dev as default browsers (in non-English locales) (#17414)
* Update script/chromium-rebase-l10n.py to migrate google_chrome strings

* Move browser names to constatns

* Updates pulling brave_strings.grd l10n.

-Removes google_chrome_strings additions to brave_strings on the fly to
pull l10n correctly.
-Readds google_chrome_strings additional translations to XTBs.

(cherry picked from commit efebe82760d0d4a5b02bab3ad207aab6d8a20300)

* Change xtb writing function

* Migrate translation to xtb and grd files

* Fixes executable bit on python script.

---------

Co-authored-by: mkarolin <max@brave.com>
2023-03-01 22:00:01 +03:00
Aleksey Khoroshilov 43eaee3eb8 Use -mx7 by default for 7z archives. 2022-11-07 12:54:30 +07:00
Aleksey Khoroshilov dbc7d28167 Archive native symbols to 7z. 2022-11-07 12:54:25 +07:00
Aleksey Khoroshilov 9f6ead6b57 Merge pull request #15355 from brave/issues/25517
Add chromium PRESUBMIT configuration support.
2022-10-28 21:41:50 +07:00
mkarolin 9f783023be Fixes regex patter for verifying ICU plural syntax strings. 2022-10-24 21:24:16 -04:00
Aleksey Khoroshilov 00da57f2da Add chromium PRESUBMIT configuration support. 2022-10-18 21:58:09 +07:00
Aleksey Khoroshilov b587f7ef36 Update override_utils imports. 2022-09-05 13:50:55 +07:00
Aleksey Khoroshilov a6660a0c1d Move files to brave/script. 2022-09-05 13:31:02 +07:00
mkarolin 03cbcb0ff7 Fixes replacement of Chromium -> Brave in XTBs in Hindi/Nepali. 2022-08-30 18:13:44 -04:00
mkarolin 529d1a5e53 Add more fixes for commonly misformatted Transifex strings. 2022-08-26 11:35:44 -04:00
mkarolin c12af148bd Do not replace ChromeVox in strings. 2022-08-23 00:19:33 -04:00
Aleksey Khoroshilov 231ee9bc5e Make inline and override helpers usable more widely. 2022-08-17 19:42:50 +07:00
Max 369976146c Merge pull request #14325 from brave/maxk-transifex-upload-translations
Transition to using brave_en Tansifex project
2022-07-27 16:18:24 -04:00
mkarolin 6f2513adc2 [l10n] Account for incorrect IRD_ string prefix in Chromium. 2022-07-25 15:54:58 -04:00
mkarolin 2b66a65ff3 [l10n] Remove etherium-remote-client related code.
We don't use their l10n any more.
2022-07-25 15:54:57 -04:00
mkarolin 138383237f [l10n] Remove no longer needed .message suffix for extension strings. 2022-07-25 15:54:57 -04:00
mkarolin 7b76aa4933 [l10n] Switch to using brave_en project in Transifex. 2022-07-25 15:53:07 -04:00
mkarolin e37dfc25c2 [l10n] Allow uploading local translations to Transifex. 2022-07-25 15:53:01 -04:00
Ahmed Kamal aff9e8432c Uplift scripts py2 and py3 compatibility (#14182)
* Initial port

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* some fixes for pylint

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* some pylint fixes

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2022-07-25 09:44:42 -05:00
Aleksey Khoroshilov aff6d0ca19 Enable python format check by default. 2022-06-20 17:30:25 +07:00
Aleksey Khoroshilov 189ce9a0ec Add more comments to presubmit overrides. 2022-06-20 17:30:25 +07:00
Aleksey Khoroshilov ffd10a5576 Add support for upstream presubmit logic on npm run lint. 2022-06-20 17:30:24 +07:00
Max a402246aad Merge pull request #12503 from brave/cr101
Upgrade from Chromium 100 to Chromium 101.
2022-04-15 21:50:54 -04:00
Mihai PLESA ebb3f149ea removed the need for brave-browser repo (#13006) 2022-04-15 17:47:43 -05:00
mkarolin 5df4ec2908 Do not replace ChromeOS in strings. 2022-04-15 18:26:05 -04:00
mkarolin 3cc426651a Updated transifex script to use utf-8 with http response 2022-03-29 17:08:31 -04:00
Emerick Rogul 4ebf607193 Fix overly-aggressive string replacements and update scripts 2022-03-18 20:04:16 -04:00
Emerick Rogul d35abb8427 Fix Google Lens branding 2022-03-07 23:13:23 -07:00
mkarolin 6a92c95c66 Transifex: implement an option for Transifex API V3. 2022-02-08 22:00:16 -05:00
mkarolin f2be80fc91 Transifex: Add an option to dump downloaded content into a file. 2022-02-08 22:00:15 -05:00
mkarolin 9811e58f1f Transifex: Pull json files in alphabetical order of the languages. 2022-02-08 22:00:15 -05:00
mkarolin 06612d35ee Transifex: Delete override XTBs after they are used. 2022-02-08 22:00:14 -05:00
mkarolin b21293f55e Transifex: modularize and migrate to python3 2022-02-08 22:00:13 -05:00
mkarolin 4f09c03d5c Use python3 to invoke l10n scripts. 2022-02-01 21:13:43 -05:00
Aleksey Khoroshilov 14ee2bab1c Fix python2 empty stdout.encoding case in util.py. 2022-01-20 18:42:00 +07:00
Aleksey Khoroshilov 619abd2606 Replace unsupported characters to have working stdout print. 2022-01-19 00:40:20 +07:00
Mikhail db8b8dc860 Update crash reporting settings strings (#11360)
* Update crash reporting settings strings
* clang format
* Fix type
2022-01-03 21:07:37 +07:00
Mihai PLESA 740fc8d33f moved npm config to b-c (#11114) 2021-11-29 16:59:48 -05:00
Mihai PLESA 49874507d1 fixed line lengths to 80 and do autopep8 2021-10-29 17:54:41 -05:00