summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-12-09 02:18:00 +0100
committerneoraider <devnull@localhost>2006-12-09 02:18:00 +0100
commit7be63518bdb86fb747dda20918ef6eab3d30e40c (patch)
treee9239af6d9efa6d7a2129adb71ca77fb25a0f59d /pages
parentfa39bfd963d7d05335d968b0efdfd9bb9a40f132 (diff)
downloadneon-7be63518bdb86fb747dda20918ef6eab3d30e40c.tar
neon-7be63518bdb86fb747dda20918ef6eab3d30e40c.zip
?bersetzung vereinfacht; alle Seiten ?bersetzt
Diffstat (limited to 'pages')
-rw-r--r--pages/base/default.xml2
-rw-r--r--pages/content/Login.xml6
-rw-r--r--pages/content/Modules.xml4
-rw-r--r--pages/content/Pages.xml18
-rw-r--r--pages/content/Pages:Handle.xml59
-rw-r--r--pages/content/Users.xml10
-rw-r--r--pages/content/Users:Handle.xml62
7 files changed, 79 insertions, 82 deletions
diff --git a/pages/base/default.xml b/pages/base/default.xml
index 51fc115..de2ef47 100644
--- a/pages/base/default.xml
+++ b/pages/base/default.xml
@@ -31,7 +31,7 @@
if($GLOBALS['pages']->HasWriteAccess($GLOBALS['page'], 'c') && $_GET['mode'] != 'edit') {
$backlink = $GLOBALS['links']->GetNeonLink($GLOBALS['page']);
- echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($GLOBALS['page'], 'mode=edit') . '">Bearbeiten</a>';
+ echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($GLOBALS['page'], 'mode=edit') . '">{{Edit}}</a>';
}
echo $GLOBALS['data']['content'];
diff --git a/pages/content/Login.xml b/pages/content/Login.xml
index 4e21b3f..4a6471a 100644
--- a/pages/content/Login.xml
+++ b/pages/content/Login.xml
@@ -10,7 +10,7 @@
<code>
<![CDATA[
<?PHP
- Uses('user', 'links', 'message', 'util');
+ Uses('user', 'links', 'util');
if($_POST['name'] && $_POST['password'] && $_POST['page']) {
if($GLOBALS['user']->Login(Unquote($_POST['name']), Unquote($_POST['password']))) {
@@ -19,9 +19,9 @@
}
}
- $title = Message('Error');
+ $title = '{{Error}}';
- echo '<span class="error">' . Message('LoginError') . '</span>';
+ echo '<span class="error">{{Login failed. Username or password is wrong.}}</span>';
?>
]]>
</code>
diff --git a/pages/content/Modules.xml b/pages/content/Modules.xml
index 86a031b..f8f52e2 100644
--- a/pages/content/Modules.xml
+++ b/pages/content/Modules.xml
@@ -12,9 +12,9 @@
<?PHP
Uses('links');
- $title = 'Module';
+ $title = '{{Modules}}';
- echo '<h2>Module</h2>';
+ echo '<h2>{{Modules}}</h2>';
$modules = array_keys($GLOBALS['modules']->modules);
unset($modules[array_search('base', $modules)]);
diff --git a/pages/content/Pages.xml b/pages/content/Pages.xml
index e72368f..6db0710 100644
--- a/pages/content/Pages.xml
+++ b/pages/content/Pages.xml
@@ -13,9 +13,9 @@
Uses('links', 'pages');
- $title = 'Seiten';
+ $title = '{{Pages}}';
- echo '<h2>Seiten</h2>';
+ echo '<h2>{{Pages}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Handle') . '">';
@@ -29,13 +29,13 @@
echo '</select>';
echo '<br />';
- echo '<input type="submit" name="view" value="Anzeigen" /> ';
- echo '<input type="submit" name="new" value="Neu" /> ';
- echo '<input type="submit" name="edit" value="Bearbeiten" /> ';
- echo '<input type="submit" name="privs" value="Rechte ändern" /> ';
- echo '<input type="submit" name="copy" value="Kopieren" /> ';
- echo '<input type="submit" name="rename" value="Umbenennen" /> ';
- echo '<input type="submit" name="delete" value="Löschen" />';
+ echo '<input type="submit" name="view" value="{{Display}}" /> ';
+ echo '<input type="submit" name="new" value="{{New}}" /> ';
+ echo '<input type="submit" name="edit" value="{{Edit}}" /> ';
+ echo '<input type="submit" name="privs" value="{{Change access}}" /> ';
+ echo '<input type="submit" name="copy" value="{{Copy}}" /> ';
+ echo '<input type="submit" name="rename" value="{{Rename}}" /> ';
+ echo '<input type="submit" name="delete" value="{{Delete}}" />';
echo '</form>';
?>
]]>
diff --git a/pages/content/Pages:Handle.xml b/pages/content/Pages:Handle.xml
index 173eec7..9abc7d9 100644
--- a/pages/content/Pages:Handle.xml
+++ b/pages/content/Pages:Handle.xml
@@ -23,21 +23,21 @@
}
}
elseif(isset($_POST['new'])) {
- $title = 'Neue Seite';
+ $title = '{{New page}}';
?>
- <h2>Neue Seite</h2>
+ <h2>{{New page}}</h2>
<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:New'); ?>">
<input type="hidden" name="type" value="<?PHP echo $_POST['type']; ?>" />
- Name: <input type="text" id="pagename" name="name" size="70" /><br />
- Template: <select type="text" class="spaced-top" name="template" size="1" />
+ {{Name}}: <input type="text" id="pagename" name="name" size="70" /><br />
+ {{Template}}: <select type="text" class="spaced-top" name="template" size="1" />
<?PHP
foreach(array_keys($GLOBALS['templates']) as $key)
echo '<option>' . $key . '</option>';
?>
</select><br />
- <input type="submit" class="spaced-top" value="Neu" />
- <input type="submit" class="spaced-top" name="back" value="Zurück" />
+ <input type="submit" class="spaced-top" value="{{New}}" />
+ <input type="submit" class="spaced-top" name="back" value="{{Back}}" />
</form>
<?PHP
}
@@ -54,14 +54,14 @@
if($_POST['name']) {
$name = htmlspecialchars(Unquote($_POST['name']));
- $title = 'Rechte von \'' . $name . '\' ändern';
+ $title = '{{Change access to \'' . $name . '\'}}';
- echo '<h2>Rechte von \'' . $name . '\' ändern</h2>';
+ echo '<h2>{{Change access to \'' . $name . '\'}}</h2>';
$access = $GLOBALS['pages']->GetAccess(Unquote($_POST['name']), $_POST['type']);
$groups = $GLOBALS['user']->ListGroups();
- array_unshift($groups, array(0, 'Gast'));
+ array_unshift($groups, array(0, '{{Guest}}'));
echo '<form action="' . $GLOBALS['links']->GetNeonLink('Pages:Privs') . '" method="post">';
@@ -77,25 +77,25 @@
echo '<option value="0"';
if((hexdec($access[0][$group[0]/4]) & (1 << ($group[0]%4))) == 0) echo ' selected="selected"';
- echo '>Kein Zugriff</option>';
+ echo '>{{No access}}</option>';
echo '<option value="1"';
if(((hexdec($access[0][$group[0]/4]) & (1 << ($group[0]%4))) != 0)
&& ((hexdec($access[1][$group[0]/4]) & (1 << ($group[0]%4))) == 0))
echo ' selected="selected"';
- echo '>Nur lesen</option>';
+ echo '>{{Read only}}</option>';
echo '<option value="2"';
if((hexdec($access[1][$group[0]/4]) & (1 << ($group[0]%4))) != 0) echo ' selected="selected"';
- echo '>Lesen und schreiben</option>';
+ echo '>{{Read and write}}</option>';
echo '</select></td></tr>';
}
echo '</table>';
- echo '<input type="submit" class="spaced-top" value="Ändern" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '<input type="submit" class="spaced-top" value="{{Change}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
@@ -104,16 +104,16 @@
if($_POST['name']) {
$name = htmlspecialchars(Unquote($_POST['name']));
- $title = '\'' . $name . '\' kopieren';
+ $title = '{{Copy \'' . $name . '\'}}';
- echo '<h2>\'' . $name . '\' kopieren</h2>';
+ echo '<h2>{{Copy \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Copy') . '">';
echo '<input type="hidden" name="name" value="' . $name . '" />';
echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Neuer Name: <input type="text" name="newname" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Kopieren" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '{{New name}}: <input type="text" name="newname" value="' . $name . '" size="70" /><br />';
+ echo '<input type="submit" class="spaced-top" value="{{Copy}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
}
@@ -121,17 +121,16 @@
if($_POST['name']) {
$name = htmlspecialchars(Unquote($_POST['name']));
- $title = '\'' . $name . '\' umbenennen';
+ $title = '{{Rename \'' . $name . '\'}}';
- echo '<h2>\'' . $name . '\' umbenennen</h2>';
+ echo '<h2>{{Rename \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Rename') . '">';
echo '<input type="hidden" name="name" value="' . $name . '" />';
echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Neuer Name:<br />';
- echo '<input type="text" name="newname" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Umbenennen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '{{New name}}: <input type="text" name="newname" value="' . $name . '" size="70" /><br />';
+ echo '<input type="submit" class="spaced-top" value="{{Rename}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
}
@@ -139,16 +138,16 @@
if($_POST['name']) {
$name = htmlspecialchars(Unquote($_POST['name']));
- $title = '\'' . $name . '\' löschen';
+ $title = '{{Delete \'' . $name . '\'}}';
- echo '<h2>\'' . $name . '\' löschen</h2>';
+ echo '<h2>{{Delete \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Delete') . '">';
echo '<input type="hidden" name="name" value="' . $name . '" />';
echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Wollen Sie die Seite \'' . $name . '\' wirklich löschen?<br />';
- echo '<input type="submit" class="spaced-top" value="Löschen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '{{Do you really want to delete the page \'' . $name . '\'?}}<br />';
+ echo '<input type="submit" class="spaced-top" value="{{Delete}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
}
diff --git a/pages/content/Users.xml b/pages/content/Users.xml
index bd70234..9833701 100644
--- a/pages/content/Users.xml
+++ b/pages/content/Users.xml
@@ -29,11 +29,11 @@
echo '</select>';
echo '<br />';
- echo '<input type="submit" name="new" value="Neu" /> ';
- echo '<input type="submit" name="group" value="Gruppe ändern" /> ';
- echo '<input type="submit" name="password" value="Passwort ändern" /> ';
- echo '<input type="submit" name="rename" value="Umbenennen" /> ';
- echo '<input type="submit" name="delete" value="Löschen" />';
+ echo '<input type="submit" name="new" value="{{New}}" /> ';
+ echo '<input type="submit" name="group" value="{{Change group}}" /> ';
+ echo '<input type="submit" name="password" value="{{Change password}}" /> ';
+ echo '<input type="submit" name="rename" value="{{Rename}}" /> ';
+ echo '<input type="submit" name="delete" value="{{Delete}}" />';
echo '</form>';
?>
]]>
diff --git a/pages/content/Users:Handle.xml b/pages/content/Users:Handle.xml
index 27b5a3e..9e949c1 100644
--- a/pages/content/Users:Handle.xml
+++ b/pages/content/Users:Handle.xml
@@ -14,29 +14,28 @@
if(isset($_POST['new'])) {
- $title = 'Neuer Benutzer';
+ $title = '{{New user}}';
?>
- <h2>Neuer Benutzer</h2>
+ <h2>{{New user}}</h2>
<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Users:New'); ?>">
<div class="spaced-bottom">Name: <input type="text" id="username" name="name" size="70" /></div>
- Gruppe:<br />
+ {{Group}}:<br />
<select name="gid" size="15" class="grouplist spaced-bottom">
- <option value="0">Administrator</option>
<?PHP
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY name');
+ $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY id');
while($group = $res->FetchRow()) {
echo '<option value="' . $group[0] . '">' . htmlspecialchars($group[1]) . '</option>';
}
?>
</select><br />
- Passwort:<br />
+ {{Password}}:<br />
<input type="password" class="spaced-bottom" name="password" size="30" /><br />
- Bestätigen:<br />
+ {{Confirm}}:<br />
<input type="password" class="spaced-bottom" name="password2" size="30" /><br />
- <input type="submit" value="Neu" />
- <input type="submit" name="back" value="Zurück" />
+ <input type="submit" value="{{New}}" />
+ <input type="submit" name="back" value="{{Back}}" />
</form>
<?PHP
}
@@ -45,19 +44,18 @@
$name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
$gid = $GLOBALS['user']->GetGid($_POST['id']);
- $title = 'Gruppe von \'' . $name . '\' ändern';
+ $title = '{{Change group of \'' . $name . '\'}}';
- echo '<h2>Gruppe von \'' . $name . '\' ändern</h2>';
+ echo '<h2>{{Change group of \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Group') . '">';
echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neue Gruppe:<br />';
+ echo '{{New group}}:<br />';
echo '<select name="gid" size="15" class="grouplist spaced-bottom">';
- $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY name');
+ $res = $GLOBALS['db']->Execute('SELECT * FROM groups ORDER BY id');
$groups = $res->GetArray();
- array_unshift($groups, array(0, 'Administrator'));
foreach($groups as $group) {
echo '<option value="' . $group[0] . '"';
@@ -67,8 +65,8 @@
echo '</select><br />';
- echo '<input type="submit" value="Ändern" /> ';
- echo '<input type="submit" name="back" value="Zurück" />';
+ echo '<input type="submit" value="{{Change}}" /> ';
+ echo '<input type="submit" name="back" value="{{Back}}" />';
echo '</form>';
}
}
@@ -76,18 +74,18 @@
if($_POST['id']) {
$name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
- $title = 'Passwort von \'' . $name . '\' ändern';
+ $title = '{{Change password of \'' . $name . '\'}}';
- echo '<h2>Passwort von \'' . $name . '\' ändern</h2>';
+ echo '<h2>{{Change password of \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Password') . '">';
echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neues Passwort:<br />';
+ echo '{{New password}}:<br />';
echo '<input type="password" name="password" class="spaced-bottom" size="30" /><br />';
- echo 'Bestätigen:<br />';
+ echo '{{Confirm}}:<br />';
echo '<input type="password" name="password2" class="spaced-bottom" size="30" /><br />';
- echo '<input type="submit" value="Ändern" /> ';
- echo '<input type="submit" name="back" value="Zurück" />';
+ echo '<input type="submit" value="{{Change}}" /> ';
+ echo '<input type="submit" name="back" value="{{Back}}" />';
echo '</form>';
}
}
@@ -95,16 +93,16 @@
if($_POST['id']) {
$name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
- $title = '\'' . $name . '\' umbenennen';
+ $title = '{{Rename \'' . $name . '\'}}';
- echo '<h2>\'' . $name . '\' umbenennen</h2>';
+ echo '<h2>{{Rename \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Rename') . '">';
echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Neuer Name: ';
+ echo '{{New name}}: ';
echo '<input type="text" name="name" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Umbenennen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '<input type="submit" class="spaced-top" value="{{Rename}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
}
@@ -112,15 +110,15 @@
if($_POST['id']) {
$name = htmlspecialchars($GLOBALS['user']->GetName($_POST['id']));
- $title = '\'' . $name . '\' löschen';
+ $title = '{{Delete \'' . $name . '\'}}';
- echo '<h2>\'' . $name . '\' löschen</h2>';
+ echo '<h2>{{Delete \'' . $name . '\'}}</h2>';
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Delete') . '">';
echo '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
- echo 'Wollen Sie den Benutzer \'' . $name . '\' wirklich löschen?<br />';
- echo '<input type="submit" class="spaced-top" value="Löschen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
+ echo '{{Do you really want to delete the user \'' . $name . '\'?}}<br />';
+ echo '<input type="submit" class="spaced-top" value="{{Delete}}" /> ';
+ echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />';
echo '</form>';
}
}