Skip to content

Translation fixes - #8263

Merged
SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:translation-fix
Oct 9, 2024
Merged

SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:translation-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Oct 9, 2024 •

Copy link
Copy Markdown
Member
  • Simplifies translations strings
  • Removes some similar duplicate strings
  • Reduces passing of tokens into translation
  • Fixes bug in translated string

Additionally, adds a helper script (in ./github/scripts/) which can detect duplicate (or close match) translated strings. For now, this script is just used to manually detect similar strings - but could easily be used in the future as part of CI

Note: The bad string has also been corrected on Crowdin

Future Work

There are a lot of strings which are "identical" except for the case sensitivity. Might be worth looking into using a common style for these strings, and then implementing a titleCase function where necessary, rather than requiring translation for two versions of the same string.

- Simplifies translations strings
- Removes some similar duplicate strings
- Reduces passing of tokens into translation
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed translation labels Oct 9, 2024
@SchrodingersGat SchrodingersGat added this to the 0.17.0 milestone Oct 9, 2024
@netlify

netlify Bot commented Oct 9, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 6032d5d
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67066436c994ba00080486bb
😎 Deploy Preview https://deploy-preview-8263--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@SchrodingersGat SchrodingersGat added the CI CI / unit testing ecosystem label Oct 9, 2024
@codecov

codecov Bot commented Oct 9, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 84.22%. Comparing base (67434b3) to head (6032d5d).
Report is 312 commits behind head on master.

Files with missing lines Patch % Lines
src/backend/InvenTree/InvenTree/helpers.py 20.00% 4 Missing ⚠️
src/backend/InvenTree/common/forms.py 0.00% 2 Missing ⚠️
src/backend/InvenTree/InvenTree/conversion.py 50.00% 1 Missing ⚠️
src/backend/InvenTree/common/files.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8263      +/-   ##
==========================================
- Coverage   84.30%   84.22%   -0.09%     
==========================================
  Files        1162     1162              
  Lines       52521    52520       -1     
  Branches     1894     1894              
==========================================
- Hits        44277    44234      -43     
- Misses       7764     7804      +40     
- Partials      480      482       +2     
Flag Coverage Δ
backend 85.97% <33.33%> (-0.01%) ⬇️
pui 65.97% <ø> (-0.46%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SchrodingersGat
SchrodingersGat merged commit dde6aab into inventree:master Oct 9, 2024
@SchrodingersGat
SchrodingersGat deleted the translation-fix branch October 9, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed CI CI / unit testing ecosystem translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant