oc-translatetabs-plugin's People
oc-translatetabs-plugin's Issues
Trying to access array offset on value of type null
OctoberCMS Build 468
Translate Plugin v1.6.7
I tried to use your plugin, but got the following error:
Trying to access array offset on value of type null
plugins/vdomah/translatetabs/formwidgets/Translations.php line 63
$this->vars['locale'] = $this->formField->attributes['field']['locale'];
My fields.yaml file is super basic:
fields:
_translations:
span: left
type: translations
form:
fields:
name:
label: Name
span: auto
type: text
Also, I couldn't find where the locale variable is even used. Commenting out the line doesn't seem to break anything (but it makes the error go away).
Error count() Parameter must be an array or an object
"count(): Parameter must be an array or an object that implements Countable" on line 48 of ...\octobercms\plugins\vdomah\translatetabs\Plugin.php
I found it is an error with PHP 7.2
I change \octobercms\plugins\vdomah\translatetabs\Plugin.php at line 48
from
if (!count($arr))
return false;
to
if (is_array($arr)) {
if (!count($arr))
return false;
} else {
return false;
}
It is worked!
Special fields
Hi,
Would it be possible to make it work with special fields like richeditor or markdown?
Also would it be possible to use the language "name" instead of it's "code" to make the tabs titles ?
Thanks.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.