aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/l10n/zh_CN.js
blob: 3a1aa2d57a56a8fbb3b22952f062f00398c8e689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
OC.L10N.register(
    "user_status",
    {
    "Recent statuses" : "最近状态",
    "No recent status changes" : "最近状态没有改变",
    "In a meeting" : "开会中",
    "Commuting" : "通勤中",
    "Out sick" : "生病了",
    "Vacationing" : "度假中",
    "Out of office" : "不在办公室",
    "Working remotely" : "远程办公中",
    "In a call" : "通话中",
    "User status" : "用户状态",
    "Clear status after" : "清除状态于",
    "Emoji for your status message" : "表示状态信息的表情符号",
    "What is your status?" : "你什么状态?",
    "Predefined statuses" : "预定义的状态",
    "Previously set" : "先前设定",
    "Reset status" : "重置状态",
    "Set status" : "设定状态",
    "Online status" : "在线状态",
    "Status message" : "状态信息",
    "Your status was set automatically" : "您的状态已自动设定",
    "Clear status message" : "清除状态信息",
    "Set status message" : "设定状态信息",
    "Reset status to \"{icon} {message}\"" : "重置状态为 {icon} {message}",
    "Reset status to \"{message}\"" : "重置状态为 {message}",
    "Reset status to \"{icon}\"" : "重置状态为 {icon}",
    "There was an error saving the status" : "保存状态时出错",
    "There was an error clearing the status" : "清除状态时出错",
    "There was an error reverting the status" : "还原状态时发生错误",
    "Don't clear" : "不要清除",
    "Today" : "今天",
    "This week" : "本周",
    "Online" : "在线",
    "Away" : "离开",
    "Do not disturb" : "请勿打扰",
    "Invisible" : "不可见",
    "Offline" : "离线",
    "There was an error saving the new status" : "保存新状态时出错",
    "30 minutes" : "30分钟",
    "1 hour" : "1小时",
    "4 hours" : "4小时",
    "Mute all notifications" : "静音所有通知",
    "Appear offline" : "显示为离线",
    "View profile" : "查看个人资料",
    "{status}, {timestamp}" : "{status}, {timestamp}"
},
"nplurals=1; plural=0;");
ersKey'); $this->assertTrue($this->instance->decryptAllModeActivated()); $this->assertSame('user1', $this->instance->getDecryptAllUid()); $this->assertSame('usersKey', $this->instance->getDecryptAllKey()); } public function testDecryptAllModeDeactivated() { $this->assertFalse($this->instance->decryptAllModeActivated()); } /** * @expectedException \Exception * @expectExceptionMessage 'Please activate decrypt all mode first' */ public function testGetDecryptAllUidException() { $this->instance->getDecryptAllUid(); } /** * @expectedException \Exception * @expectExceptionMessage 'No uid found while in decrypt all mode' */ public function testGetDecryptAllUidException2() { $this->instance->prepareDecryptAll(null, 'key'); $this->instance->getDecryptAllUid(); } /** * @expectedException \OCA\Encryption\Exceptions\PrivateKeyMissingException * @expectExceptionMessage 'Please activate decrypt all mode first' */ public function testGetDecryptAllKeyException() { $this->instance->getDecryptAllKey(); } /** * @expectedException \OCA\Encryption\Exceptions\PrivateKeyMissingException * @expectExceptionMessage 'No key found while in decrypt all mode' */ public function testGetDecryptAllKeyException2() { $this->instance->prepareDecryptAll('user', null); $this->instance->getDecryptAllKey(); } /** * */ public function testSetAndGetStatusWillSetAndReturn() { // Check if get status will return 0 if it has not been set before $this->assertEquals(0, $this->instance->getStatus()); $this->instance->setStatus(Session::NOT_INITIALIZED); $this->assertEquals(0, $this->instance->getStatus()); $this->instance->setStatus(Session::INIT_EXECUTED); $this->assertEquals(1, $this->instance->getStatus()); $this->instance->setStatus(Session::INIT_SUCCESSFUL); $this->assertEquals(2, $this->instance->getStatus()); } /** * @param $key * @param $value */ public function setValueTester($key, $value) { self::$tempStorage[$key] = $value; } /** * @param $key */ public function removeValueTester($key) { unset(self::$tempStorage[$key]); } /** * @param $key * @return mixed */ public function getValueTester($key) { if (!empty(self::$tempStorage[$key])) { return self::$tempStorage[$key]; } return null; } /** * */ public function testClearWillRemoveValues() { $this->instance->setPrivateKey('privateKey'); $this->instance->setStatus('initStatus'); $this->instance->prepareDecryptAll('user', 'key'); $this->assertNotEmpty(self::$tempStorage); $this->instance->clear(); $this->assertEmpty(self::$tempStorage); } /** * */ protected function setUp() { parent::setUp(); $this->sessionMock = $this->getMock('OCP\ISession'); $this->sessionMock->expects($this->any()) ->method('set') ->will($this->returnCallback([$this, "setValueTester"])); $this->sessionMock->expects($this->any()) ->method('get') ->will($this->returnCallback([$this, "getValueTester"])); $this->sessionMock->expects($this->any()) ->method('remove') ->will($this->returnCallback([$this, "removeValueTester"])); $this->instance = new Session($this->sessionMock); } protected function tearDown() { self::$tempStorage = []; parent::tearDown(); } }