Commit Graph
33 Commits
Author SHA1 Message Date
David Sangrey 2041b3d3d3 [Minor] Update Type Hints and Alias Usages 2025-12-01 22:04:28 -05:00
David Sangrey 34e73dcfb2 Updated Linter Suppression for Existing 2025-10-16 16:34:16 -04:00
David Sangrey 65273742d0 [#1775] Retire Usage of Assert
Removes assert statements from EDMC non-test code, paving the way to enable -OO code.
2025-04-27 21:58:01 -04:00
David Sangrey 08bfbe1582 [2406] Refactor Non-Plugin Modules 2025-04-14 21:33:54 -04:00
David Sangrey b6d4371d67 [1469] Update Translation Scripting
Also runs through the Black linter for parsability sake.
2024-05-30 18:22:35 -04:00
David Sangrey 4a1a107e03 [1812] Adapt Localized String Search 2024-04-24 19:58:39 -04:00
David Sangrey c7a3fd44e7 [Nit] Properly Display Lang Comment Representation 2024-02-09 11:35:15 -05:00
David Sangrey 93619e4565 [2051] Fix Localized Strings 2023-11-16 18:18:10 -05:00
David Sangrey c7c6d5eed7 [2051] Scripts Update 2023-11-16 16:13:14 -05:00
Athanasius 87b48031a0 development: Also exclude .venv/ as that's VSCode default 2022-12-21 12:30:53 +00:00
Athanasius e584c13e8d l10n script: remove extraneous "and not out" from conditionals
Left over from when trying to fix the old loop.
2021-06-13 15:20:41 +01:00
Athanasius 5dee9d2cff l10n script: Use different regex for 'above' comments
This allows us to only consider an 'above' comment if its a standalone
one.  Meaning there can't possibly be a `_(...)` call on its line, with
it intended for that call, not the one on this line.
2021-06-13 15:13:36 +01:00
Athanasius 4f481cc703 l10n script: TODO: issue with LANG above *for* above, not current 2021-06-13 15:02:50 +01:00
Athanasius e1e09aebad l10n script: Attempt to always use correct LANG comment
There was an issue where consecutive lines, each with a LANG comment,
caused the next line to use the 'above' line's comment.
2021-06-13 14:58:42 +01:00
A_D cba7aee874 Fixed printed file line number sometimes off by one 2021-06-10 20:29:11 +01:00
A_D e89c0e9e21 Fixed possibly unbound variable 2021-06-10 20:29:11 +01:00
Athanasius eb8b357e27 l10n script: 'No comment for' on stderr 2021-06-07 16:51:08 +01:00
Athanasius 2de39f60ab l10n script: Complain if there's no current/prev LANG comment 2021-06-07 16:50:28 +01:00
Athanasius 1b58e91fa2 l10n script: Only report 'Unknown comment' if we didn't find a LANG one
So if we have a before LANG comment, then don't report the actual line
for a bad comment.

And if we have a current_line valid LANG comment, then don't report the
above_line as unknown.
2021-06-07 15:27:09 +01:00
Athanasius 06725467f9 l10n script: --lang takes a filename argument now
This allows for forcing unix-style line endings to the file, rather than
needing to mess with dos2unix after on a Windows system.
2021-06-07 15:05:26 +01:00
Athanasius be46c47c1c l10n script: Adjust !Language header 2021-06-07 14:50:18 +01:00
Athanasius 82fd3cd577 l10n script: With --lang output the !Language header 2021-06-07 14:34:12 +01:00
Athanasius 1b3046a4f9 l10n script: Fix comparison for picking up 'before' LANG comments 2021-06-07 14:07:44 +01:00
Athanasius a1abb46ff5 l10n script: Fix/add some args help 2021-06-07 13:37:27 +01:00
A_D 18c1bb1102 Made quoting consistent 2021-06-07 12:43:21 +02:00
A_D 7d77e4586b Appeased the flake8 gods 2021-06-07 12:43:21 +02:00
A_D 398bc76056 returned string rather than printing 2021-06-07 12:43:21 +02:00
A_D 9c4bc182ca Added LANG file generation and comment extraction 2021-06-07 12:43:16 +02:00
A_D 0c5806e12c Made json output easier to work with 2021-06-07 12:42:07 +02:00
A_D dbea29194b Added the ability to compare to another LANG file 2021-06-07 12:42:07 +02:00
A_D b19f956219 use stderr 2021-06-07 12:42:06 +02:00
A_D ce8fea9f1a its not globbed 2021-06-07 12:42:06 +02:00
A_D 2281124807 Added AST based LANG translation string detection 2021-06-07 12:42:06 +02:00