Skip to content
Snippets Groups Projects
Commit ed8144bf authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

translate object type

parent 27f6df74
No related branches found
No related tags found
No related merge requests found
import("system.translate");
import("system.db");
import("system.result");
import("system.vars");
......@@ -10,4 +11,7 @@ result.object(db.table(
, [
[vars.get("$param.ObjectType_param"), db.getColumnTypes("AB_OBJECTRELATIONTYPE", ["OBJECT_TYPE"])[0]],
[vars.get("$param.ObjectType_param"), db.getColumnTypes("AB_OBJECTRELATIONTYPE", ["OBJECT_TYPE"])[0]],
]]));
\ No newline at end of file
]]).map(function(pItem)
{
return [pItem[0], translate.text(pItem[1])];
}));
\ No newline at end of file
......@@ -2491,7 +2491,7 @@
<key>member</key>
</entry>
<entry>
<key>promotion target by</key>
<key>promotion target of</key>
</entry>
<entry>
<key>supports</key>
......@@ -2550,6 +2550,12 @@
<entry>
<key>Filetype</key>
</entry>
<entry>
<key>Special price list</key>
</entry>
<entry>
<key>New attribute</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......@@ -2562,9 +2568,8 @@ union
select AB_LANGUAGE.NAME_LATIN from AB_LANGUAGE
union
select AB_COUNTRYINFO.NAME_LATIN from AB_COUNTRYINFO
union -- Object1Title and Object2Title for Keyword-Container ObjectRelationType
select CHAR_VALUE from AB_KEYWORD_ATTRIBUTERELATION
where AB_KEYWORD_ATTRIBUTE_ID in (&amp;apos;6f81d079-d404-4bda-a7c7-b830ed3d80d5&amp;apos;, &amp;apos;e8c85be3-1acb-45f6-aeea-726ba5811ab8&amp;apos;)</element>
union
select AB_OBJECTRELATIONTYPE.RELATION_TITLE from AB_OBJECTRELATIONTYPE</element>
</statements>
</languageSql>
</sqlModels>
......
......@@ -2956,7 +2956,7 @@
<value>Mitglied</value>
</entry>
<entry>
<key>promotion target by</key>
<key>promotion target of</key>
<value>Werbezielgruppe von</value>
</entry>
<entry>
......@@ -2994,6 +2994,9 @@
<entry>
<key>Parent Attribute</key>
</entry>
<entry>
<key>Special price list1</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -2516,7 +2516,7 @@
<key>member</key>
</entry>
<entry>
<key>promotion target by</key>
<key>promotion target of</key>
</entry>
<entry>
<key>supports</key>
......@@ -2578,7 +2578,10 @@
<key>Filetype</key>
</entry>
<entry>
<key>Entrydate (Month)</key>
<key>Special price list</key>
</entry>
<entry>
<key>New attribute</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
......
......@@ -95,7 +95,7 @@
<insert tableName="AB_OBJECTRELATIONTYPE">
<column name="AB_OBJECTRELATIONTYPEID" value="9d4739ba-33b0-4e87-b281-561e2cbdd277"/>
<column name="OBJECT_TYPE" value="Person"/>
<column name="RELATION_TITLE" value="promotion target by"/>
<column name="RELATION_TITLE" value="promotion target of"/>
<column name="RELATION_TYPE" value="ddad6aa3-267b-4784-afbb-98242218fcf5"/>
<column name="SORT" valueNumeric="1"/>
</insert>
......
......@@ -88,5 +88,5 @@
<include relativeToChangelogFile="true" file="update_pricelist_keyword.xml"/>
<include relativeToChangelogFile="true" file="add_ObjectRelation_type.xml"/>
<include relativeToChangelogFile="true" file="ObjectRelation_add_type_exampleData.xml" context="example"/>
<include relativeToChangelogFile="true" file="data/AditoBasic/ObjectRelation_exampleData.xml" context="example"/>
</databaseChangeLog>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment