Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_entryproperties
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32583/plugins/serendipity_event_entryproperties
Modified Files:
serendipity_event_entryproperties.php
Added Files:
lang_ja.inc.php
Log Message:
Japanese translation updates
--- NEW FILE: lang_ja.inc.php ---
<?php # $Id: lang_ja.inc.php,v 1.1 2005/01/08 12:25:11 garvinhicking Exp $
##########################################################################
# serendipity - another blogger... #
##########################################################################
# #
# (c) 2003 Jannis Hermanns <J...@ha...> #
# http://www.jannis.to/programming/serendipity.html #
# #
# Translated by #
# (c) 2004-2005 Tadashi Jokagi <el...@us...> #
# #
##########################################################################
@define('PLUGIN_EVENT_ENTRYPROPERTIES_TITLE', 'ã¨ã³ããªã®æ¡å¼µããããã£');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_DESC', '(ãã£ãã·ã¥ãéå
¬éè¨äºãã¹ãã£ããæç¨¿)');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_STICKYPOSTS', 'ã¹ãã£ããæç¨¿ã¨ãã¦ãã®ã¨ã³ããªããã¼ã¯ãã');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS', 'ã¨ã³ããªãèªããã¨ãåºæ¥ã人');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS_PRIVATE', 'èªåèªèº«');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS_MEMBER', 'å
±åå·çè
');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS_PUBLIC', 'ãã¹ã¦');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE', 'ã¨ã³ããªã®ãã£ãã·ã¥ã許å¯ãã¾ãã?');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_DESC', 'ããæå¹ã«ããã¨ãä¿åæã«ãã£ãã·ã¥ããããã¼ã¸ã§ã³ã常ã«ä¿åãã¾ãããã£ãã·ã³ã°ã¯ããã©ã¼ãã³ã¹ãåä¸ãããã§ãããããæãããä»ã®ãã©ã°ã¤ã³ã®ã®æè»æ§ãæ¸ããã§ããã');
@define('PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE', 'ãã£ãã·ã¥ãããã¨ã³ããªã®æ§ç¯');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_FETCHNEXT', 'ã¨ã³ããªã®æ¬¡ã®ãããåå¾ä¸...');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_FETCHNO', '%d ãã %d ã®ã¨ã³ããªãåå¾ä¸');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_BUILDING', 'ã¨ã³ããªçªå· #%d: ã<em>%s</em>ãã®ãã£ãã·ã¥ãæ§ç¯ä¸...');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHED', 'ã¨ã³ããªããã£ãã·ã¥ãã¾ããã');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_DONE', 'ã¨ã³ããªã®ãã£ãã·ã¥ãå®äºãã¾ããã');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_ABORTED', 'ã¨ã³ããªã®ãã£ãã·ã¥ä½æã䏿ãã¾ããã');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_TOTAL', ' (åè¨ %d ã¨ã³ããª)...');
@define('PLUGIN_EVENT_ENTRYPROPERTIES_NL2BR', 'nl2br ãç¡å¹ã«ãã');
?>
Index: serendipity_event_entryproperties.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- serendipity_event_entryproperties.php 6 Jan 2005 21:16:55 -0000 1.11
+++ serendipity_event_entryproperties.php 8 Jan 2005 12:25:11 -0000 1.12
@@ -1,5 +1,11 @@
<?php # $Id$
+// Probe for a language include with constants. Still include defines later on, if some constants were missing
+$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+if (file_exists($probelang)) {
+ include $probelang;
+}
+
switch ($serendipity['lang']) {
case 'de':
@define('PLUGIN_EVENT_ENTRYPROPERTIES_TITLE', 'Erweiterte Eigenschaften von Artikeln');
@@ -154,8 +160,8 @@
$nl2br = (isset($eventData['properties']['ep_no_nl2br']) && serendipity_db_bool($eventData['properties']['ep_no_nl2br']))
|| (isset($serendipity['POST']['properties']['no_nl2br']) && serendipity_db_bool($serendipity['POST']['properties']['no_nl2br']))
? 'checked="checked"'
- : '';
-
+ : '';
+
$access_values = array(
PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS_PRIVATE => 'private',
PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS_MEMBER => 'member',
@@ -177,8 +183,8 @@
<? if (class_exists('serendipity_event_nl2br')){ ?>
<input type="checkbox" name="serendipity[properties][no_nl2br]" id="properties_no_nl2br" value="true" <?php echo $nl2br; ?> />
<label title="<?php echo PLUGIN_EVENT_ENTRYPROPERTIES_NL2BR; ?>" for="properties_no_nl2br"> <?php echo PLUGIN_EVENT_ENTRYPROPERTIES_NL2BR; ?> </label><br />
-
-<? } ?>
+
+<? } ?>
<?php echo PLUGIN_EVENT_ENTRYPROPERTIES_ACCESS; ?>:
<?php
@@ -204,7 +210,7 @@
return true;
break;
case 'backend_import_entry':
- //TODO: (ph) Maybe handle caching?
+ //TODO: (ph) Maybe handle caching?
if (is_array($addData) && !$addData['nl2br']){
$props = array();
$props['no_nl2br'] = 'true';
@@ -323,13 +329,13 @@
case 'entry_display':
// PH: This is done after Garvins suggestion to patchup $eventData in case an entry
// is in the process of being created. This must be done for the extended properties
- // to be applied in the preview.
+ // to be applied in the preview.
if (is_array($serendipity['POST']['properties']) && count($serendipity['POST']['properties']) > 0){
$parr = array();
$supported_properties = serendipity_event_entryproperties::getSupportedProperties();
foreach($supported_properties AS $prop_key) {
if (isset($serendipity['POST']['properties'][$prop_key]))
- $parr['ep_' . $prop_key] = $serendipity['POST']['properties'][$prop_key];
+ $parr['ep_' . $prop_key] = $serendipity['POST']['properties'][$prop_key];
}
$eventData[0]['properties'] = $parr;
}
|