Commit Graph
156 Commits
Author SHA1 Message Date
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
mkarolin 80acfb578a Addresses pylint issues with script/lib/util.py 2021-09-29 13:03:48 -04:00
mkarolin 4839c25933 Fixes Windows build errors during transpile_web_ui.
The errors are of the type:

---------------------
[21902/44128] ACTION //brave/components/brave_wallet_ui/page:brave_wallet_page_ui(//build/toolchain/win:win_clang_x64)
Exception in thread Thread-2:
Traceback (most recent call last):
  File "c:\brave-browser\src\brave\vendor\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python3\bin\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "c:\brave-browser\src\brave\vendor\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python3\bin\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "c:\brave-browser\src\brave\vendor\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python3\bin\lib\subprocess.py", line 1370, in _readerthread
    buffer.append(fh.read())
  File "c:\brave-browser\src\brave\vendor\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python3\bin\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 180: character maps to <undefined>
---------------------

Started showing up after transitioning to using python3.
2021-09-29 12:50:04 -04:00
mkarolin 4507cf6e53 Fixes pylint errors/warnings. 2021-08-18 11:00:00 -04:00
Pete Miller 13cf21c13e l10n: do not append rel="noopener noreferrer" to anchor elements in strings
'rel' is a disallowed attribute for translated strings as per ui/webui/resources/js/parse_html_subset.js
2021-08-18 10:59:56 -04:00
Anton Lazarev da9fc3fce8 remove brave_project_name in favor of brave_product_name 2021-07-27 07:31:34 -07:00
Pete Miller 0449319edf Fix formatting for python subprocess errors in brave build tasks, e.g. web-ui webpack compile
This is apparently only compatible with Python 3.5+ and not backwards compatible
2021-07-20 11:54:38 -07:00
Mihai PLESA dd268ba51d removed some unused python scripts (#8543)
* removed some unused python scripts

* more cleanup
2021-04-15 16:31:56 +01:00
mkarolin 2e4e93fef3 Modified Transifex script to check formatting on plural strings.
Checks that translation of strings in ICU plural format, similar to:
{ xxx, plural,
  =x {}
  other {}
}

is preserved in the translation strings.

Also fixed some pylint formatting indignations.
2021-04-13 16:18:16 -04:00
mkarolin 3c2bfbdd26 Minor adjustments to transifex script.
- Added <li1> and <li2> to allowed tags
- Added replacing \\" with " in addition to already replacing \"
2021-04-09 15:10:42 -04:00
Anton Lazarev 2ffc9bdc96 support building on both python 2 and 3 2021-04-08 14:00:06 -07:00
Mihai PLESA 5e3fab6f71 fixed transifex python code style issue (#7709) 2021-01-26 23:27:25 +00:00
mkarolin c98adee8ec Apply our FP when using chromium XTB files.
Always use FP from our GRD(P) files when pulling localized strings from
Chromium XTB files.
2020-12-12 11:29:05 -05:00
mkarolin e8defd5034 Do not apply branding to the meaning attr of GRD strings.
We do not upload this attr to Transifex and it affects FP calculation,
so there's no need to touch it.
2020-12-12 11:29:04 -05:00
Mihai PLESA d48a5bb3c8 various fixes for issues reported by sonar 2020-12-07 14:53:59 +00:00
mkarolin 8534015ec9 Fixes transifex script bug.
Fixes incorrect calculation of `rel` attribute value which resulted in
duplication of noreferrer noopener value in the attribute.
2020-12-04 10:45:37 -05:00
mkarolin 89836196eb Fixes error formatting in Transifex script. 2020-12-03 17:24:30 -05:00
Brian R. Bondy 55ceacb194 Fix l10n scripts for ethereum-remote-client 2020-11-30 14:22:09 -05:00
Emerick Rogul 7c7ab92b84 Add extension_path argument to push/pull scripts for local extension path 2020-11-23 17:14:02 -05:00
Emerick Rogul 312194cc0e Add l10n support for Greaselion scripts 2020-11-23 11:33:41 -05:00
mkarolin 37981ecdb5 Added b1 and b2 as acceptable tags to Transifex script. 2020-11-06 18:39:52 -05:00
mkarolin 502b572121 Fixes bad formatting in transifex.py.
Fixes brave/brave-browser#11972
2020-10-02 12:35:46 -04:00
mkarolin 9793213305 Modified Transifex and Chromium strings rebase scripts.
Changed the rebase script to automatically fix <a> links with
target="_blank" to also have rel="noopener noreferrer".

Modified transifex script to:

* Fix <a> links when pulling translations from local Chromium .xtb
files.

* Validate embedded HTML tags in strings against an allow list
  when uploading .grd(p) files to transifex.

* Do the same when downloading strings from Transifex.

* Completely strip all content from <ph> tags in .xtb files like
  Chromium does when pulling from Transifex.
2020-10-01 20:14:40 -04:00
Simon Hong 279728357e Use Brave sync chain instead of Brave Account 2020-08-04 10:30:32 +09:00
Brian R. Bondy db0e526ee1 Fix fingerprints for changed meaning and desc attributes too 2020-07-22 15:05:49 -04:00
Brian R. Bondy 246ab2a9b1 Be more lenient with localized strings from Transifex 2020-07-21 13:37:40 -04:00
Brian R. Bondy 2f081f8061 Make npm run pull_l10n idempotent 2020-07-20 13:16:06 -04:00
Mihai PLESA 661aa389a7 Merge pull request #6017 from brave/mplesa-omaha-upload-delta
added upload for delta installers
2020-07-08 18:34:59 +01:00
Mihai PLESA 8df08b33a5 added upload for delta installers 2020-07-07 22:12:24 +01:00
Brian R. Bondy b2d970a76f Replace localizer double escaping
This is a common mistake that some but not all localizers make
since Transifex displays our source string files double escaped
2020-07-07 16:47:57 -04:00
Brian R. Bondy 11d3f306ce Avoid trying to remove a node twice 2020-07-07 16:47:57 -04:00
mkarolin 656c90b45d Fixes formatting in transifex script.
Fixes brave/brave-browser#10578
2020-07-06 17:28:24 -04:00
Brian R. Bondy e73a59851b Remove dupe ids if they occur
Because of the replacements we do, like Google -> Brave, and Chrome -> Brave, it's possible to have dupe strings. This ensures that dupes don't show up
2020-07-06 16:34:48 -04:00
Brian R. Bondy 31b1416605 Recombine override files into xtb files in py 2020-07-03 15:26:23 -04:00
Brian R. Bondy b3a42e1bc8 No more need to check for missing Chromium strings
This commit also includes code to update old FPs before the branding replacement to new FPs
2020-07-03 15:26:23 -04:00
Brian R. Bondy 5779f6ccc9 Preserve file elements which point to xtb in override grds
This is so that it's more compatible with existing functions in
transifex.py
2020-07-03 15:26:23 -04:00
Brian R. Bondy 4e0553ddca Generate override files for strings we override 2020-07-03 15:26:23 -04:00
Brian R. Bondy ab1a1852e0 Pull from Local xtbs when possible
...instead of using Transifex

These string slugs are no longer pushed nor pulled from Transifex:
brave_strings
components_brave_strings
components_strings
generated_resources
android_chrome_strings
2020-07-03 15:26:23 -04:00
Mihai PLESA 7333e90392 Merge pull request #5980 from brave/mplesa-omaha-sparkle-release-notes-html
fix sparkle release notes html
2020-07-01 13:05:51 +01:00
Mihai PLESA 44b8226028 added full channels to omaha upload 2020-06-30 19:27:54 +01:00
Mihai PLESA 7bb3ec0654 fixed sparkle release notes html 2020-06-30 19:25:12 +01:00
mkarolin bc83a8e7af Added handling of sr-Latn to transifex script.
Transifex doesn't have sr-Latn, instead it uses sr-BA@latin.
Added string replacements to switch those two for upload and download.
2020-06-08 21:24:29 -04:00
Brian Clifton b61f32c03c Merge pull request #5519 from brave/issues/9415
Use correct CHANGELOG URL in release notes
2020-05-11 23:48:43 -07:00
Brian Clifton 8f0d817548 Fix for pep8 violation
Fixes https://github.com/brave/brave-browser/issues/9732
2020-05-11 22:47:48 -07:00
Matt Bacchi 5e2e0d3397 Use correct CHANGELOG URL in release notes
Resolves: https://github.com/brave/brave-browser/issues/9415
2020-05-11 17:45:48 -06:00
Matt Bacchi 73f5afcbd0 Correct query parameter opening character
Originally the query string was started with
the access_token, when I removed that the
ampersand remained at the beginning of the page
parameter.
2020-05-05 11:35:24 -06:00