Code Monkey home page Code Monkey logo

oc-translatetabs-plugin's People

Contributors

enixsoft avatar ribagek avatar vdomah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

phadadi dheia

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.