Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv4781
Modified Files:
serendipity_admin.php serendipity_admin_category.inc.php
serendipity_admin_image_selector.php
serendipity_admin_images.inc.php
serendipity_admin_overview.inc.php
serendipity_admin_plugins.inc.php serendipity_entries.php
serendipity_functions.inc.php serendipity_lang_en.inc.php
serendipity_layout.inc.php serendipity_layout_table.inc.php
serendipity_sidebar_items.php
Log Message:
Sit down, relax, here comes a big one. Now full language support,
for future code please remember to use the lang-file together with
the CONTENT_CONSTANTS if you're generating output meant to be read
by human beings.
This was annoying!
Index: serendipity_admin.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_admin.php 31 Mar 2003 21:17:26 -0000 1.4
+++ serendipity_admin.php 5 Apr 2003 23:46:55 -0000 1.5
@@ -13,7 +13,7 @@
?>
<html>
<head>
- <title>Serendipity Administration Suite</title>
+ <title><?=SERENDIPITY_ADMIN_SUITE?></title>
<link rel="stylesheet" type="text/css" href="<?=$serendipity['serendipityHTTPPath']?>serendipity.css.php">
<?php
if (strtolower($serendipity['extCSS'])!='none') echo "<link rel='stylesheet' type='text/css' href='{$serendipity['extCSS']}'>";
@@ -38,7 +38,7 @@
&& file_exists($serendipity["serendipityPath"]."serendipity_config_local.inc.php")) {
?>
<div class='serendipity_auth_required'>
- You have to be logged on to view this page:
+ <?=HAVE_TO_BE_LOGGED_ON?>
<form action="?" method="post">
<input type="hidden" name="serendipity[action]" value="admin">
<input type="text" value="username" name="serendipity[user]" onfocus="value='';">
@@ -60,27 +60,27 @@
<td class="serendipitySideBar">
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle">Appearance:</div>
+ <div class="serendipitySideBarTitle"><?=APPEARANCE?>:</div>
<div class="serendipitySideBarContent">
- • <a href='?serendipity[adminModule]=css'>Manage css</a><br>
- • <a href='?serendipity[adminModule]=plugins'>Configure Plugins</a><br>
+ • <a href='?serendipity[adminModule]=css'><?=MANAGE_CSS?></a><br>
+ • <a href='?serendipity[adminModule]=plugins'><?=CONFIGURE_PLUGINS?></a><br>
</div>
</div>
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle">Admin:</div>
+ <div class="serendipitySideBarTitle"><?=ADMIN?></div>
<div class="serendipitySideBarContent">
- • <a href='?serendipity[adminModule]=installer'>Configuration</a><br />
- • <a href="?serendipity[adminModule]=interop">Import/Export Entries</a><br />
+ • <a href='?serendipity[adminModule]=installer'><?=CONFIGURATION?></a><br />
+ • <a href="?serendipity[adminModule]=interop"><?=IMPORT_EXPORT_ENTRIES?></a><br />
</div>
</div>
• <a href='<?=$serendipity['serendipityHTTPPath']?>entr
-ies'>Edit entries</a><br />
- • <a href='<?= $serendipity['serendipityHTTPPath'] ?>'>Back to Weblog</a><br />
- • <a href='?serendipity[adminModule]=logout'>Logout</a>
+ies'><?=EDIT_ENTRIES?></a><br />
+ • <a href='<?= $serendipity['serendipityHTTPPath'] ?>'><?=BACK_TO_BLOG?></a><br />
+ • <a href='?serendipity[adminModule]=logout'><?=LOGOUT?></a>
</td>
<td class="serendipity_admin">
- <div class="serendipity_admin_title">Serendipity Administration Suite</div>
+ <div class="serendipity_admin_title"><?=SERENDIPITY_ADMIN_SUITE?></div>
<?php
if (!$serendipity["GET"]["adminModule"]) $serendipity["GET"]["adminModule"] = $serendipity["POST"]["adminModule"];
switch($serendipity["GET"]["adminModule"]) {
@@ -107,7 +107,7 @@
case "logout":
session_destroy();
- echo "Logged out.";
+ echo LOGGEDOUT;
break;
default:
Index: serendipity_admin_category.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_category.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_admin_category.inc.php 28 Mar 2003 20:05:26 -0000 1.1.1.1
+++ serendipity_admin_category.inc.php 5 Apr 2003 23:46:55 -0000 1.2
@@ -40,22 +40,22 @@
<?php
if ($cat_to_edit == 0) {
- $desc = "Create a New Category";
- $save = "Create";
+ $desc = CREATE_NEW_CAT;
+ $save = CREATE;
} else {
- $desc = htmlentities("Edit \"$this_cat[category_name] - $this_cat[category_description]\"");
- $save = "Save";
+ $desc = htmlentities(sprintf(EDIT_THIS_CAT, $this_cat[category_name], $this_cat[category_description]));
+ $save = SAVE;
}
?>
<b><?= $desc ?></b>
<table cellpadding="5">
<tr>
-<th>Name</th>
+<th><?=NAME?></th>
<td><input type="text" name="serendipity[cat][name]" value="<?= htmlentities($this_cat['category_name']) ?>" /></td>
</tr>
<tr>
-<th>Description</th>
+<th><?=DESCRIPTION?></th>
<td><input type="text" name="serendipity[cat][description]" value="<?= htmlentities($this_cat['category_description']) ?>"/></td>
</tr>
</table>
@@ -63,7 +63,7 @@
<br />
<br />
-<b>Click on a category to edit it</b>
+<b><?=CLICK_CAT_TO_EDIT?></b>
<table>
<?php
@@ -75,7 +75,7 @@
}
}
?>
-<tr><td>• <a href="?serendipity[adminModule]=category&serendipity[cat][catid]=0">Create New Category</a></td></tr>
+<tr><td>• <a href="?serendipity[adminModule]=category&serendipity[cat][catid]=0"><?=CREATE_NEW_CAT?></a></td></tr>
</table>
</form>
Index: serendipity_admin_image_selector.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_image_selector.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_admin_image_selector.php 28 Mar 2003 20:05:26 -0000 1.1.1.1
+++ serendipity_admin_image_selector.php 5 Apr 2003 23:46:55 -0000 1.2
@@ -54,7 +54,7 @@
echo "</table>";
}?>
-<html><head><title>Select an image</title></head><body>
+<html><head><title><?=SELECT_IMAGE?></title></head><body>
<?php
switch ($serendipity["GET"]["step"]) {
@@ -71,8 +71,8 @@
echo "<input type='hidden' name='thumbName' value='".$serendipity["serendipityHTTPPath"] . $serendipity["uploadHTTPPath"].$f[0].".".$serendipity["thumbSuffix"].".".$f[1]."'>";
echo "<b>Image size:</b><br>";
- echo "<input type='radio' name='serendipity[linkThumbnail]' value='no' CHECKED>I want to put the thumbnail in my entry.<br>";
- echo "<input type='radio' name='serendipity[linkThumbnail]' value='yes'>I want to put big image in my entry.<p>";
+ echo "<input type='radio' name='serendipity[linkThumbnail]' value='no' CHECKED><?=I_WANT_THUMB?><br>";
+ echo "<input type='radio' name='serendipity[linkThumbnail]' value='yes'><?=I_WANT_BIG_IMAGE?><p>";
echo "<b>Image alignment:</b><br>";
echo "<input type='radio' name='serendipity[align]' value=''> <img src='".$serendipity["serendipityHTTPPath"]."pixel/img_align_top.png' vspace='5'><br>";
@@ -80,11 +80,11 @@
echo "<input type='radio' name='serendipity[align]' value='right'> <img src='".$serendipity["serendipityHTTPPath"]."pixel/img_align_right.png' vspace='5'><p>";
echo "<b>Image as a link:</b><br>";
- echo "<input type='radio' name='serendipity[isLink]' CHECKED> I don't want the image to be a hyperlink<br>";
- echo "<input type='radio' name='serendipity[isLink]' > I want it to link to this url: ";
+ echo "<input type='radio' name='serendipity[isLink]' CHECKED> <?=I_WANT_NO_LINK?><br>";
+ echo "<input type='radio' name='serendipity[isLink]' > <?=I_WANT_IT_TO_LINK?> ";
echo "<input type='text' name='serendipity[url]' size='30' value='".$serendipity["serendipityHTTPPath"].$serendipity["uploadPath"].$serendipity["GET"]["image"]."' onFocus='value=\"\";'><p>";
- echo "<input type='button' value='Back' onClick='history.go(-1);'> ";
- echo "<input type='button' value='Done' onClick='serendipity_imageSelector_done()'>";
+ echo "<input type='button' value='<?=BACK?>' onClick='history.go(-1);'> ";
+ echo "<input type='button' value='<?=DONE?>' onClick='serendipity_imageSelector_done()'>";
echo "</form>";
break;
@@ -94,7 +94,7 @@
if (!is_numeric($serendipity["GET"]["end"]))
$serendipity["GET"]["end"] = $serendipity["GET"]["start"]+
floor(750/($serendipity["thumbSize"]+20))*floor(580/($serendipity["thumbSize"]+20));
- echo "Click the image you want to insert:<br>";
+ echo CLICK_IMAGE_TO_INSERT."<br>";
serendipity_displayImageList($serendipity["GET"]["start"], $serendipity["GET"]["end"]);
}
?>
Index: serendipity_admin_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_images.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_admin_images.inc.php 28 Mar 2003 20:05:24 -0000 1.1.1.1
+++ serendipity_admin_images.inc.php 5 Apr 2003 23:46:55 -0000 1.2
@@ -106,17 +106,17 @@
}
else {
if (!file_exists($serendipity["serendipityPath"].$serendipity["uploadPath"].$serendipity["GET"]["oldname"]))
- echo "Error: Old filename doesn't exist!";
+ echo ERROR_FILE_NOT_EXISTS;
elseif (file_exists($serendipity["serendipityPath"].$serendipity["uploadPath"].$serendipity["GET"]["newname"]))
- echo "Error: New filename already used, pick another!";
+ echo ERROR_FILE_EXISTS;
else
- echo "Error: Something's wrong.";
- echo "<br><input type='button' onClick='history.go(-1);' value='Go back.'>";
+ echo ERROR_SOMETHING;
+ echo "<br><input type='button' onClick='history.go(-1);' value='".BACK."'>";
}
break;
case "add":
- echo "<b>Adding image...</b><p>";
+ echo "<b>".ADDING_IMAGE."</b><p>";
// First find out whether to fetch a file or accept an upload
if ($serendipity["POST"]["url"] != "http://") {
if (file_exists($serendipity["serendipityPath"].$serendipity["uploadPath"].
@@ -132,13 +132,13 @@
// Create thumbnail
serendipity_makeThumbnail(basename($serendipity["POST"]["url"]));
- echo "Thumbnail created.<br>Done.";
+ echo THUMB_CREATED_DONE;
}
}
else {
if (file_exists($serendipity["serendipityPath"].$serendipity["uploadPath"].
$_FILES['userfile']['name'])) {
- echo "Error: File already exists on your machine!";
+ echo ERROR_FILE_EXISTS_ALREADY;
}
else {
// Accept file
@@ -148,10 +148,10 @@
// Create thumbnail
serendipity_makeThumbnail($_FILES['userfile']['name']);
- echo "Thumbnail created.<br>Done.";
+ echo THUMB_CREATED_DONE;
}
else {
- echo "Unknown error occured, file not uploaded...";
+ echo ERROR_UNKNOWN_NOUPLOAD;
}
}
}
@@ -162,12 +162,8 @@
case "addSelect":
?>
- <b>Add an image to your repository:</b><p>
- Here you can upload images, or tell me to fetch them from somewhere in the web!
- If you don't have appropriate images, search for images on google matching your thoughts.
- Try <a href="http://images.google.com" target="_blank">Google's image search</a>, the results
- are often useful and always funny :)<p>
- <b>Select method:</b><br>
+ <?=ADD_IMAGE_BLAHBLAH?>
+
<table>
<form action="?" method="POST" enctype="multipart/form-data" >
<input type="hidden" name="MAX_FILE_SIZE" value="3000000">
@@ -175,16 +171,16 @@
<input type="hidden" name="serendipity[adminModule]" value="images">
<input type="hidden" name="serendipity[adminAction]" value="add">
<tr>
- <td nowrap='nowrap'>Enter an URL of an image to fetch:</td>
+ <td nowrap='nowrap'><?=ENTER_IMAGE_URL?></td>
<td><input type="text" name="serendipity[url]" value="http://" size="40"></td>
</tr>
<tr><td align="center" colspan="2"><b>Or</b></td></tr>
<tr>
- <td nowrap='nowrap'>Select an image you wish to upload:</td>
+ <td nowrap='nowrap'><?=SELECT_IMAGE_TO_UP?></td>
<td><input name="userfile" type="file"></td>
</tr>
<tr>
- <td align="right" colspan="2"><input type="submit" value="Go!"></td>
+ <td align="right" colspan="2"><input type="submit" value="<?=GO?>"></td>
</tr>
</form>
</table>
@@ -225,12 +221,11 @@
//-->
</script>
<?php
- echo "<b>Resize ".$serendipity["GET"]["fname"].":</b><p>";
- echo "Original size: <i>".$s[0]."x".$s[1]."</i> pixel";
- echo "<p>Here you can adjust the images new size. If you want to keep the proportions, just enter";
- echo " one value and press the TAB key, I'll automatically calculate the new size so the proportions";
- echo " don't get messed up:";
- echo "<form name='serendipityScaleForm' action='?' method='GET'>New size: ";
+ echo sprintf(RESIZE_BLAHBLAH, $serendipity["GET"]["fname"]);
+ echo sprintf(ORIGINAL_SIZE, $s[0],$s[1]);
+ echo HERE_YOU_CAN_ENTER_BLAHBLAH;
+
+ echo "<form name='serendipityScaleForm' action='?' method='GET'>".NEWSIZE." ";
echo "<input type='hidden' name='serendipity[adminModule]' value='images'>";
echo "<input type='hidden' name='serendipity[adminAction]' value='scale'>";
echo "<input type='hidden' name='serendipity[fname]' value='".$serendipity["GET"]["fname"]."'>";
Index: serendipity_admin_overview.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_overview.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_admin_overview.inc.php 30 Mar 2003 15:50:05 -0000 1.2
+++ serendipity_admin_overview.inc.php 5 Apr 2003 23:46:55 -0000 1.3
@@ -12,4 +12,4 @@
if (IN_serendipity !== true) die ("Don't hack!");
session_start();
?>
-Welcome back, <?= $_SESSION['serendipityUser'] ?>.
+<?=WELCOME_BACK?> <?= $_SESSION['serendipityUser'] ?>.
Index: serendipity_admin_plugins.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_plugins.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_admin_plugins.inc.php 28 Mar 2003 20:05:24 -0000 1.1.1.1
+++ serendipity_admin_plugins.inc.php 5 Apr 2003 23:46:55 -0000 1.2
@@ -134,7 +134,7 @@
<form action="?serendipity[adminModule]=plugins" method="post">
<select name="serendipity[plugin_to_add]">
-<option value="0">[ Select a plugin to add ]</option>
+<option value="0">[ <?=SELECT_A_PLUGIN_TO_ADD?> ]</option>
<?php
foreach ($classes as $class_name) {
$plugin =& serendipity_plugin_api::load_plugin($class_name);
@@ -153,7 +153,7 @@
?>
</select>
-<input name="NEW" value="Add plugin" type="submit" />
+<input name="NEW" value="<?=ADD_PLUGIN?>" type="submit" />
<br />
<br />
@@ -161,10 +161,10 @@
<table border="1" cellpadding="5">
<tr>
<th> </th>
-<th>Title</th>
-<th>Plugin</th>
-<th>Description</th>
-<th>Placement</th>
+<th><?=TITLE?></th>
+<th><?=PLUGIN?></th>
+<th><?=DESCRIPTION?></th>
+<th><?=PLACEMENT?></th>
</tr>
<?php
@@ -228,12 +228,12 @@
if ($sort_idx == 0)
$moveup = " ";
else
- $moveup = "<a href=\"?serendipity[adminModule]=plugins&submit=move+up&serendipity[plugin_to_move]=$key\">UP</a>";
+ $moveup = "<a href=\"?serendipity[adminModule]=plugins&submit=move+up&serendipity[plugin_to_move]=$key\"><?=UP?></a>";
if ($sort_idx == (count($plugins)-1))
$movedown = "";
else
- $movedown = "<a href=\"?serendipity[adminModule]=plugins&submit=move+down&serendipity[plugin_to_move]=$key\">DOWN</a>";
+ $movedown = "<a href=\"?serendipity[adminModule]=plugins&submit=move+down&serendipity[plugin_to_move]=$key\"><?=DOWN?></a>";
echo "<tr><td><input type=\"checkbox\" name=\"serendipity[plugin_to_remove][]\" value=\"$plugin_data[name]\"></td><td>$title</td><td>$name</td><td>$desc</td><td>$place $moveup $movedown</td></tr>\n";
@@ -245,8 +245,8 @@
</table>
<br />
-<input type="submit" name="REMOVE" title="Remove Ticked Plugins" value="Delete">
-<input type="submit" name="SAVE" title="Save changes to layout" value="Save">
+<input type="submit" name="REMOVE" title="Remove Ticked Plugins" value="<?=DELETE?>">
+<input type="submit" name="SAVE" title="Save changes to layout" value="<?=SAVE?>">
</form>
<?php
}
Index: serendipity_entries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_entries.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- serendipity_entries.php 31 Mar 2003 21:17:27 -0000 1.3
+++ serendipity_entries.php 5 Apr 2003 23:46:55 -0000 1.4
@@ -38,7 +38,7 @@
&& file_exists($serendipity["serendipityPath"]."serendipity_config_local.inc.php")) {
?>
<div class='serendipity_auth_required'>
- You have to be logged on to view this page:
+ <?=HAVE_TO_BE_LOGGED_ON?>
<form action="?" method="post">
<input type="hidden" name="serendipity[action]" value="admin">
<input type="text" value="username" name="serendipity[user]" onfocus="value='';">
@@ -56,35 +56,35 @@
<td class="serendipitySideBar">
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle">Entries:</div>
+ <div class="serendipitySideBarTitle"><?=ENTRIES?></div>
<div class="serendipitySideBarContent">
- • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=new'>New entry</a><br>
- • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect'>Edit entries</a><br>
- • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=deleteSelect'>Delete entries</a><br>
+ • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=new'><?=NEW_ENTRY?></a><br>
+ • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect'><?=EDIT_ENTRIES?></a><br>
+ • <a href='?serendipity[adminModule]=entries&serendipity[adminAction]=deleteSelect'><?=DELETE_ENTRIES?></a><br>
</div>
</div>
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle">Categories:</div>
+ <div class="serendipitySideBarTitle"><?=CATEGORIES?></div>
<div class="serendipitySideBarContent">
- • <a href='?serendipity[adminModule]=category&serendipity[adminAction]=editSelect'>Edit Categories</a><br>
+ • <a href='?serendipity[adminModule]=category&serendipity[adminAction]=editSelect'><?=EDIT_CATEGORIES?></a><br>
</div>
</div>
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle">Images:</div>
+ <div class="serendipitySideBarTitle"><?=IMAGES?></div>
<div class="serendipitySideBarContent">
- • <a href='?serendipity[adminModule]=images&serendipity[adminAction]=addSelect'>Add images</a><br>
- • <a href='?serendipity[adminModule]=images'>Manage images</a><br>
- • <a href='?serendipity[adminModule]=images&serendipity[adminAction]=genThumbs' onClick="return confirm('WARNING:\nThis may take a long time if there are many images without thumbnails.');">Create Thumbs</a><br>
+ • <a href='?serendipity[adminModule]=images&serendipity[adminAction]=addSelect'><?=ADD_IMAGES?></a><br>
+ • <a href='?serendipity[adminModule]=images'><?=MANAGE_IMAGES?></a><br>
+ • <a href='?serendipity[adminModule]=images&serendipity[adminAction]=genThumbs' onClick="return confirm('<?=WARNING_THIS_BLAHBLAH?>');"><?=CREATE_THUMBS?></a><br>
</div>
</div>
- • <a href="<?=$serendipity['serendipityHTTPPath']?>serendipity_admin.php">Admin interface</a><br />
- • <a href="<?=$serendipity['serendipityHTTPPath']?>">Back to Weblog</a><br />
- • <a href="?serendipity[adminModule]=logout">Logout</a>
+ • <a href="<?=$serendipity['serendipityHTTPPath']?>serendipity_admin.php"><?=ADMIN_INTERFACE?></a><br />
+ • <a href="<?=$serendipity['serendipityHTTPPath']?>"><?=BACK_TO_BLOG?></a><br />
+ • <a href="?serendipity[adminModule]=logout"><?=LOGOUT?></a>
</td>
<td class="serendipity_admin">
- <div class="serendipity_admin_title">Serendipity Authoring Suite</div>
+ <div class="serendipity_admin_title"><?=SERENDIPITY_AUTHORING_SUITE?></div>
<?php
if (!$serendipity["GET"]["adminModule"]) $serendipity["GET"]["adminModule"] = $serendipity["POST"]["adminModule"];
switch($serendipity["GET"]["adminModule"]) {
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- serendipity_functions.inc.php 5 Apr 2003 14:08:42 -0000 1.27
+++ serendipity_functions.inc.php 5 Apr 2003 23:46:55 -0000 1.28
@@ -11,25 +11,25 @@
<input type="hidden" name="serendipity[entry_id]" value="<?=$id?>" />
<table border="0" width="100%" cellpadding="3">
<tr>
-<td class="serendipity_commentsLabel">Name</td>
+<td class="serendipity_commentsLabel"><?=NAME?></td>
<td class="serendipity_commentsValue"><input type="text" name="serendipity[name]" value="" size="30" /></td>
</tr>
<tr>
-<td class="serendipity_commentsLabel">Email</td>
+<td class="serendipity_commentsLabel"><?=EMAIL?></td>
<td class="serendipity_commentsValue"><input type="text" name="serendipity[email]" value="" /></td>
</tr>
<tr>
-<td class="serendipity_commentsLabel">Homepage</td>
+<td class="serendipity_commentsLabel"><?=HOMEPAGE?></td>
<td class="serendipity_commentsValue"><input type="text" name="serendipity[url]" value="" /></td>
</tr>
<tr>
-<td class="serendipity_commentsLabel">Comment</td>
+<td class="serendipity_commentsLabel"><?=COMMENT?></td>
<td class="serendipity_commentsValue"><textarea rows="10" cols="40" name="serendipity[comment]"></textarea></td>
</tr>
</table>
-Remember Information?
+<?=REMEMBER_INFO?>
<input type="checkbox" name="serendipity_remember" /><br />
-<input type="submit" value="Submit Comment" />
+<input type="submit" value="<?=SUBMIT_COMMENTS?>" />
</form>
<script type="text/javascript" language="javascript">
<!--
@@ -259,13 +259,13 @@
$bydate = array();
if (!is_array($entries)) {
- echo "<br />No entries to print.";
+ echo "<br />".NO_ENTRIES_TO_PRINT;
return;
}
$lastDate = "";
for ($x = 0, $num_entries = count($entries); $x < $num_entries; $x++) {
- $d = date("l, F jS Y", $entries[$x]["timestamp"]);
+ $d = date(DATE_FORMAT_1, $entries[$x]["timestamp"]);
$bydate[$d][] = $entries[$x];
}
@@ -296,7 +296,7 @@
. $serendipity['serendipityHTTPPath']
. "archives/e_"
. $entry['id']
- . ".html\">Posted by "
+ . ".html\">".POSTED_BY." "
. htmlentities($entry['username'])
. ($entry['category_name']?(" in ${entry['category_name']}"):"")
." at "
@@ -304,7 +304,7 @@
. "</a>";
if (!isset($serendipity['GET']['id'])) {
- $label = $entry['comments'] == 1 ? "Comment" : "Comments";
+ $label = $entry['comments'] == 1 ? COMMENT : COMMENTS;
echo " | <a href=\"{$serendipity['serendipityHTTPPath']}comment.php?serendipity[entry_id]={$entry['id']}\" "
. "onClick=\"window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;\">"
. $entry['comments'] . " $label</a>";
@@ -329,10 +329,10 @@
if (isset($serendipity['GET']['id'])) {
echo '<link rel="pingback" href="' . $serendipity['baseURL'] . "comment.php?type=pingback&entry_id={$entry['id']}\" />\n";
echo "\n<br />\n";
- echo '<div class="serendipity_commentsTitle">Comments</div>';
+ echo '<div class="serendipity_commentsTitle">".COMMENTS."</div>';
serendipity_printComments(serendipity_fetchComments($entry['id']));
echo "<br />\n\n";
- echo '<div class="serendipity_commentsTitle">Add Comment</div>';
+ echo '<div class="serendipity_commentsTitle">".ADD_COMMENT."</div>';
serendipity_displayCommentForm($entry['id']);
}
@@ -366,20 +366,20 @@
print '<table width="100%" border="0">';
if (!count($comments)) {
- print "<tr><td><i>No comments.</i></td></tr>";
+ print "<tr><td><i>".NO_COMMENTS."</i></td></tr>";
}
foreach ($comments as $comment) {
$link = empty($comment['url']) ? $comment['email'] : $comment['url'];
$name = empty($comment['author']) ? 'Anonymous' : $comment['author'];
- $type = $comment['type'] == 'trackback' ? 'Trackback from' : 'Posted by';
+ $type = $comment['type'] == 'trackback' ? TRACKBACK_FROM : POSTED_BY;
?>
<tr>
<td class="serendipity_comment">
<a name="c<?=$comment['id']?>"></a>
<?=nl2br(serendipity_markup_text(serendipity_emoticate($comment['body'])))?><br />
<div class="serendipity_comment_source">
- <?=$type?> <?=($link ? "<a href=\"$link\">$name</a>" : $name)?> on
+ <?=$type?> <?=($link ? "<a href=\"$link\">$name</a>" : $name)?> <?=ON?>
<a href="<?=$PHP_SELF?>#comment<?=$comment['id']?>"><?=date("M d, h:i", $comment['timestamp'])?></a>
</div>
</td>
@@ -421,15 +421,15 @@
function serendipity_sendComment($to, $fromName, $fromEmail, $fromUrl, $id, $title, $comment) {
global $serendipity;
- $text = "
-A new comment has been posted on your blog $serendipity[blogTitle], on entry #$id.
+ $text =
+sprintf(A_NEW_COMMENT_BLAHBLAH, $serendipity[blogTitle],$id)."
IP Address: $_SERVER[REMOTE_ADDR]
-Name: $fromName
-Email Address: $fromEmail
+".NAME.": $fromName
+".EMAIL.": $fromEmail
URL: $fromUrl
-Comments:
+".COMMENTS.":
$comment
@@ -1153,7 +1153,7 @@
$cats = serendipity_fetchCategories();
- $cat_list = "<select name=\"serendipity[categoryid]\"><option value=\"0\">[No Category]</option>\n";
+ $cat_list = "<select name=\"serendipity[categoryid]\"><option value=\"0\">[".NO_CATEGORY."]</option>\n";
if (is_array($cats)) {
foreach ($cats as $cat_data) {
$selected = $cat_data['categoryid'] == $entry['categoryid'] ? " selected" : "";
@@ -1184,10 +1184,10 @@
<td align="left">
<input type="text" name="serendipity[title]" value="<?=$entry["title"]?>" size=30>
</td>
- <td>Category: <?= $cat_list ?></td>
+ <td><?=Category?> <?= $cat_list ?></td>
</tr>
<tr>
- <td colspan="2">Entry Body</td>
+ <td colspan="2"><?=ENTRY_BODY?></td>
</tr>
<tr>
<td colspan="2">
@@ -1195,7 +1195,7 @@
</td>
</tr>
<tr>
- <td colspan="2">Extended Body</td>
+ <td colspan="2"><?=EXTENDED_BODY?></td>
</tr>
<tr>
<td colspan="2">
@@ -1232,17 +1232,17 @@
<input type="text" name="serendipity[title]" value="<?=htmlentities($entry["title"])?>" size=30>
</td>
<td nowrap="nowrap" align="right">
- Category: <?= $cat_list ?>
+ <?=CATEGORY?> <?= $cat_list ?>
<input type="button" value=" B " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'b')">
<input type="button" value=" U " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'u')">
<input type="button" value=" I " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'i')">
<input type="button" value="<img>" onClick="serendipity_insImage(document.forms['serendipityEntry']['serendipity[body]'])">
- <input type="button" value="Image" onClick="window.open('serendipity_admin_image_selector.php', 'ImageSel', 'width=800,height=600,toolbar=no');">
+ <input type="button" value="<?=IMAGE?>" onClick="window.open('serendipity_admin_image_selector.php', 'ImageSel', 'width=800,height=600,toolbar=no');">
<input type="button" value="Link" onClick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[body]'])">
</td>
</tr>
<tr>
- <td colspan="2">Entry Body</td>
+ <td colspan="2"><?=ENTRY_BODY?></td>
</tr>
<tr>
<td colspan="2">
@@ -1250,7 +1250,7 @@
</td>
</tr>
<tr>
- <td colspan="2">Extended Body</td>
+ <td colspan="2"><?=EXTENDED_BODY?></td>
</tr>
<tr>
<td colspan="2">
@@ -1259,7 +1259,7 @@
</tr>
<tr>
<td colspan="2" align="right">
- <input type="submit" value="save">
+ <input type="submit" value="<?=SAVE?>">
</td>
</tr>
</form>
@@ -1314,7 +1314,7 @@
echo "<input type='hidden' name='serendipity[cssid]' value='{$css[cssid]}'>\n";
?>
<tr>
- <td align="left">template name</td>
+ <td align="left"><?=TEMPLATE_NAME?></td>
</tr>
<tr>
<td align="left">
@@ -1331,14 +1331,14 @@
</tr>
<tr>
<td colspan="2" align="right">
- <input type="submit" value="save">
+ <input type="submit" value="<?=SAVE?>">
</td>
</tr>
<?php
} else { /* admin */
?>
<tr>
- <td>Choose a style sheet....</td>
+ <td><?=CHOOSE_STYLESHEET?></td>
</tr>
<tr>
<td align="left">
@@ -1347,14 +1347,14 @@
</tr>
<tr>
<td>
- <input type="submit" name="EDIT" value="Edit">
- <input type="submit" name="DELETE" value="Delete">
- <input type="submit" name="DEFAULT" value="Make default">
+ <input type="submit" name="EDIT" value="<?=EDIT?>">
+ <input type="submit" name="DELETE" value="<?=DELETE?>">
+ <input type="submit" name="DEFAULT" value="<?=MAKE_DEFAULT?>">
</td>
</tr>
<tr>
<td>
- <input type="submit" name="NEW" value="Create New StyleSheet">
+ <input type="submit" name="NEW" value="<?=CREATE_NEW_STYLESHEET?>">
</td>
</tr>
Index: serendipity_lang_en.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_lang_en.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_lang_en.inc.php 28 Mar 2003 20:05:26 -0000 1.1.1.1
+++ serendipity_lang_en.inc.php 5 Apr 2003 23:46:56 -0000 1.2
@@ -16,6 +16,124 @@
$serendipity["weekDayAbb"] = array("M", "Tu", "W", "Th", "F", "Sa", "Su");
+
+define("SERENDIPITY_ADMIN_SUITE", "Serendipity Administration Suite");
+define("HAVE_TO_BE_LOGGED_ON", "You have to be logged on to view this page:");
+define("APPEARANCE", "Appearance");
+define("MANAGE_CSS", "Manage css");
+define("CONFIGURE_PLUGINS", "Configure Plugins");
+define("ADMIN", "Admin:");
+define("CONFIGURATION", "Configuration");
+define("IMPORT_EXPORT_ENTRIES", "Import/Export Entries");
+define("BACK_TO_BLOG", "Back to Weblog");
+define("LOGOUT", "Logout");
+define("LOGGEDOUT", "Logged out.");
+define("CREATE_NEW_CAT", "Create a New Category");
+define("CREATE", "Create");
+define("EDIT_THIS_CAT", "Edit \"%s - %s\"");
+define("SAVE", "Save");
+define("NAME", "Name");
+define("DESCRIPTION", "Description");
+define("CLICK_CAT_TO_EDIT", "Click on a category to edit it");
+define("CREATE_NEW_CAT", "Create New Category");
+define("SELECT_IMAGE", "Select an image");
+define("I_WANT_THUMB", "I want to put the thumbnail in my entry.");
+define("I_WANT_BIG_IMAGE", "I want to put big image in my entry.");
+define("I_WANT_NO_LINK", " I don't want the image to be a hyperlink");
+define("I_WANT_IT_TO_LINK", "I want it to link to this url:");
+define("BACK", "Back");
+define("DONE", "Done");
+define("CLICK_IMAGE_TO_INSERT", "Click the image you want to insert:");
+define("WELCOME_BACK", "Welcome back,");
+define("ADD_PLUGIN", "Add plugin");
+define("TITLE", "Title");
+define("PLUGIN", "Plugin");
+define("DESCRIPTION", "Description");
+define("PLACEMENT", "Placement");
+define("DELETE", "Delete");
+define("SAVE", "Save");
+define("SELECT_A_PLUGIN_TO_ADD", "Select a plugin to add");
+define("UP", "UP");
+define("DOWN", "DOWN");
+define("ENTRIES", "Entries:");
+define("NEW_ENTRY", "New entry");
+define("EDIT_ENTRIES", "Edit entries");
+define("DELETE_ENTRIES", "Delete entries");
+define("CATEGORIES", "Categories:");
+define("EDIT_CATEGORIES", "Edit Categories");
+define("IMAGES", "Images:");
+define("ADD_IMAGES", "Add images");
+define("WARNING_THIS_BLAHBLAH", "WARNING:\\nThis may take a long time if there are many images without thumbnails.");
+define("CREATE_THUMBS", "Rebuild Thumbs");
+define("MANAGE_IMAGES", "Manage images");
+define("ADMIN_INTERFACE", "Admin interface");
+define("SERENDIPITY_AUTHORING_SUITE", "Serendipity Authoring Suite");
+define("NAME", "Name");
+define("EMAIL", "Email");
+define("HOMEPAGE", "Homepage");
+define("COMMENT", "Comment");
+define("REMEMBER_INFO", "Remember Information? ");
+define("SUBMIT_COMMENT", "Submit Comment");
+define("NO_ENTRIES_TO_PRINT", "No entries to print.");
+define("COMMENTS", "Comments");
+define("ADD_COMMENT", "Add Comment");
+define("NO_COMMENTS", "No comments.");
+define("POSTED_BY", "Posted by");
+define("TRACKBACK_FROM", "Trackback from");
+define("ON", "on");
+define("A_NEW_COMMENT_BLAHBLAH", "A new comment has been posted on your blog %s, on entry #%s.");
+define("NO_CATEGORY", "No Category");
+define("ENTRY_BODY", "Entry Body");
+define("EXTENDED_BODY", "Extended Body");
+define("CATEGORY", "Category:");
+define("TEMPLATE_NAME", "template name");
+define("CHOOSE_STYLESHEET", "Choose a style sheet....");
+define("EDIT", "Edit");
+define("MAKE_DEFAULT", "Make default");
+define("CREATE_NEW_STYLESHEET", "Create New StyleSheet");
+define("NO_ENTRIES_BLAHBLAH", "No Entries Found for Query %s\n");
+define("YOUR_SEARCH_RETURNED_BLAHBLAH", "Your search for %s returned %s results:");
+define("IMAGE", "Image");
+define("ERROR_FILE_NOT_EXISTS", "Error: Old filename doesn't exist!");
+define("ERROR_FILE_EXISTS", "Error: New filename already used, pick another!");
+define("ERROR_SOMETHING", "Error: Something's wrong.");
+define("ADDING_IMAGE", "Adding image...");
+define("THUMB_CREATED_DONE", "Thumbnail created.<br>Done.");
+define("ERROR_FILE_EXISTS_ALREADY", "Error: File already exists on your machine!");
+define("ERROR_UNKNOWNE_NOUPLOAD", "Unknown error occured, file not uploaded...");
+define("ADD_IMAGE_BLAHBLAH", '<b>Add an image to your repository:</b><p>Here you can upload images, or tell me to fetch them from somewhere in the web! If you don\'t have appropriate images, search for images on google matching your thoughts. Try <a href="http://images.google.com" target="_blank">Google\'s image search</a>, the results are often useful and always funny :)<p><b>Select method:</b><br>');
+define("ENTER_IMAGE_URL", "Enter an URL of an image to fetch:");
+define("ENTER_IMAGE_TO_UP", "Select an image you wish to upload:");
+define("GO", "Go!");
+define("NEWSIZE", "New size: ");
+define("RESIZE_BLAHBLAH", "<b>Resize %s</b><p>");
+define("ORIGINAL_SIZE", "Original size: <i>%sx%s</i> pixel");
+define("HERE_YOU_CAN_ENTER_BLAHBLAH", "<p>Here you can adjust the images new size. If you want to keep the proportions, just enter one value and press the TAB key, I'll automatically calculate the new size so the proportions one value and press the TAB key, I'll automatically calculate the new size so the proportions don't get messed up:");
+define("DATE_FORMAT_1", "l, F jS Y");
+define("CALENDAR", "Calendar");
+define("QUICKJUMP_CALENDAR", 'QuickJump Calendar');
+define("QUICKSEARCH", 'Quicksearch');
+define("SEARCH_FOR_ENTRY", 'Search for an entry');
+define("ARCHIVES", 'Archives');
+define("BROWSE_ARCHIVES", 'Browse archives by month');
+define("TOP_REFERRER", 'Top Referrers');
+define("SHOWS_TOP_SITES", 'Shows top sites that linked to your blogs');
+define("TOP_EXITS", 'Top Exits');
+define("SHOWS_TOP_EXIT", 'Shows top exit links from your blogs');
+define("SYNDICATION", 'Syndication');
+define("SHOWS_RSS_BLAHBLAH", 'Shows RSS syndication links');
+define("SUPERUSER", 'Superuser');
+define("ALLOWS_YOU_BLAHBLAH", 'Allows you to configure and publish your blog');
+define("PLUG", 'Plug');
+define("ADVERTISES_BLAHBLAH", 'Advertises the origins of your blog');
+define("HTML_NUGGET", 'HTML Nugget');
+define("HOLDS_A_BLAHBLAH", 'Holds a nugget of HTML in your sidebar');
+define("TITLE_FOR_NUGGET", 'Title for the nugget');
+define("THE_NUGGET", 'The Nugget of HTML!');
+define("SYNDICATE_THIS_BLOG", "Syndicate This Blog");
+define("QUICKJUMP", "Quickjump");
+
+
define("serendipity_LANG_LOADED", true);
Index: serendipity_layout.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_layout.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_layout.inc.php 29 Mar 2003 16:51:30 -0000 1.2
+++ serendipity_layout.inc.php 5 Apr 2003 23:46:56 -0000 1.3
@@ -60,11 +60,10 @@
case "search":
$r = serendipity_searchEntries($serendipity["GET"]["searchTerm"]);
if ($r === true) {
- echo "No Entries Found for Query {$serendipity['GET']['searchTerm']}\n";
+ echo sprintf(NO_ENTRIES_BLAHBLAH, $serendipity['GET']['searchTerm'];
break;
}
- echo "Your search for ".$serendipity["GET"]["searchTerm"]." returned ".
- count($r)." results: ";
+ echo sprintf(YOUR_SEARCH_RETURNED_BLAHBLAH, $serendipity["GET"]["searchTerm"], count($r));
serendipity_printEntries($r);
break;
Index: serendipity_layout_table.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_layout_table.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_layout_table.inc.php 4 Apr 2003 16:32:37 -0000 1.4
+++ serendipity_layout_table.inc.php 5 Apr 2003 23:46:56 -0000 1.5
@@ -50,11 +50,10 @@
case "search":
$r = serendipity_searchEntries($serendipity["GET"]["searchTerm"]);
if ($r === true) {
- echo "No Entries Found for Query {$serendipity['GET']['searchTerm']}\n";
+ echo sprintf(NO_ENTRIES_BLAHBLAH, $serendipity['GET']['searchTerm']);
break;
}
- echo "Your search for ".$serendipity["GET"]["searchTerm"]." returned ".
- count($r)." results: ";
+ echo sprintf(YOUR_SEARCH_RETURNED_BLAHBLAH, $serendipity["GET"]["searchTerm"], count($r));
serendipity_printEntries($r);
break;
Index: serendipity_sidebar_items.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_sidebar_items.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- serendipity_sidebar_items.php 1 Apr 2003 09:37:26 -0000 1.3
+++ serendipity_sidebar_items.php 5 Apr 2003 23:46:56 -0000 1.4
@@ -1,18 +1,18 @@
<?php
class serendipity_calendar_plugin extends serendipity_plugin {
-
+
function introspect(&$propbag)
{
- $propbag->add('name', 'Calendar');
- $propbag->add('description', 'QuickJump Calendar');
+ $propbag->add('name', CALENDAR);
+ $propbag->add('description', QUICKJUMP_CALENDAR);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Quickjump:";
+ $title = QUICKJUMP;
if (!$serendipity["GET"]["calendarZoom"]) {
if (!$serendipity["GET"]["range"]) {
$serendipity["GET"]["calendarZoom"] = date("Y").date("m");
@@ -30,15 +30,15 @@
class serendipity_quicksearch_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Quicksearch');
- $propbag->add('description', 'Search for an entry');
+ $propbag->add('name', QUICKSEARCH);
+ $propbag->add('description', SEARCH_FOR_ENTRY);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Quicksearch:";
+ $title = QUICKSEARCH;
echo "<form action=\"$serendipity[serendipityHTTPPath]search.php\" METHOD=\"GET\">\n"
. "<input type=\"hidden\" name=\"serendipity[action]\" value=\"search\">\n"
@@ -50,15 +50,15 @@
class serendipity_archives_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Archives');
- $propbag->add('description', 'Browse archives by month');
+ $propbag->add('name', ARCHIVES);
+ $propbag->add('description', BROWSE_ARCHIVES);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Archives:";
+ $title = ARCHIVES;
$ts = mktime(0,0,0,(date("m")+1), 1, date("Y"));
for($x=0; $x<3; $x++) {
$ts-=1;
@@ -77,15 +77,15 @@
class serendipity_topreferrers_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Top Referrers');
- $propbag->add('description', 'Shows top sites that linked to your blogs');
+ $propbag->add('name', TOP_REFERRER);
+ $propbag->add('description', SHOWS_TOP_SITES);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Top Referrers";
+ $title = TOP_REFERRER;
echo serendipity_displayTopReferrers();
}
}
@@ -93,15 +93,15 @@
class serendipity_topexits_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Top Exits');
- $propbag->add('description', 'Shows top exit links from your blogs');
+ $propbag->add('name', TOP_EXITS);
+ $propbag->add('description', SHOWS_TOP_EXIT);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Top Exits";
+ $title = TOP_EXITS;
echo serendipity_displayTopExits();
}
}
@@ -109,21 +109,21 @@
class serendipity_syndication_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Syndication');
- $propbag->add('description', 'Shows RSS syndication links');
+ $propbag->add('name', SYNDICATION);
+ $propbag->add('description', SHOWS_RSS_BLAHBLAH);
}
function generate_content(&$title)
{
global $serendipity;
- $title = "Syndicate This Blog";
+ $title = SYNDICATE_THIS_BLOG;
?>
- <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php'><img src="<?= $serendipity['serendipityHTTPPath'] ?>xml.gif" border=0></a>
- <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php'>RSS 0.91 feed</a>
+ <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php'><img src="<?= $serendipity['serendipityHTTPPath'] ?>xml.gif" border=0></a>
+ <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php'>RSS 0.91 feed</a>
<br/>
- <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php?version=2.0'><img src="<?= $serendipity['serendipityHTTPPath'] ?>xml.gif" border=0></a>
- <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php?version=2.0'>RSS 2.0 feed</a>
+ <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php?version=2.0'><img src="<?= $serendipity['serendipityHTTPPath'] ?>xml.gif" border=0></a>
+ <a href='<?= $serendipity['serendipityHTTPPath'] ?>rss.php?version=2.0'>RSS 2.0 feed</a>
<?php
}
}
@@ -131,8 +131,8 @@
class serendipity_superuser_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Superuser');
- $propbag->add('description', 'Allows you to configure and publish your blog');
+ $propbag->add('name', SUPERUSER);
+ $propbag->add('description', ALLOWS_YOU_BLAHBLAH);
}
function generate_content(&$title)
@@ -147,8 +147,8 @@
class serendipity_plug_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'Plug');
- $propbag->add('description', 'Advertises the origins of your blog');
+ $propbag->add('name', PLUG);
+ $propbag->add('description', ADVERTISES_BLAHBLAH);
}
function generate_content(&$title)
@@ -156,34 +156,34 @@
global $serendipity;
$title = "";
- echo "<div class=\"serendipityPlug\">This blog is powered by <a href=\"http://php-blog.sf.net/\">serendipity</a>!</div>";
+ echo "<div class=\"serendipityPlug\">Blog software: <a href=\"http://php-blog.sf.net/\">serendipity</a>!</div>";
}
}
class serendipity_html_nugget_plugin extends serendipity_plugin {
function introspect(&$propbag)
{
- $propbag->add('name', 'HTML Nugget');
- $propbag->add('description', 'Holds a nugget of HTML in your sidebar');
+ $propbag->add('name', HTML_NUGGET);
+ $propbag->add('description', HOLDS_A_BLAHBLAH);
$propbag->add('configuration', array(
'title',
'content',
));
}
-
+
function introspect_config_item($name, &$propbag)
{
switch($name) {
case 'title':
$propbag->add('type', 'string');
$propbag->add('name', 'Title');
- $propbag->add('description', 'Title for the nugget');
+ $propbag->add('description', TITLE_FOR_NUGGET);
break;
-
+
case 'content':
$propbag->add('type', 'html');
$propbag->add('name', 'Content');
- $propbag->add('description', 'The Nugget of HTML!');
+ $propbag->add('description', THE_NUGGET);
break;
default:
return false;
|