daandelange / k3-translations Goto Github PK
View Code? Open in Web Editor NEWTranslations menu replacement, field and section for Kirby 3.
Translations menu replacement, field and section for Kirby 3.
I'm using a dedicated hostname per language. The Visit this page in ...
always link to the hostname of the currently selected language.
I'm using plugins with external translation-files. (e.g. kirby-form-blocks).
These translations are ignored while using your plugin. The panel shows the key instead of the value stored in the translation-file.
I am not sure, which plugin is to "blame", but I would like to notify you as well that when installing k3-translations, the commentions plugin breaks.
Sorry i can't track this down i am just in middle of project. So this is very badly posted issue :(. Hopefully i get back to this in few weeks.
I've just installed your lovely plugin but suddenly its not possible to change status of pages from Draft to Unlisted/Listed
It might be some plugin collision. Not sure yet.
When Translations is enabled on my English/French sites, Uniform's "calc guard" field doesn't work properly anymore. It should display like this:
but instead displays like this:
The "plus" word no longer appears.
I don't know which plugin needs a fix, but since Uniform works fine when used alone I decided to file an issue here and ping @mzur for information.
Both plugins are updated to their latest version.
For what it's worth, I investigated a bit.
What I noticed is that in Uniform, in src/helpers.php
line 38 the I18n::translate() function returns nothing when Translations plugin is present:
return Str::encode($a.' '.I18n::translate('uniform-calc-plus').' '.$b);
In Translations, in index.php
line 212 and 223 (yes, this entry is duplicated) this kind of line seems to be the source of the issue:
'daandelange.translations.loading' => I18n::translate('loading', 'Loading', 'fr').'...',
If I delete both entries the calc guard works as expected.
I wonder why you did this instead of simply:
'daandelange.translations.loading' => 'Chargement…'
The Edit language in panel
button is not very useful, but it asks a lot of attention. It would be great to be able to hide it from the dropdown menus.
Hi there!
Thanks for the plugin. I have the issue that the status of a secondary language does not update in the moment when the new language version of the page is created, i.e. when I enter some translated text and save the page. Basically, the icon stays red and the button indicates that the page is still not translated. Only after a page reload does it correctly tell me that the page is translated. This is potentially confusing to editors creating these translations.
Thanks!
The plugin seems to work with kirby4 alpha-4 but i can't delete a translation :
Error in the delete pop-up :
The internal $model->contentFile() method has been deprecated. You can use $model->storage()->contentFile() instead, however please note that this method is also internal and may be removed in the future.
index.php
line 118 : $filePath = $page->contentFile($languageCode, true);
with this change : $filePath = $page->storage()->contentFile($languageCode, true);
error in the same delete pop-up :
Invalid language: 1
Thanks !
cannot disable revert
or delete
. Also, none of the other options have an effect.
0.2.5-beta
3.7.5.1
The options are only visual now.
During load, errors can always happen (internal server error, or JS execution issues).
If this happens, the loading indicator is stuck on Loading.
The loading icon should revert to the default language menu when it fails to load.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.