English > Extensions and jDiction

JEvents Locations

(1/2) > >>

Kroketto:
Hi, I tried to make an jdiction.xlm to translate the description of a JEvents-location. This is the first attempt, other translations have to follow. But I am stuck already with the first translation.

My jdiction.xml looks like this:


--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<jdiction>
  <component>com_jevlocations</component>
  <sections>
    <section>
      <tables>
        <table>
          <name>#__jev_locations</name>
          <key>loc_id</key>
          <class><com_jevlocations>TableLocation</class>
          <file>location.php</file>
          <cache fullfetch="0" />
        </table>
      </tables>
      <views>
        <view name="locations.edit" list="locations.overview" layout="default" default="true">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="description" type="jdalias" field="description"/>
              </fieldset>
          </form>
        </view>
      </views>
    </section>
  </sections>
</jdiction>
--- End code ---

But in my JEvents-Locations, I don't get the translation-buttons. Please help  :-[

Harald Leithner:
That section is wrong

--- Quote ---       <view name="locations.edit" list="locations.overview" layout="default" default="true">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="description" type="jdalias" field="description"/>
              </fieldset>
          </form>
        </view>
--- End quote ---

Try the following



--- Quote ---<view name="location" list="locations" layout="edit" default="true">
<form import="location.xml">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
<field name="title" />
<field name="description" />
              </fieldset>
          </form>
        </view>
--- End quote ---



Kroketto:
Hab ich geändert, leider immer noch kein Button zum Übersetzen da. Für das reine JEvents habe ich die vorgefertigte XML genommen, das ging wunderbar. Nur diese hier will nicht. Das "description" aus <field name="description" /> habe ich direkt aus der Datenbank genommen, richtig so?

Harald Leithner:
Schau dir lieber das XML im admin com_components/models/forms/location.XML

Außerdem wäre spannend was in der URL steht beim editieren.

Kroketto:
\forms gibt es gar nicht. Direkt im \models gibt es eine location.xml:


--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<model>
<params>
<!--
<param name="target" type="list" default="" label="Target" description="Target window when the link is clicked">
<option value="">Use Global</option>
<option value="0">Parent Window With Browser Navigation</option>
<option value="1">New Window With Browser Navigation</option>
<option value="2">New Window Without Browser Navigation</option>
</param>
//-->
</params>
</model>

--- End code ---

http://s547763404.online.de/joomla2/administrator/index.php?option=com_jevlocations&task=locations.overview

bzw.

http://s547763404.online.de/joomla2/administrator/index.php?option=com_jevlocations&task=locations.edit&cid[]=1

Navigation

[0] Message Index

[#] Next page

Go to full version