summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/lang/ja/lang.php2
-rw-r--r--inc/lang/ko/lang.php10
-rw-r--r--inc/lang/ko/locked.txt2
-rw-r--r--lib/plugins/authad/auth.php32
-rw-r--r--lib/plugins/authad/lang/ja/settings.php5
-rw-r--r--lib/plugins/authldap/lang/ja/settings.php5
-rw-r--r--lib/plugins/authmysql/lang/ja/settings.php5
-rw-r--r--lib/plugins/authpgsql/lang/ja/settings.php5
8 files changed, 44 insertions, 22 deletions
diff --git a/inc/lang/ja/lang.php b/inc/lang/ja/lang.php
index 7997889e4..d8d0864ae 100644
--- a/inc/lang/ja/lang.php
+++ b/inc/lang/ja/lang.php
@@ -310,7 +310,7 @@ $lang['media_files'] = '%s 内のファイル';
$lang['media_upload'] = '%s にアップロード';
$lang['media_search'] = '%s 内で検索';
$lang['media_view'] = '%s';
-$lang['media_viewold'] = '%s at %s';
+$lang['media_viewold'] = '%s(%sである)';
$lang['media_edit'] = '%s を編集';
$lang['media_history'] = '%s の履歴';
$lang['media_meta_edited'] = 'メタデータが編集されました';
diff --git a/inc/lang/ko/lang.php b/inc/lang/ko/lang.php
index 93f8611d6..76d6a535d 100644
--- a/inc/lang/ko/lang.php
+++ b/inc/lang/ko/lang.php
@@ -246,10 +246,10 @@ $lang['img_keywords'] = '키워드';
$lang['img_width'] = '너비';
$lang['img_height'] = '높이';
$lang['img_manager'] = '미디어 관리자에서 보기';
-$lang['subscr_subscribe_success'] = '%s 사용자가 %s 구독 목록에 추가하였습니다';
+$lang['subscr_subscribe_success'] = '%s 사용자가 %s 구독 목록에 추가했습니다';
$lang['subscr_subscribe_error'] = '%s 사용자가 %s 구독 목록에 추가하는데 실패했습니다';
$lang['subscr_subscribe_noaddress'] = '로그인으로 연결된 주소가 없기 때문에 구독 목록에 추가할 수 없습니다';
-$lang['subscr_unsubscribe_success'] = '%s 사용자가 %s 구독 목록에서 삭제하였습니다';
+$lang['subscr_unsubscribe_success'] = '%s 사용자가 %s 구독 목록에서 삭제했습니다';
$lang['subscr_unsubscribe_error'] = '%s 사용자가 %s 구독 목록에서 삭제하는데 실패했습니다';
$lang['subscr_already_subscribed'] = '%s 사용자가 이미 %s에 구독하고 있습니다';
$lang['subscr_not_subscribed'] = '%s 사용자가 %s에 구독하고 있지 않습니다';
@@ -299,7 +299,7 @@ $lang['days'] = '%d일 전';
$lang['hours'] = '%d시간 전';
$lang['minutes'] = '%d분 전';
$lang['seconds'] = '%d초 전';
-$lang['wordblock'] = '스팸 문구를 포함하고 있어서 저장하지 않았습니다.';
+$lang['wordblock'] = '차단 문구(스팸 문구)를 포함하고 있어서 저장하지 않았습니다.';
$lang['media_uploadtab'] = '올리기';
$lang['media_searchtab'] = '찾기';
$lang['media_file'] = '파일';
@@ -311,11 +311,11 @@ $lang['media_list_rows'] = '목록';
$lang['media_sort_name'] = '이름';
$lang['media_sort_date'] = '날짜';
$lang['media_namespaces'] = '이름공간 선택';
-$lang['media_files'] = '%s의 파일';
+$lang['media_files'] = '%s에 있는 파일';
$lang['media_upload'] = '%s에 올리기';
$lang['media_search'] = '%s 찾기';
$lang['media_view'] = '%s';
-$lang['media_viewold'] = '%s의 %s';
+$lang['media_viewold'] = '%s (%s에 있음)';
$lang['media_edit'] = '%s 편집';
$lang['media_history'] = '%s 바뀜 내역';
$lang['media_meta_edited'] = '메타데이터가 수정됨';
diff --git a/inc/lang/ko/locked.txt b/inc/lang/ko/locked.txt
index f4070d4bc..8e2eab9f9 100644
--- a/inc/lang/ko/locked.txt
+++ b/inc/lang/ko/locked.txt
@@ -1,3 +1,3 @@
====== 문서 잠금 ======
-다른 사용자가 이 문서를 편집하기 위해 잠금을 실행하였습니다. 해당 사용자가 편집을 끝내거나 잠금이 해제될 때까지 기다리세요. \ No newline at end of file
+다른 사용자가 이 문서를 편집하기 위해 잠금을 실행했습니다. 해당 사용자가 편집을 끝내거나 잠금이 해제될 때까지 기다리세요. \ No newline at end of file
diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php
index 5985cd18f..95a25c5af 100644
--- a/lib/plugins/authad/auth.php
+++ b/lib/plugins/authad/auth.php
@@ -218,22 +218,24 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin {
// check expiry time
if($info['expires'] && $this->conf['expirywarn']){
- $timeleft = $adldap->user()->passwordExpiry($user); // returns unixtime
- $timeleft = round($timeleft/(24*60*60));
- $info['expiresin'] = $timeleft;
-
- // if this is the current user, warn him (once per request only)
- if(($_SERVER['REMOTE_USER'] == $user) &&
- ($timeleft <= $this->conf['expirywarn']) &&
- !$this->msgshown
- ) {
- $msg = sprintf($lang['authpwdexpire'], $timeleft);
- if($this->canDo('modPass')) {
- $url = wl($ID, array('do'=> 'profile'));
- $msg .= ' <a href="'.$url.'">'.$lang['btn_profile'].'</a>';
+ $expiry = $adldap->user()->passwordExpiry($user);
+ if(is_array($expiry)){
+ $info['expiresat'] = $expiry['expiryts'];
+ $info['expiresin'] = round(($info['expiresat'] - time())/(24*60*60));
+
+ // if this is the current user, warn him (once per request only)
+ if(($_SERVER['REMOTE_USER'] == $user) &&
+ ($info['expiresin'] <= $this->conf['expirywarn']) &&
+ !$this->msgshown
+ ) {
+ $msg = sprintf($lang['authpwdexpire'], $info['expiresin']);
+ if($this->canDo('modPass')) {
+ $url = wl($ID, array('do'=> 'profile'));
+ $msg .= ' <a href="'.$url.'">'.$lang['btn_profile'].'</a>';
+ }
+ msg($msg);
+ $this->msgshown = true;
}
- msg($msg);
- $this->msgshown = true;
}
}
diff --git a/lib/plugins/authad/lang/ja/settings.php b/lib/plugins/authad/lang/ja/settings.php
new file mode 100644
index 000000000..576f0eeb5
--- /dev/null
+++ b/lib/plugins/authad/lang/ja/settings.php
@@ -0,0 +1,5 @@
+<?php
+/**
+ * Japanese language file
+ *
+ */
diff --git a/lib/plugins/authldap/lang/ja/settings.php b/lib/plugins/authldap/lang/ja/settings.php
new file mode 100644
index 000000000..576f0eeb5
--- /dev/null
+++ b/lib/plugins/authldap/lang/ja/settings.php
@@ -0,0 +1,5 @@
+<?php
+/**
+ * Japanese language file
+ *
+ */
diff --git a/lib/plugins/authmysql/lang/ja/settings.php b/lib/plugins/authmysql/lang/ja/settings.php
new file mode 100644
index 000000000..576f0eeb5
--- /dev/null
+++ b/lib/plugins/authmysql/lang/ja/settings.php
@@ -0,0 +1,5 @@
+<?php
+/**
+ * Japanese language file
+ *
+ */
diff --git a/lib/plugins/authpgsql/lang/ja/settings.php b/lib/plugins/authpgsql/lang/ja/settings.php
new file mode 100644
index 000000000..576f0eeb5
--- /dev/null
+++ b/lib/plugins/authpgsql/lang/ja/settings.php
@@ -0,0 +1,5 @@
+<?php
+/**
+ * Japanese language file
+ *
+ */