dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
config-lng_en.fd.php
Go to the documentation of this file.
1<?php
2$messages = array();
3$messages['save_success'] = 'Data was saved';
4$messages['save_succeass'] = $messages['save_success'];
5$messages['save_error'] = 'Data could not be saved';
6
7
8$lngOptions = 'de=German (DE)&en=English (EN)&es=Espanol (ES)&fr=Francais (FR)&it=Italiano (IT)';
9
10$providerOptions = 'copy=Copy text (default)&none=Leave empty&deepl=DeepL API&openai=OpenAI API&custom=Customs (translate.php)';
11
12$modelOptions = 'gpt-4o-mini=gpt-4o-mini (fast)&gpt-4o=gpt-4o (quality)&gpt-4.1-mini=gpt-4.1-mini';
13
14$field = array();
15$field['name'] = 'default_lng';
16$field['type'] = 'varchar';
17$field['length'] = '8';
18$field['default'] = 'de';
19$field['label'] = 'Master language';
20$field['rules'] = '*';
21$field['tooltip'] = 'Control language of the CMS: structure, commission, auto-sync and master revision. Corresponds default_lng in the system-config (dbx).';
22$field['errormsg'] = 'Please select a valid master language.';
23$field['placeholder'] = 'de';
24$field['options'] = $lngOptions;
25$field['tpl'] = 'select-single-label';
27
28$field = array();
29$field['name'] = 'accessible_lng';
30$field['type'] = 'varchar';
31$field['length'] = '128';
32$field['default'] = 'de';
33$field['label'] = 'Available languages';
34$field['rules'] = '*';
35$field['tooltip'] = 'All languages for CMS tree, language badges and UI switching. The master language must be included. Stored as accessible_lng in dbx.';
36$field['errormsg'] = 'Select at least one language.';
37$field['placeholder'] = 'de, en, es';
38$field['options'] = $lngOptions;
39$field['tpl'] = 'select-multible-label';
40$fields[] = $field;
41
42$field = array();
43$field['name'] = 'home_cid';
44$field['type'] = 'varchar';
45$field['length'] = '16';
46$field['default'] = '1';
47$field['label'] = 'Home page (master)';
48$field['rules'] = 'int';
49$field['tooltip'] = 'Content ID of the homepage in the master language (dbxHome/cid). The target languages are lng_uid on the right page.';
50$field['errormsg'] = 'Please provide a valid content ID.';
51$field['placeholder'] = 'e.g. 1';
52$field['options'] = '';
53$field['tpl'] = 'text-label';
54$fields[] = $field;
55
56$field = array();
57$field['name'] = 'lng_translate_provider';
58$field['type'] = 'varchar';
59$field['length'] = '32';
60$field['default'] = 'copy';
61$field['label'] = 'Translation provider';
62$field['rules'] = '*';
63$field['tooltip'] = 'copy = master text. none = target text empty. deepl/openai = API translation. custom = own translate.php in the module.';
64$field['errormsg'] = 'Please choose a provider.';
65$field['placeholder'] = 'copy';
67$field['tpl'] = 'select-single-label';
68$fields[] = $field;
69
70$field = array();
71$field['name'] = 'lng_translate_api_key';
72$field['type'] = 'varchar';
73$field['length'] = '256';
74$field['default'] = '';
75$field['label'] = 'API key';
76$field['rules'] = '';
77$field['tooltip'] = 'Duty at deepl and openai. Leave blank at copy/none. In the case of: dbxContent-Config stored.';
78$field['errormsg'] = '';
79$field['placeholder'] = 'sk-... or DeepL-Auth-Key';
80$field['options'] = '';
81$field['tpl'] = 'password-label';
82$fields[] = $field;
83
84$field = array();
85$field['name'] = 'lng_translate_api_url';
86$field['type'] = 'varchar';
87$field['length'] = '256';
88$field['default'] = '';
89$field['label'] = 'API URL (optional)';
90$field['rules'] = '';
91$field['tooltip'] = 'Empty = provider standard. Only set for own endpoint (e.g. DeepL Free API) or custom translate URL.';
92$field['errormsg'] = '';
93$field['placeholder'] = 'e.g. https://api.deepl.com/v2/translate';
94$field['options'] = '';
95$field['tpl'] = 'text-label';
96$fields[] = $field;
97
98$field = array();
99$field['name'] = 'lng_translate_model';
100$field['type'] = 'varchar';
101$field['length'] = '64';
102$field['default'] = 'gpt-4o-mini';
103$field['label'] = 'OpenAI model';
104$field['rules'] = '';
105$field['tooltip'] = 'Only for providers openai. Model ID for chat completions (e.g. gpt-4o-mini for fast translations).';
106$field['errormsg'] = '';
107$field['placeholder'] = 'gpt-4o-mini';
109$field['tpl'] = 'select-single-label';
110$fields[] = $field;
$modelOptions
$providerOptions
$lngOptions
$messages
Definition config.fd.php:2