David Sangrey
b74524a4cd
Merge branch 'develop' into enhancement/1805/additional-prototyping
2024-07-22 00:16:25 -04:00
David Sangrey
b1ba45ab90
[1805] Update Prototypes
2024-06-10 23:29:04 -04:00
David Sangrey
da5d317797
[2114] Additional Cleanup
2024-06-10 18:16:11 -04:00
David Sangrey
f8b7a8b919
[2114] Cleanup Initial Commit
...
Some of these are already paths.
2024-06-10 17:49:13 -04:00
David Sangrey
fe8818d187
[2114] Apply PathLib Handover
2024-06-10 17:21:06 -04:00
David Sangrey
f56302e507
[2255] Fix Removed Comment
2024-06-09 15:56:44 -04:00
David Sangrey
7d5fdb2b84
[2255] Update Dep Comment Format
2024-06-09 15:52:44 -04:00
Bruno Marques
b0e682f66c
Enabled DeprecationWarning by default and fixed references
2024-06-09 18:40:03 +01:00
aussig
2dba5e4365
Merge branch 'develop' into enhancement/2188/translation-override
2024-05-12 13:34:42 +01:00
aussig
4e802b46df
Merge branch 'develop' into enhancement/2188/translation-override
2024-04-28 07:10:27 +01:00
David Sangrey
26c8a8be6e
[Minor] [Incoherent Type Hinting Noises]
2024-04-22 19:22:34 -04:00
David Sangrey
91e4e7998b
[1812] Update Docs and Fix Compat Layer
2024-04-22 19:18:01 -04:00
David Sangrey
080d9f98f2
[1812] Handover Translations
2024-04-22 17:33:28 -04:00
aussig
a863cebc66
[2188] Add optional lang parameter to l10n.Translations.translate() to allow language to be overridden.
2024-04-01 07:48:15 +01:00
David Sangrey
93d26e07e0
[2186] Remove Monitor, L10n References
2024-03-27 19:19:15 -04:00
David Sangrey
7cac00b2e8
[635] Remove Ordered Dict
2024-01-03 23:55:12 -05:00
David Sangrey
57b00c6105
[Minor] Minor Code Tweaks
...
Officially Deprecates ttkHyperlinkLabel/openurl() function, a few minor code readability updates, and updates dependencies
2023-12-23 20:12:17 -05:00
David Sangrey
9c9ca42c13
[Fix] Re-Add Shebangs
...
Required for some Unix and Mac distributions
2023-12-16 21:04:33 -05:00
David Sangrey
45a38ccdaa
[2051] Dashboard, Killswitch, l10n
2023-11-17 19:21:48 -05:00
Athanasius
36bd08d715
l10n.py: Two minor typing fixes
2022-12-23 14:47:09 +00:00
Athanasius
abebcf77d3
l10n: Use locale.format_string() instead of deprecated locale.format()
2022-08-13 15:34:33 +01:00
A_D
bff6175ee7
Update to use sys.platform over platform
2022-01-26 18:51:49 +02:00
Athanasius
fc3a7b32a3
l10n: Make the zh-CN -> zh-Hans comment a HACK
2021-12-11 14:15:30 +00:00
Athanasius
72fc78048f
l10n: Change zh-CN to zh-Hans in preferred_languages().
2021-12-11 10:59:43 +00:00
Athanasius
381c156fb9
l10n: Change _Locale.preferred_languages() to use a common return var
...
This is the first step before putting any necessary "difference between
OneSky and system names for languages" translations in.
2021-12-11 10:53:31 +00:00
Athanasius
cc0e39b7c2
l10n.py: LANG comment pass
2021-06-07 15:34:14 +01:00
Athanasius
f2ce63bfe7
l10n: Close localisation files after reading content
...
* These are opened in self.file() using codecs.open(), so no quick way
to convert to a 'with'.
2021-04-01 14:45:50 +01:00
A_D
051245cf90
Renamed various config values to be backwards compatible
2021-04-01 14:45:48 +01:00
A_D
00629b7420
use _str versions of paths for string ops
2021-04-01 14:45:48 +01:00
A_D
281f66c7c1
Stringified plugin_dir for len check
2021-04-01 14:45:47 +01:00
A_D
965493ffed
Silenced flake8 warning
2021-04-01 14:45:47 +01:00
A_D
6da85dc1e9
Fixed creating en.template.new as a dir
2021-04-01 14:45:47 +01:00
A_D
dbc357ebcd
Dont overwrite template files when generating new ones
2021-04-01 14:45:47 +01:00
A_D
db06bc82af
Resolved PR comments
2021-04-01 14:45:47 +01:00
A_D
1a563653da
Missed a place to use pathlib.Path()
2021-04-01 14:45:47 +01:00
A_D
63dd6418b9
removed unicode strings
2021-04-01 14:45:47 +01:00
A_D
7a7b5821df
refactored trinary logic
2021-04-01 14:45:47 +01:00
A_D
b5282fc8ea
Deprecated camelCase methods
...
Python prefers snake_case methods and camelCase classes. This replaces
some camelCase methods with snake_case variants, and has the original
names raise a DeprecationWarning before calling the snake_case versions
2021-04-01 14:45:47 +01:00
A_D
ac7a1fa63e
Replaced codecs.open with builtin open
...
In py2, open() did not support encodings, in py3 it does
2021-04-01 14:45:47 +01:00
A_D
6687dcbfef
Made respath use pathlib paths
2021-04-01 14:45:47 +01:00
A_D
e44039cfdd
Replaced prints with logging
2021-04-01 14:45:47 +01:00
A_D
4ede555c13
Refactored return based logic
...
A good chunk of the logic in here was returning from branches but still
using else/elif/except branches to do an alternate behaviour.
2021-04-01 14:45:47 +01:00
A_D
553082c1fe
Fixed some static type issues
2021-04-01 14:45:47 +01:00
A_D
13184a49b2
Added type annotations
2021-04-01 14:45:47 +01:00
A_D
07735bbff9
Renamed Translations and Locale
...
Previously at the end of l10n.py, the classes Translation and Locale
were overwritten with singleton instances of their types. This is both
bad practice and makes type checkers want to stab people. This change
should not affect any external code as the names they got for
Translations and Locale were the instances anyway.
2021-04-01 14:45:47 +01:00
A_D
7a0339a256
Added docstrings
2021-04-01 14:45:47 +01:00
A_D
d9f91cf9dc
Added whitespace around scope changes
2021-04-01 14:45:47 +01:00
A_D
20eee4c6c1
Cleaned up multiline statement
2021-04-01 14:45:47 +01:00
A_D
08bba395a9
Removed star import
2021-04-01 14:45:47 +01:00
A_D
7716cbd861
Removed bare excepts
2021-04-01 14:45:47 +01:00