wagtail-localize | Translation plugin for Wagtail CMS | Internationalization library
kandi X-RAY | wagtail-localize Summary
kandi X-RAY | wagtail-localize Summary
Wagtail Localize is a translation plugin for the Wagtail CMS. It allows pages or snippets to be translated within Wagtail's admin interface. It also provides integrations with external translations services such as Pontoon or DeepL, and importing/exporting translations with PO files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles editing of a translation
- Return the URL for the snippet edit
- Returns the URL for a snippet delete
- Return the machine translator instance
- Translate a machine
- Convert to a string
- Checks if the user can edit this instance
- Convert to an alias
- Synchronize an alias to another one
- Filter by content type
- Return a list of buttons for the given page
- Creates translations for a given page
- Preview a translation
- Create a segment from text
- Creates a permission for submitting translations
- View to edit a page
- Returns the error message if any
- Translate a list of strings
- Synchronize tree from source_locale to target_locale
- Adds the list of buttons to the snippet listing
- Export the message to a PO file
- Get or create a translation source
- Create a TranslationSource from an instance
- Edit a string translation
- Edit an overlay override
- Upload a po file
wagtail-localize Key Features
wagtail-localize Examples and Code Snippets
Community Discussions
Trending Discussions on wagtail-localize
QUESTION
So the problem is simple:
Translated home page is not connected to any site. Everything is working kind of properly, I can open translated pages manually like this: /en/...
. But for example there is no LIVE
button on the translated page, to which i'm used to.
This is the main home page, my site defaults to.
And this is translated home page.
Also in the explorer, it shows a warning that this page is not connected to any site, which I think should not be.
Here in the red boxes it was written in what language each page is.
This is not a very big deal, but it's a little bit annoying and I'm planning to release this site in production soon, so editors may not understand which page to edit. How can I fix this? Maybe there is a way to change something in the database, so translated home pages are properly connected to the main home page?
I tried to delete database and remigrate everyting(which by the way gave me this error, I fixed it by adding locale_id=1
to the migration), nothing worked. I think this happened when I changed LANGUAGE_CODE
from en-us
to ru-ru
, I'm not sure, but deleting and remigrating database should have fixed it but it didn't. :(
Somebody with 1500 reputation please create a wagtail-localize
tag xD
ANSWER
Answered 2020-Nov-21 at 17:44Of course, posted a question, answer came up... Nevermind, I think many people will find this Q&A useful.
So the problem was in wagtail_localize.locales
app, I changed it to wagtail.locales
and everything is working now, I thought these apps are basically the same thing, but I was wrong.
.url
function on pages was not working too because of this issue. Just replace the app!
Hope this helps! :P
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wagtail-localize
To make changes to this project, first clone this repository:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page