Commit graph

92 commits

Author SHA1 Message Date
Dan Stillman
89c835bfc6 Fix locale update script under rpl 2.x
rpl 2.1.0 guesses each file's character encoding instead of assuming
UTF-8, and aborts on some locale files, leaving the script's later
steps unrun. Pin the encoding, and use -exec + so a failure in one of
these passes actually stops the script.

Also drop the ⏎ replacement, which hasn't matched anything since 2013
and would now insert real newlines rather than literal \n, truncating
.properties entries.

(cherry picked from commit 5a6c9245f0)
2026-08-17 09:58:44 -04:00
Dan Stillman
e3e122b69d Add script for pulling Fluent translations 2026-01-25 22:15:29 -05:00
Abe Jellinek
b87bdeea41 Update asyncify script to handle more Mocha hooks 2025-07-30 22:30:57 -04:00
Abe Jellinek
d3419ed124 fx140: Update asyncify script to handle it() calls 2025-07-30 22:30:53 -04:00
Abe Jellinek
6231b6dd5a migrate-fx140: Fix error message 2025-07-30 22:30:39 -04:00
Abe Jellinek
31edc728d4 fx140: Update type definition update script
Use ZIP export to more easily get all subdirectories.
2025-07-30 22:30:37 -04:00
Abe Jellinek
ff72087da1 migrate-fx140: Use .mjs for Zotero modules everywhere 2025-07-30 22:30:30 -04:00
Abe Jellinek
4b7ac315b5 migrate-fx140: Assume Zotero ESMS are/will be renamed to .mjs 2025-07-30 22:30:30 -04:00
Abe Jellinek
845b5a9006 migrate-fx140: Use native Promise.try(), fix Components.utils.import() 2025-07-30 22:18:36 -04:00
Abe Jellinek
14f4881d04 migrate-fx140: Assume all Firefox JSMs are ESMified 2025-07-30 22:18:35 -04:00
Abe Jellinek
741940dd9a migrate-fx140: Run jscodeshift on all JS files
This is probably why it wasn't doing much.
2025-07-30 22:18:35 -04:00
Abe Jellinek
ee512680ac fx140: Rename esmify to migrate-fx140, add asyncify migration
See README.txt for run instructions.
2025-07-30 22:18:35 -04:00
Abe Jellinek
cd9f90da8d fx140: Add esmify script
This seems to produce decent output on many of our files, but it totally
misses some import statements. Not sure why that is yet.
2025-07-30 22:18:34 -04:00
Dan Stillman
b05ddaf32b Fix escaping in rpl command 2025-06-11 00:46:04 -04:00
Dan Stillman
ab9849e71a fx128: Add arrowscrollbox.ftl from Mozilla
Fixes locales not being fully loaded, including for plugins, in 128

https://groups.google.com/g/zotero-dev/c/kcQ-A3EclBQ/m/ShIFTfM6DAAJ
2025-01-08 01:41:29 -05:00
Dan Stillman
46d5d2f5ee merge_mozilla_files improvements
- Remove duplicate/missorted locales
- Treat empty files in langpacks as missing and use en-US
- Skip empty lines and comments when using en-US file for empty
  non-en-US files, in line with Mozilla langpack files
2025-01-08 01:39:24 -05:00
Abe Jellinek
cd5df6b2c0
Add Gecko types and a script to update them (#4296) 2024-07-02 00:58:51 -04:00
Dan Stillman
7f492529a8 Fix Python warning in merge_mozilla_files 2024-04-10 07:33:46 -04:00
Dan Stillman
d21fc40115 Update Mozilla strings for fx115
(Or technically 125, but I don't think any strings we need were
removed)

This fixes the Edit and Window menu (except for some macOS Window
strings that seem to come from the system) in non-English locales.
2024-04-10 07:33:40 -04:00
Dan Stillman
31fc4dc950 Add delays when downloading Mozilla dictionaries 2024-02-27 07:01:49 -05:00
Dan Stillman
98fc32a65e Add Tamil locale from Transifex
Contributed by @TamilNeram
2024-02-27 07:01:49 -05:00
Dan Stillman
f1003a1d1e Ignore .DS_Store and other files in localizer script 2023-06-19 04:34:29 -04:00
Dan Stillman
ffdfc73d47 Fix python executable name in 2xize 2023-06-17 02:34:31 -04:00
Dan Stillman
6a14e8a376 Add some disabled code to extract 'updates' files from old Moz langpacks 2023-05-10 06:25:05 -04:00
Dan Stillman
27ccff636b Various fixes to locale processing script
- Properly handle regular vs. Mozilla locale files
- Avoid whitespaces changes as much as possible
- Keep copyright block at top of all Mozilla files
- Bug fixes
2023-05-10 06:25:05 -04:00
Dan Stillman
6000d605f1 Update localizer scripts
- Adjust for combined repos
- Handle Mozilla .dtd/.properties files
- General cleanup
2023-04-26 04:40:22 -04:00
Dan Stillman
15151acb3e Add Mozilla locale strings for Breton 2023-04-26 04:40:22 -04:00
Dan Stillman
a542db8e50 Skip en-US folder when copying en-US Mozilla files to other locales 2023-04-26 04:40:22 -04:00
Dan Stillman
3693674fc9 Fix Fluent localization for non-English locales
All declared Fluent files need to exist for a locale to be used (in a
window?). Since Mozilla code tries to load Fluent files, we need to copy
non-English Mozilla .ftl files to their default effective path (just in
the app omni.ja instead of the toolkit omni.ja).

Fixes #3094
2023-04-26 04:40:22 -04:00
Dan Stillman
1ab041ef55 Move build_xpi to app/scripts as prepare_build 2023-04-26 04:40:22 -04:00
Dan Stillman
257a2280c1 Use repo root in update-citeproc.sh 2023-04-26 04:40:22 -04:00
Dan Stillman
7ae79bbb98 egh's translator framework no longer needs to be unminified
Translators haven't been bundled with a Firefox extension since 2017, so
no need to unminify for review.
2023-04-26 04:40:22 -04:00
Dan Stillman
fb2b874614 Add zotero-build repo as scripts folder
Minus obsolete 4.0 files
2023-04-26 04:40:22 -04:00
Dan Stillman
ae0091fbae Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
Martynas Bagdonas
e6e424836d Update PDF.js in PDF reader 2023-04-12 11:15:46 +03:00
Martynas Bagdonas
bd9a40562f Replace pdftotext and pdfinfo with pdf-worker 2023-03-31 12:48:05 +01:00
Tom Najdek
d0e177055d
Remove multimatch from the build process #2862 (#3047) 2023-03-27 16:22:44 -04:00
Tom Najdek
2820add3d1
Add bulk folder import #2252 2023-03-21 20:38:39 +01:00
Abe Jellinek
52e8fa8995 Prune Monaco distribution, fix JS acting like TS in Scaffold
We don't need most of the bundled languages or localizations, so they were just
taking up disk space pointlessly.
2022-09-12 14:06:17 -07:00
Adomas Venčkauskas
3ba78dec78 Changes for updated SingleFile submodule 2022-08-11 03:49:52 -04:00
Martynas Bagdonas
4de31ebb85 Update pdf-reader and note-editor, use specific prebuilds, tweak code 2022-08-11 02:35:36 -04:00
Tom Najdek
1fbed10375
Report correct path for outFiles in symlink task (#2639) 2022-05-26 05:48:27 -04:00
Tom Najdek
89dd6faa2b
Run add_omni_files for changes to symlinked files (#2638) 2022-05-26 05:14:16 -04:00
Tom Najdek
8b76bf6e65
Run add_omni_file script when file change detected 2022-05-25 19:56:23 +02:00
Tom Najdek
7aa3bde170
On error, ring the bell
Should help with noticing syntax errors etc.
2022-05-25 19:37:20 +02:00
Tom Najdek
eb5f2978cc
Fix a problem with build when switching branch
When switching between master and fx102 bogus files were created outside
of the build/ directory. That's because previously we had a symlinked
file itembox.css and now we compile a file itemBox.css into the same
directory. However when running `npm start`, after switching branch, the
symlink still existed and thus when writing a new file, symlink was
followed and output has been written inside a source file instead.

Build system will now run cleanup step first (where it checks if files
frim `.signatures.json` still exist in src), then proceed with build,
so old symlinks will be removed thus producing a valid build.

This problem probably only happened on case-insensitive file-systems
(like default config on macOS HFS+).
2022-05-25 16:38:16 +02:00
Tom Najdek
32c0d228cc
Fix all scss files rebuild on every non-js change
multimatch test was incorrect triggering scss rebuild on every change
that reached that logic.

Also fixed weird (legacy?) use of path.join()
2022-05-25 16:10:15 +02:00
Abe Jellinek
9829ea7009
Update utilities, move tests, add to CI (#2584) 2022-04-30 04:55:11 -04:00
Tom Najdek
e156a46833
Fix build on win 2022-03-17 13:17:28 +01:00
Abe Jellinek
5409ae3313 Overhaul Scaffold (#2293) 2022-03-02 22:36:04 -05:00