A_D
17980ac6ad
Added localisation
2021-06-07 18:10:25 +02:00
A_D
e6c8183bfc
made EDDN errors more verbose
2021-06-07 18:09:18 +02:00
Athanasius
13ba5fede9
Merge pull request #1153 from EDCD/fix/1074/translations-full-phrases
...
Translations: General cleanup pass
2021-06-07 17:01:32 +01:00
Athanasius
efbc51c714
EDMarketConnector: Improve legacy LANG comments
2021-06-07 16:56:53 +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
3f3e007305
pre-commit: *Ensure* the LANG_comments always runs
2021-06-07 16:39:19 +01:00
Athanasius
9e8bd1926b
pre-commit: Run scripts/find_localised_strings.py
...
This will report on any missing LANG comments at commit time. NB: set to
run on all files in case of L10n/en.template changes.
2021-06-07 16:37:53 +01:00
Athanasius
631446f619
Translations: Final LANG comments
...
The script now outputs nothing about Unknown comments
2021-06-07 16:02:39 +01:00
Athanasius
f4af278a80
prefs.py: Contiuning LANG comment pass
2021-06-07 16:00:28 +01:00
Athanasius
1495ba9206
prefs.py: Properly .grid() the 'Plugins folder' label
2021-06-07 15:56:50 +01:00
Athanasius
fc96c6362f
prefs.py: Initial LANG comment pass
...
Pausing for a possible bug fix
2021-06-07 15:54:20 +01:00
Athanasius
4fa0521438
other core plugins: LANG comment pass
2021-06-07 15:43:32 +01:00
Athanasius
a412ec1382
plugins/coriolis.py: LANG comment pass
2021-06-07 15:35:24 +01:00
Athanasius
cc0e39b7c2
l10n.py: LANG comment pass
2021-06-07 15:34:14 +01:00
Athanasius
2351ee0f02
EDMarketConnector: LANG comment pass
2021-06-07 15:32:52 +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
32101bdba5
Translations: auto-generated file now has !Language header
2021-06-07 15:03:46 +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
6d0f5259d0
Translations: Use script-provided version
...
This loads in to EDMarketConnector.py without errors, and a quick check
of German in Settings appeared to show all of the correct translations.
2021-06-07 14:22:33 +01:00
Athanasius
87ff0b08a1
Translations: Full phrase "Error: Check E:D journal file location"
2021-06-07 14:17:28 +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
Athanasius
4dc610339d
Merge pull request #1152 from EDCD/enhancement/contributing-review-and-reformat
...
General Contributing.md and Language.md cleanup/reformat
2021-06-07 13:07:49 +01:00
Athanasius
9d46b6a7b0
Contributing: .format() still acceptable wrt translations
2021-06-07 12:58:45 +01:00
Athanasius
d304c32602
Translations: LANG comment in here, not Contributing
...
Also changed to `# header` style formatting, with `---` separators
between major sections.
2021-06-07 12:47:48 +01:00
Athanasius
5c8b5b9914
Translations: Correct example of a non-translated {WORD}
...
The code needs to perform the replacement *after* translation phrase
look up.
2021-06-07 12:39:18 +01:00
Athanasius
da790826e9
Contributing: missing/incorrect docstrings will fail flake8
2021-06-07 12:33:12 +01:00
Athanasius
f7272ee445
Contributing: fstrings are mandatory, not only preferred
...
Legacy code aside....
2021-06-07 12:32:12 +01:00
Athanasius
e548dce4d8
Contributing: Reference Plugin logging documentation
2021-06-07 12:31:05 +01:00
Athanasius
522f15b0c6
Contributing: 'Coding Conventions' content shouldn't be headers
2021-06-07 12:27:45 +01:00
Athanasius
93dbaee5ae
Contributing: "Git commit conventions" after "General workflow"
...
Also linkified to the GitHub docs about 'Closes #XXX' and the like.
2021-06-07 12:26:01 +01:00
Athanasius
81652a54c2
Contributing: --- separators between each ##
2021-06-07 12:21:00 +01:00
Athanasius
3c13e84910
Contributing: Re-arrange sections more logically
...
1. General workflow first.
2. Then branches, including 'work in progress'.
3. Followed by tags.
4. *Then* 'Version conventions'.
2021-06-07 12:18:56 +01:00
Athanasius
9dcb79a5db
Contributing: Minor grammar/punctuation
2021-06-07 12:11:58 +01:00
Athanasius
54b57db329
Contributing: <type>/<issue number>/<title> now mandated
2021-06-07 12:10:43 +01:00
Athanasius
3edf4ed069
Contributing: re-format 'Work on Issues'
2021-06-07 12:04:14 +01:00
Athanasius
f80130a1de
Merge pull request #1150 from A-UNDERSCORE-D/enhancement/ast-lang-update
...
Added AST based LANG translation string detection
2021-06-07 12:01:55 +01:00
A_D
6b7cb2a366
Fixed overindented titles
2021-06-07 12:54:01 +02:00
A_D
2fb47377a3
Added comments
2021-06-07 12:43:22 +02: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
5bdbf334ae
Remove hack
2021-06-07 12:42:07 +02:00
A_D
b19f956219
use stderr
2021-06-07 12:42:06 +02:00