-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations in folder_contents are incomplete #2188
Comments
When I search for 'Move to top of folder' I only find this in |
I want to fix it. |
The issue with those actions Copy, Move to top of folder, Move to bottom of folder, Set as default page still exists. Here is a complete list I think:
|
Does anyone has the knowledge how to debug this? Like how do we modify the files of mockup and see the changes in a buildout.coredev 5.2? |
I only know how to create |
@vincentfretin You need to go to the site setup, and then to the "Resource registries". In there you should see a checkbox that will enable "Dev mode" for resources. Next, you can enable dev mode for JS or CSS resources (I believe in your case you will only want to enable JS) I think the bundle you are looking for is "plone-logged-in" but it could be some other, I don't remember at this time. |
Thanks you @frapell ! Now we're talking. |
OMG how does this stuff works? I started to write documentation of what I know there plone/mockup#985 |
I found out. The translations are handled by mockup/js/i18n.js that calls the plonejsi18n view in plone.app.content apparently to generate a live json from the mo file. The view is called one time for a given domain and language and the result is cached in localStorage for 24 hours. The only way to test the new translations is to restart the instance to update the mo file from the po file, and then to purge the localStorage to trigger a new download of the translations. |
@vincentfretin I don't know much about the translations, and I didn't know they were cached for 24 hours in localstorage, isn't there a way to avoid that in development? I can imagine being a total pain when adding new translations |
@vincentfretin Maybe @thet knows? |
@frapell There is no way no, look at the code |
I'm not going to work on it myself. So anybody feel free to continue from here. plone/mockup#539 can help too |
@pbauer is one of a few that did know the caching issue in localStorage in 2015 :-) |
There is actually a dedicated issue for the review state column: #2419 |
@erral started a branch in mockup plone/mockup#992 to fix some of the issues of the list #2188 (comment) |
I will create specific issues for some of the items described above, because some of them are hard to track down. |
I close the issue, because it addresses a Plone version that is no longer supported. |
Partly this looks like a regression to 5.1b4. The translation coverage was better there.
What I did:
What I expect to happen:
What actually happened:
What version of Plone/ Addons I am using:
The text was updated successfully, but these errors were encountered: