Add Chinese (zh_Hans) translations and fix media file access for single-machine deployment - #12730
Closed
chinaglowing wants to merge 4 commits into
Closed
Add Chinese (zh_Hans) translations and fix media file access for single-machine deployment#12730chinaglowing wants to merge 4 commits into
chinaglowing wants to merge 4 commits into
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
|
As per our docs translations need to be submitted on crowdin |
Author
|
Thanks for the pointer! I've split this PR:\n\n- Translations (37 entries): Will be submitted via Crowdin as per project guidelines\n- Code fix (media file access): Moved to #12732 which contains only the middleware/urls changes without any translation files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR adds 37 missing Chinese (zh_Hans) translations and fixes media file access for single-machine deployments without a reverse proxy.
Changes
Backend translations (26 entries in django.po)
OK???Frontend translations (11 entries in messages.po)
Code fixes for single-machine deployment
middleware.py: AddMEDIA_URLtopaths_own_security- media files use DRF token/session auth in single-machine modeurls.py: Serve media files viadjango.views.static.serveoutsideDEBUGmode - fixes export 404 when no reverse proxy is configuredTesting
/api/generic/status/returns all Chinese status labelsNotes
e4b23b4(master branch)django.mois gitignored and must be compiled separately (polibordjango compilemessages)npm run compile+npm run buildafter applying