【问题标题】:typo3: issue with locallang xml错字3:locallang xml 的问题
【发布时间】:2013-08-21 06:44:59
【问题描述】:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
    <meta type="array">
        <type>database</type>
        <description>Language labels for extension 'dagou_user'</description>
    </meta>
    <data type="array">
        <languageKey index="default" type="array">
            <!-- Email -->
            <label index="email_notify_employer_body"><![CDATA[A new Employer has signed up!<br /><br />Account Name: ###USERNAME###<br />Email: ###EMAIL###<br />Full Name: ###NAME###<br />Company Name: ###COMPANY###<br />Location: ###CITY### ###STATE###, ###ZIP###]]></label>
            <label index="email_notify_employer_subject">New Employer</label>
        ...
        </languageKey>
    </data>
</T3locallang>

以上代码取自locallang_dagouuser.xml,同时我正在阅读这篇文档:http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/7/2/

问题:

  1. 对于type="array",我可以为type 分配任何其他值吗?比如type="string"...

  2. &lt;type&gt;database&lt;/type&gt;,文档里写的是"database" : Used for labels of database tables and fields.,这是什么意思?如何将这些标签与数据库表和字段一起使用?

【问题讨论】:

    标签: typo3


    【解决方案1】:
    1. 不,只有这一种。
    2. 这只是向读者提示此语言文件的用途。当您查看扩展程序的 TCA 时,您会看到类似

    'label' => 'LLL:EXT:cms/locallang_ttc.xml:sys_language_uid_formlabel'

    这是使用数据库字段语言标签的地方之一。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-03
      相关资源
      最近更新 更多