Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
bd8840d6
Commit
bd8840d6
authored
Oct 21, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 605425: Non-english templates are no longer precompiled by checksetup
r/a=mkanat
parent
7c94f7af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Util.pm
Bugzilla/Install/Util.pm
+5
-2
Template.pm
Bugzilla/Template.pm
+2
-1
No files found.
Bugzilla/Install/Util.pm
View file @
bd8840d6
...
...
@@ -364,7 +364,10 @@ sub include_languages {
# supports.
my
$wanted
;
if
(
$params
->
{
language
})
{
$wanted
=
[
$params
->
{
language
}];
# We can pass several languages at once as an arrayref
# or a single language.
$wanted
=
$params
->
{
language
};
$wanted
=
[
$wanted
]
unless
ref
$wanted
;
}
else
{
$wanted
=
_wanted_languages
();
...
...
@@ -441,7 +444,7 @@ sub _template_base_directories {
sub
template_include_path
{
my
(
$params
)
=
@_
;
my
@used_languages
=
include_languages
(
@_
);
my
@used_languages
=
include_languages
(
$params
);
# Now, we add template directories in the order they will be searched:
my
$template_dirs
=
_template_base_directories
();
...
...
Bugzilla/Template.pm
View file @
bd8840d6
...
...
@@ -1017,7 +1017,8 @@ sub precompile_templates {
print
install_string
(
'template_precompile'
)
if
$output
;
my
$paths
=
template_include_path
();
# Pre-compile all available languages.
my
$paths
=
template_include_path
({
language
=>
Bugzilla
->
languages
});
foreach
my
$dir
(
@$paths
)
{
my
$template
=
Bugzilla::
Template
->
create
(
include_path
=>
[
$dir
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment