if ($type < 1 OR $type > 2)
{
- $viewsvn->trigger->error('invalid path management type');
+ $viewsvn->trigger->error($viewsvn->lang->string('Invalid path management type specified in [includes/config.php]'));
}
$this->type = (int)$type;
}
else
{
- $viewsvn->trigger->error('server does not support type 2 management');
+ $viewsvn->trigger->error($viewsvn->lang->string('Your server does not support type-2 path management'));
}
}
if (!$path)
{
- $viewsvn->trigger->error('invalid path sent');
+ $viewsvn->trigger->error($viewsvn->lang->string('Invalid path sent'));
}
if (!$viewsvn->repos->verify($this->fetch_repos($path), $this->fetch_path($path)))
{
- $viewsvn->trigger->error('invalid path');
+ $viewsvn->trigger->error($viewsvn->lang->string('The path specified could not be verified'));
}
return $path;
if (count($this->repositories) < 1)
{
- $viewsvn->trigger->error('no valid repositories');
+ $viewsvn->trigger->error($viewsvn->lang->string('There are no valid repositories'));
}
}
if (!in_array($repository, $this->fetch_list()))
{
- $viewsvn->trigger->error('invalid repository name');
+ $viewsvn->trigger->error($viewsvn->lang->string('Invalid repository name specified'));
}
if ($this->container)
if (!$access)
{
- $viewsvn->trigger->error('svn binary could not be found');
+ $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary could not be located'));
}
if (!preg_match('#^svn, version (.*?)\)$#i', trim($access[0])))
{
- $viewsvn->trigger->error('svn binary does not pass test');
+ $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary does not appear to be valid (it failed our tests)'));
}
}
*/
function fetch_prev_rev($path, $current)
{
+ global $viewsvn;
+
$revs = $this->fetch_revs($path);
if ($current == 'HEAD')
$index = array_search($current, $revs['revs']);
if ($current === false)
{
- $message->trigger->error('revision ' . $current . ' is not in ' . $path);
+ $message->trigger->error(sprintf($viewsvn->lang->string('Revision r%1$s is not in path %2$s'), $current, $path));
}
if (isset($revs['revs'][ $index + 1 ]))
{
case 'A':
$class = 'file_add';
- $tooltip = 'Added';
+ $tooltip = $viewsvn->lang->string('Added');
break;
case 'D':
$class = 'file_delete';
- $tooltip = 'Deleted';
+ $tooltip = $viewsvn->lang->string('Deleted');
break;
case 'M':
$class = 'file_modify';
- $tooltip = 'Modified';
+ $tooltip = $viewsvn->lang->string('Modified');
break;
case 'R':
$class = 'file_replace';
- $tooltip = 'Replaced';
+ $tooltip = $viewsvn->lang->string('Replaced');
break;
}
<head>
$headinclude
<link rel="stylesheet" href="$viewsvn->path/templates/default/diff.css" media="screen" />
- <title>Blame</title>
+ <title>{@"Blame"}</title>
</head>
$header
-<a href="$viewsvn->path/$link[log]">View Log</a>
+<a href="$viewsvn->path/$link[log]">{@"View Log"}</a>
<if condition="$show['head']">
- - <a href="$viewsvn->path/$link[gohead]">Go to HEAD</a>
- - <a href="$viewsvn->path/$link[diffhead]">Diff to HEAD</a>
+ - <a href="$viewsvn->path/$link[gohead]">{@"Go to HEAD"}</a>
+ - <a href="$viewsvn->path/$link[diffhead]">{@"Diff to HEAD"}</a>
</if>
<if condition="$show['prev']">
- - <a href="$viewsvn->path/$link[diffprev]">Diff to PREV</a>
+ - <a href="$viewsvn->path/$link[diffprev]">{@"Diff to PREV"}</a>
</if>
<div class="head" style="border-width: 1px">$navbar</div>
<html lang="##LANG##" xml:lang="##XML-LANG##">
<head>
$headinclude
- <title>ViewSVN - Browse</title>
+ <title>{@"ViewSVN - Browse"}</title>
</head>
$header
-<div class="head">Revision Information</div>
+<div class="head">{@"Revision Information"}</div>
<div class="content">
- <div><strong>Revision:</strong> $revinfo[rev]</div>
- <div><strong>Author:</strong> $revinfo[author]</div>
- <div><strong>Date:</strong> $revinfo[date] $revinfo[timezone]</div>
- <div><strong>Message:</strong> $revinfo[message_clean]</div>
+ <div><strong>{@"Revision"}:</strong> $revinfo[rev]</div>
+ <div><strong>{@"Author"}:</strong> $revinfo[author]</div>
+ <div><strong>{@"Date"}:</strong> $revinfo[date] $revinfo[timezone]</div>
+ <div><strong>{@"Message"}:</strong> $revinfo[message_clean]</div>
</div>
<div class="head" style="border-width: 0px 1px 1px 1px">
<span style="font-weight: normal">
(
- <a href="$viewsvn->path/$link[log]">View Log</a>
+ <a href="$viewsvn->path/$link[log]">{@"View Log"}</a>
<if condition="$show['head']">
- - <a href="$viewsvn->path/$link[gohead]">Go to HEAD</a>
- - <a href="$viewsvn->path/$link[diffhead]">Diff to HEAD</a>
+ - <a href="$viewsvn->path/$link[gohead]">{@"Go to HEAD"}</a>
+ - <a href="$viewsvn->path/$link[diffhead]">{@"Diff to HEAD"}</a>
</if>
<if condition="$show['prev']">
- - <a href="$viewsvn->path/$link[diffprev]">Diff to PREV</a>
+ - <a href="$viewsvn->path/$link[diffprev]">{@"Diff to PREV"}</a>
</if>
)
</span>
<a href="$viewsvn->path/$view">$item</a>
</if>
<span class="nodelink">
- <if condition="!$show['directory']"><a href="$viewsvn->path/$blame">Blame</a> - </if>
- <a href="$viewsvn->path/$log">View Log</a>
+ <if condition="!$show['directory']"><a href="$viewsvn->path/$blame">{@"Blame"}</a> - </if>
+ <a href="$viewsvn->path/$log">{@"View Log"}</a>
</span>
</div>
\ No newline at end of file
$headinclude
<link rel="stylesheet" href="$viewsvn->path/templates/default/diff.css" media="screen" />
<link rel="stylesheet" href="$viewsvn->path/templates/default/file.css" media="screen" />
- <title>Diff</title>
+ <title>{@"Diff"}</title>
</head>
$header
<span style="font-weight: normal">
(
- <if condition="$show['fullchangeset']"><a href="$viewsvn->path/$link[changeset]">View Full Changeset</a> -</if>
- <a href="$viewsvn->path/$link[log]">View Log</a>
+ <if condition="$show['fullchangeset']"><a href="$viewsvn->path/$link[changeset]">{@"View Full Changeset"}</a> -</if>
+ <a href="$viewsvn->path/$link[log]">{@"View Log"}</a>
)
</span>
</div>
<div class="content">
- <div><strong>Revision:</strong> $log[rev]</div>
- <div><strong>Author:</strong> $log[author]</div>
- <div><strong>Date:</strong> $log[date] $log[timezone]</div>
- <div><strong>Message:</strong> $log[message_clean]</div>
+ <div><strong>{@"Revision"}:</strong> $log[rev]</div>
+ <div><strong>{@"Author"}:</strong> $log[author]</div>
+ <div><strong>{@"Date"}:</strong> $log[date] $log[timezone]</div>
+ <div><strong>{@"Message"}:</strong> $log[message_clean]</div>
</div>
-<div class="subhead" style="border-width: 0px 1px 0px 1px">File Changes</div>
+<div class="subhead" style="border-width: 0px 1px 0px 1px">{@"File Changes"}</div>
<div class="content">
$files
</div>
- <div><div class="file_bit + $class" title="$tooltip"></div> <a href="$viewsvn->path/$link[file]">$file[file]</a> <if condition="$show['from']"><em>(from <a href="$viewsvn->path/$link[from]">$file[from]</a>)</em></if></div>
+ <div><div class="file_bit + $class" title="$tooltip"></div> <a href="$viewsvn->path/$link[file]">$file[file]</a> <if condition="$show['from']"><em>({@"from"} <a href="$viewsvn->path/$link[from]">$file[from]</a>)</em></if></div>
<td style="text-align: right">
<if condition="$show['reposchooser']">
<form name="jumper" method="post" action="$viewsvn->path/repository.php">
- Repository: <select name="repository">
+ {@"Repository"}: <select name="repository">
$options
</select>
<html lang="##LANG##" xml:lang="##XML-LANG##">
<head>
$headinclude
- <title>ViewSVN - Repositories</title>
+ <title>{@"ViewSVN - Repositories"}</title>
</head>
$header
<div style="width: 500px">
- <div class="head">Repositories</div>
+ <div class="head">{@"Repositories"}</div>
<div class="content">
<ul class="list">
$nodes
<html lang="##LANG##" xml:lang="##XML-LANG##">
<head>
$headinclude
- <title>ViewSVN - Log</title>
+ <title>{@"ViewSVN - Log"}</title>
</head>
$header
<div class="subhead" style="border-width: 0px 1px 0px 1px">
r$log[rev] ($log[author])
$log[date] $log[timezone]
- - <a href="$viewsvn->path/$link[view]">View</a>
- <if condition="!$isdir">- <a href="$viewsvn->path/$link[blame]">Blame</a></if>
- <if condition="$show['diffhead']">- <a href="$viewsvn->path/$link[diffhead]">Diff to HEAD</a></if>
- <if condition="$show['diffprev']">- <a href="$viewsvn->path/$link[diffprev]">Diff to PREV</a></if>
+ - <a href="$viewsvn->path/$link[view]">{@"View"}</a>
+ <if condition="!$isdir">- <a href="$viewsvn->path/$link[blame]">{@"Blame"}</a></if>
+ <if condition="$show['diffhead']">- <a href="$viewsvn->path/$link[diffhead]">{@"Diff to HEAD"}</a></if>
+ <if condition="$show['diffprev']">- <a href="$viewsvn->path/$link[diffprev]">{@"Diff to PREV"}</a></if>
</div>
<div class="content" style="padding: 4px">
$log[message_clean]
<html lang="##LANG##" xml:lang="##XML-LANG##">
<head>
$headinclude
- <title>View</title>
+ <title>{@"View"}</title>
</head>
$header
-<div class="head">Revision Information</div>
+<div class="head">{@"Revision Information"}</div>
<div class="content">
- <div><strong>Revision:</strong> $logmsg[rev]</div>
- <div><strong>Author:</strong> $logmsg[author]</div>
- <div><strong>Date:</strong> $logmsg[date] $logmsg[timezone]</div>
- <div><strong>Message:</strong> $logmsg[message_clean]</div>
+ <div><strong>{@"Revision"}:</strong> $logmsg[rev]</div>
+ <div><strong>{@"Author"}:</strong> $logmsg[author]</div>
+ <div><strong>{@"Date"}:</strong> $logmsg[date] $logmsg[timezone]</div>
+ <div><strong>{@"Message"}:</strong> $logmsg[message_clean]</div>
</div>
<div class="head" style="border-width: 0px 1px 0px 1px">
<span style="font-weight: normal">
(
- <a href="$viewsvn->path/$link[log]">View Log</a>
+ <a href="$viewsvn->path/$link[log]">{@"View Log"}</a>
<if condition="$show['head']">
- - <a href="$viewsvn->path/$link[gohead]">Go to HEAD</a>
- - <a href="$viewsvn->path/$link[diffhead]">Diff to HEAD</a>
+ - <a href="$viewsvn->path/$link[gohead]">{@"Go to HEAD"}</a>
+ - <a href="$viewsvn->path/$link[diffhead]">{@"Diff to HEAD"}</a>
</if>
<if condition="$show['prev']">
- - <a href="$viewsvn->path/$link[diffprev]">Diff to PREV</a>
+ - <a href="$viewsvn->path/$link[diffprev]">{@"Diff to PREV"}</a>
</if>
)
</span>