Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30040
Modified Files:
serendipity_admin_image_selector.php
serendipity_admin_images.inc.php serendipity_entries.php
serendipity_functions.inc.php
serendipity_functions_images.inc.php
Log Message:
Rename image manager to Media Library, and all (I hope) associated strings
(Removal of old string are pending)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.386
retrieving revision 1.387
diff -u -d -r1.386 -r1.387
--- serendipity_functions.inc.php 8 Aug 2004 15:30:33 -0000 1.386
+++ serendipity_functions.inc.php 8 Aug 2004 22:01:38 -0000 1.387
@@ -2948,7 +2948,7 @@
<input type="button" name="insB" value="B" accesskey="i" style="font-weight: bold" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[body]'],'<b>','</b>')" />
<input type="button" name="insU" value="U" accesskey="u" style="text-decoration: underline;" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[body]'],'<u>','</u>')" />
<input type="button" name="insJ" value="img" accesskey="j" onclick="wrapInsImage(document.forms['serendipityEntry']['serendipity[body]'])" />
- <input type="button" name="insImage" value="<?php echo IMAGE ; ?>" style="" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=body', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');" />
+ <input type="button" name="insImage" value="<?php echo MEDIA ; ?>" style="" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=body', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');" />
<input type="button" name="insU" value="URL" accesskey="l" style="color: blue; text-decoration: underline;" onclick="wrapSelectionWithLink(document.forms['serendipityEntry']['serendipity[body]'])" />
<?php
/* Do the "old" non-WYSIWYG editor */
@@ -2957,7 +2957,7 @@
<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="<?php echo IMAGE; ?>" onclick="window.open('serendipity_admin_image_selector.php'?serendipity[textarea]=body, 'ImageSel', 'width=800,height=600,toolbar=no');">
+ <input type="button" value="<?php echo MEDIA; ?>" onclick="window.open('serendipity_admin_image_selector.php'?serendipity[textarea]=body, 'ImageSel', 'width=800,height=600,toolbar=no');">
<input type="button" value="Link" onclick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[body]'])">
<?php }
} else {
Index: serendipity_entries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_entries.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- serendipity_entries.php 18 Jul 2004 01:44:16 -0000 1.38
+++ serendipity_entries.php 8 Aug 2004 22:01:38 -0000 1.39
@@ -67,10 +67,10 @@
</div>
<div class="serendipitySideBarItem">
- <div class="serendipitySideBarTitle"><?php echo IMAGES; ?></div>
+ <div class="serendipitySideBarTitle"><?php echo MEDIA; ?></div>
<div class="serendipitySideBarContent">
- • <a href="?serendipity[adminModule]=images&serendipity[adminAction]=addSelect"><?php echo ADD_IMAGES; ?></a><br />
- • <a href="?serendipity[adminModule]=images"><?php echo MANAGE_IMAGES; ?></a><br />
+ • <a href="?serendipity[adminModule]=images&serendipity[adminAction]=addSelect"><?php echo ADD_MEDIA; ?></a><br />
+ • <a href="?serendipity[adminModule]=images"><?php echo MEDIA_LIBRARY; ?></a><br />
<?php if ($serendipity['serendipityUserlevel'] >= USERLEVEL_CHIEF) { ?>
• <a href="?serendipity[adminModule]=images&serendipity[adminAction]=directorySelect"><?php echo MANAGE_DIRECTORIES; ?></a><br />
<?php } ?>
Index: serendipity_functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_images.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- serendipity_functions_images.inc.php 6 Aug 2004 20:18:22 -0000 1.26
+++ serendipity_functions_images.inc.php 8 Aug 2004 22:01:38 -0000 1.27
@@ -752,7 +752,7 @@
<option value="ASC" <?php echo (isset($serendipity['GET']['sortorder']['ordermode']) && $serendipity['GET']['sortorder']['ordermode'] == 'ASC' ? 'selected="selected"' : '') ?>><?php echo SORT_ORDER_ASC ?></option>
</select>
</td>
- <td><?php echo IMAGES_PER_PAGE ?></td>
+ <td><?php echo FILES_PER_PAGE ?></td>
<td><select name="serendipity[sortorder][perpage]">
<?php
foreach($sort_row_interval AS $so_val) {
@@ -819,10 +819,10 @@
<?php
if ($serendipity['authorid'] == $file['authorid'] || $file['authorid'] == '0' || $serendipity['serendipityUserlevel'] >= USERLEVEL_CHIEF) {
?>
- <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo IMAGE_FULLSIZE; ?>" alt="<?php echo IMAGE_FULLSIZE; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/zoom.png" border="0" onclick="F1 = window.open('<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.'. $file['extension']; ?>','Zoom','height=<?php echo ($file['dimensions_height'] + 20); ?>,width=<?php echo ($file['dimensions_width'] + 20); ?>,toolbar=no,menubar=no,location=no,resize=1,resizable=1');" /></td>
- <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo IMAGE_RENAME; ?>" alt="<?php echo IMAGE_RENAME; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/rename.png" border="0" onclick="rename('<?php echo $file['id']; ?>', '<?php echo addslashes($file['name']); ?>')" /></td>
+ <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo MEDIA_FULLSIZE; ?>" alt="<?php echo MEDIA_FULLSIZE; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/zoom.png" border="0" onclick="F1 = window.open('<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.'. $file['extension']; ?>','Zoom','height=<?php echo ($file['dimensions_height'] + 20); ?>,width=<?php echo ($file['dimensions_width'] + 20); ?>,toolbar=no,menubar=no,location=no,resize=1,resizable=1');" /></td>
+ <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo MEDIA_RENAME; ?>" alt="<?php echo MEDIA_RENAME; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/rename.png" border="0" onclick="rename('<?php echo $file['id']; ?>', '<?php echo addslashes($file['name']); ?>')" /></td>
<?php if ($is_image) { ?><td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo IMAGE_RESIZE; ?>" alt="<?php echo IMAGE_RESIZE; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/scale.png" border="0" onclick="location.href='?serendipity[adminModule]=images&serendipity[adminAction]=scaleSelect&serendipity[fid]=<?php echo $file['id']; ?>';" /></td><?php } ?>
- <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo IMAGE_DELETE; ?>" alt="<?php echo IMAGE_DELETE; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/delete.png" border="0" onclick="location.href='?serendipity[adminModule]=images&serendipity[adminAction]=delete&serendipity[fid]=<?php echo $file['id']; ?>';" /></td>
+ <td valign="middle" align="center"><img class="serendipityImageButton" title="<?php echo MEDIA_DELETE; ?>" alt="<?php echo MEDIA_DELETE; ?>" src="<?php echo $serendipity['serendipityHTTPPath']; ?>pixel/delete.png" border="0" onclick="location.href='?serendipity[adminModule]=images&serendipity[adminAction]=delete&serendipity[fid]=<?php echo $file['id']; ?>';" /></td>
<?php
}
?>
Index: serendipity_admin_image_selector.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_image_selector.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- serendipity_admin_image_selector.php 7 Aug 2004 09:43:54 -0000 1.28
+++ serendipity_admin_image_selector.php 8 Aug 2004 22:01:38 -0000 1.29
@@ -25,7 +25,7 @@
?>
<html>
<head>
- <title><?php echo SELECT_IMAGE; ?></title>
+ <title><?php echo SELECT_FILE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo LANG_CHARSET; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity.css.php">
</head>
@@ -124,10 +124,10 @@
$add_url .= '&serendipity[filename_only]=' . $serendipity['GET']['filename_only'];
}
?>
- <b><?php echo SELECT_IMAGE; ?></b>
+ <b><?php echo SELECT_FILE; ?></b>
<br />
- <?php echo CLICK_IMAGE_TO_INSERT; ?>
+ <?php echo CLICK_FILE_TO_INSERT; ?>
<br />
<?php
@@ -145,4 +145,4 @@
<?php
/* vim: set sts=4 ts=4 expandtab : */
-?>
\ No newline at end of file
+?>
Index: serendipity_admin_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_images.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- serendipity_admin_images.inc.php 6 Aug 2004 20:18:18 -0000 1.26
+++ serendipity_admin_images.inc.php 8 Aug 2004 22:01:38 -0000 1.27
@@ -279,7 +279,7 @@
case 'addSelect':
?>
- <?php echo ADD_IMAGE_BLAHBLAH; ?>
+ <?php echo ADD_MEDIA_BLAHBLAH; ?>
<script type="text/javascript">
function getfilename(field, value) {
@@ -297,7 +297,7 @@
<table>
<tr>
- <td nowrap="nowrap"><?php echo ENTER_IMAGE_URL; ?></td>
+ <td nowrap="nowrap"><?php echo ENTER_MEDIA_URL; ?></td>
<td><input type="text" name="serendipity[imageurl]" onblur="getfilename('target_filename', this.value);" onchange="getfilename('target_filename', this.value);" onkeyup="getfilename('target_filename', this.value);" value="" size="40" /></td>
</tr>
@@ -306,7 +306,7 @@
</tr>
<tr>
- <td nowrap='nowrap'><?php echo ENTER_IMAGE_TO_UP; ?></td>
+ <td nowrap='nowrap'><?php echo ENTER_MEDIA_UPLOAD; ?></td>
<td><input name="userfile" onchange="getfilename('target_filename', this.value);" onblur="getfilename('target_filename', this.value);" onkeyup="getfilename('target_filename', this.value);" type="file" /></td>
</tr>
@@ -315,7 +315,7 @@
</tr>
<tr>
- <td><?php echo IMAGE_NAME; ?></td>
+ <td><?php echo SAVE_FILE_AS; ?></td>
<td><input type="text" id="target_filename" name="serendipity[target_filename]" value="" size="40" /></td>
</tr>
|