Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drew Clardy
ISPConfig 3
Commits
836f8329
Commit
836f8329
authored
15 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tpl generation classes and added missing language file createion code again.
parent
b6a07cf3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/lib/classes/listform_tpl_generator.inc.php
+41
-0
41 additions, 0 deletions
interface/lib/classes/listform_tpl_generator.inc.php
interface/lib/classes/tform_tpl_generator.inc.php
+322
-297
322 additions, 297 deletions
interface/lib/classes/tform_tpl_generator.inc.php
with
363 additions
and
297 deletions
interface/lib/classes/listform_tpl_generator.inc.php
+
41
−
0
View file @
836f8329
...
...
@@ -132,7 +132,48 @@ class listform_tpl_generator {
}
fclose
(
$handle
);
/*$lang["page_txt"] = 'Page';
$lang["page_of_txt"] = 'of';
$lang["page_next_txt"] = 'Next';
$lang["page_back_txt"] = 'Back';
$lang["delete_txt"] = 'Delete';
$lang["filter_txt"] = 'Filter';
$lang["add_new_record_txt"] = 'Add new record';
*/
// save language file
$this
->
lng_add
(
$lang
,
$listDef
,
$module
);
}
function
lng_add
(
$lang
,
$listDef
,
$module
=
''
)
{
global
$go_api
,
$go_info
,
$conf
;
if
(
$module
==
''
)
{
$lng_file
=
"lib/lang/"
.
$conf
[
"language"
]
.
"_"
.
$listDef
[
'name'
]
.
"_list.lng"
;
}
else
{
$lng_file
=
'../'
.
$module
.
"/lib/lang/en_"
.
$listDef
[
'name'
]
.
"_list.lng"
;
}
if
(
is_file
(
$lng_file
))
{
include_once
(
$lng_file
);
}
else
{
$wb
=
array
();
}
$wb_out
=
array_merge
(
$lang
,
$wb
);
if
(
is_array
(
$wb_out
))
{
$fp
=
fopen
(
$lng_file
,
"w"
);
fwrite
(
$fp
,
"<?php
\r\n
"
);
foreach
(
$wb_out
as
$key
=>
$val
)
{
$new_line
=
'$wb["'
.
$key
.
'"] = '
.
"'
$val
';
\r\n
"
;
fwrite
(
$fp
,
$new_line
);
}
fwrite
(
$fp
,
"?>"
);
fclose
(
$fp
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
interface/lib/classes/tform_tpl_generator.inc.php
+
322
−
297
View file @
836f8329
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment