BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
114 stars 40 forks source link

localization #810

Closed BrettMayson closed 3 weeks ago

BrettMayson commented 3 weeks ago

started off just wanting to add some more simple utils, ended up doing localization

main things are hemtt localization coverage and hemtt ln sort (localization or ln is accepted)

coverage shows the chart of coverage

image

sort will sort the stringtables, which is the project, packages, containers, keys, and the translations themselves, which follow this table

PR also contains hemtt utils config inspect and fills some book gaps

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 6.94915% with 549 lines in your changes missing coverage. Please review.

Project coverage is 69.7%. Comparing base (fb0de07) to head (74bf9b2). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
bin/src/commands/localization/coverage.rs 0.0% 96 Missing :warning:
libs/stringtable/src/package.rs 5.1% 92 Missing :warning:
libs/stringtable/src/key.rs 5.2% 72 Missing :warning:
bin/src/utils/pbo/inspect.rs 0.0% 67 Missing :warning:
bin/src/utils/config/inspect.rs 0.0% 56 Missing :warning:
bin/src/utils/paa/inspect.rs 0.0% 49 Missing :warning:
libs/stringtable/src/totals.rs 0.0% 39 Missing :warning:
bin/src/commands/localization/sort.rs 0.0% 33 Missing :warning:
libs/stringtable/src/lib.rs 25.9% 20 Missing :warning:
bin/src/commands/localization/mod.rs 50.0% 7 Missing :warning:
... and 6 more
Additional details and impacted files | [Files with missing lines](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett) | Coverage Δ | | |---|---|---| | [libs/config/src/lib.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=libs%2Fconfig%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-bGlicy9jb25maWcvc3JjL2xpYi5ycw==) | `82.5% <ø> (ø)` | | | [bin/src/commands/utils.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Fcommands%2Futils.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy9jb21tYW5kcy91dGlscy5ycw==) | `50.0% <50.0%> (ø)` | | | [bin/src/utils/paa/mod.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Futils%2Fpaa%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy91dGlscy9wYWEvbW9kLnJz) | `57.8% <0.0%> (ø)` | | | [bin/src/utils/pbo/mod.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Futils%2Fpbo%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy91dGlscy9wYm8vbW9kLnJz) | `57.1% <0.0%> (ø)` | | | [bin/src/lib.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy9saWIucnM=) | `75.6% <71.4%> (-0.6%)` | :arrow_down: | | [bin/src/utils/inspect.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Futils%2Finspect.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy91dGlscy9pbnNwZWN0LnJz) | `12.3% <0.0%> (+7.2%)` | :arrow_up: | | [bin/src/commands/localization/mod.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Fcommands%2Flocalization%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy9jb21tYW5kcy9sb2NhbGl6YXRpb24vbW9kLnJz) | `50.0% <50.0%> (ø)` | | | [bin/src/utils/config/mod.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Futils%2Fconfig%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy91dGlscy9jb25maWcvbW9kLnJz) | `63.1% <63.1%> (ø)` | | | [libs/stringtable/src/lib.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=libs%2Fstringtable%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-bGlicy9zdHJpbmd0YWJsZS9zcmMvbGliLnJz) | `25.9% <25.9%> (ø)` | | | [bin/src/commands/localization/sort.rs](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree&filepath=bin%2Fsrc%2Fcommands%2Flocalization%2Fsort.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett#diff-YmluL3NyYy9jb21tYW5kcy9sb2NhbGl6YXRpb24vc29ydC5ycw==) | `0.0% <0.0%> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/BrettMayson/HEMTT/pull/810?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Brett) | |