aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/l10n/fa.js
blob: 28123c64b33d01c808dd3639e430b9c45894f571 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
OC.L10N.register(
    "workflowengine",
    {
    "The given operator is invalid" : "اپراتور گرفته شده بی اعتبار است ",
    "The given regular expression is invalid" : "عبارت منظم گرفته شده معتبر نیست ",
    "The given file size is invalid" : "حجم فایل معتبر نیست",
    "The given tag id is invalid" : "آی دی برچسب معتبر نیست ",
    "The given IP range is invalid" : "رنج آی پی گرفته شده معتبر نیست",
    "The given IP range is not valid for IPv4" : "رنج آی پی گرفته شده برای آی پی ورژن 4 معتبر نیست",
    "The given IP range is not valid for IPv6" : "رنج آی پی گرفته شده برای آی پی ورژن 6 معتبر نیست",
    "The given time span is invalid" : "طول تاریخ گرفته شده معتبر نیست ",
    "The given start time is invalid" : "تاریخ شروع معتبر نیست",
    "The given end time is invalid" : "تاریخ پایان معتبر نیست ",
    "The given group does not exist" : "گروه گرفته شده معتبر نیست",
    "Operation #%s does not exist" : "عمل %s وجود ندارد",
    "Operation %s does not exist" : "عمل %s وجود ندارد ",
    "Operation %s is invalid" : "عمل %s معتبر نیست",
    "Check %s does not exist" : "%s را چک کنید وجود ندارد",
    "Check %s is invalid" : "%s را چک کنید معتبر نیست",
    "Check #%s does not exist" : "%s را چک کنید وجود ندارد ",
    "Check %s is invalid or does not exist" : "%s یا وجود ندارد یا معتبر نیست",
    "Predefined URLs" : "URL از پیش تعریف شده ",
    "Files WebDAV" : "فایل های WebDAV",
    "Android client" : "دستگاه های اندروید ",
    "iOS client" : "دستگاه های IOS",
    "Desktop client" : "دستگاه دسکتاپ",
    "Save" : "ذخیره",
    "matches" : "مطابق است",
    "does not match" : "مطابق نیست",
    "is" : "هست ",
    "is not" : "نیست",
    "File MIME type" : "فایل از نوع MIME",
    "File size (upload)" : "حجم فایل (بارگزاری شده )",
    "less" : "کمتر",
    "less or equals" : "کمتر یا مساوی ",
    "greater or equals" : "بزرگتر یا مساوی",
    "greater" : "بزرگتر",
    "Request remote address" : "درخواست آدرس ریموت",
    "matches IPv4" : "مطابق با آی پی ورژن 4",
    "does not match IPv4" : "مطابق نیست با آی پی ورژن 4",
    "matches IPv6" : "مطابق با آی پی ورژن 6 ",
    "does not match IPv6" : "مطابق نیست با آی پی ورژن 6 ",
    "File system tag" : "برچسب فایل های سیستمی ",
    "is tagged with" : "برچسب خورده با ",
    "is not tagged with" : "برچسب نخورده با ",
    "Request URL" : "درخواست URL",
    "Request time" : "زمان درخواست ",
    "between" : "بین ",
    "not between" : "نیست بین",
    "Request user agent" : "درخواست سفیر کاربر",
    "User group membership" : "عضویت کاربر در گروه",
    "is member of" : "عضو است در ",
    "is not member of" : "عضو نیست در ",
    "Short rule description" : "توضیحات مختصر درباره قوانین ",
    "Add rule" : "اضافه کردن قوانین ",
    "Reset" : "ریست",
    "Saving…" : "در حال ذخیره",
    "Saved" : "ذخیره شده ",
    "Saving failed:" : "ذخیره فایل با خطا مواجه شد.",
    "Add rule group" : "اضافه کردن قوانین گروه",
    "Example: {placeholder}" : "برای مثال {جای قرار دادن }",
    "Select tag…" : "انتخاب برچسب",
    "Start" : "شروع",
    "End" : "پایان ",
    "Select timezone…" : "انتخاب منطقه زمانی ",
    "Sync clients" : "دستگاه های همگام ",
    "Workflow" : "جریان کاری",
    "Open documentation" : "مستندات باز",
    "Loading…" : "در حال بار گزاری"
},
"nplurals=2; plural=(n > 1);");
class="nx">VersionCheck::class) ->setMethods(['getUrlContent']) ->setConstructorArgs([ $clientService, $this->config, $this->appConfig, $this->createMock(IUserManager::class), $this->registry, $this->logger, ]) ->getMock(); } /** * @param string $baseUrl * @return string */ private function buildUpdateUrl($baseUrl) { return $baseUrl . '?version='.implode('x', Util::getVersion()).'xinstalledatx' . time() . 'x'.\OC_Util::getChannel().'xxx'.PHP_MAJOR_VERSION.'x'.PHP_MINOR_VERSION.'x'.PHP_RELEASE_VERSION.'x0x0'; } public function testCheckInCache() { $expectedResult = [ 'version' => '8.0.4.2', 'versionstring' => 'ownCloud 8.0.4', 'url' => 'https://download.example.org/community/owncloud-8.0.4.zip', 'web' => 'http://doc.example.org/server/8.0/admin_manual/maintenance/upgrade.html', 'changes' => '', ]; $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->once()) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturn(time()); $this->config ->expects($this->once()) ->method('getAppValue') ->with('core', 'lastupdateResult') ->willReturn(json_encode($expectedResult)); $this->assertSame($expectedResult, $this->updater->check()); } public function testCheckWithoutUpdateUrl() { $expectedResult = [ 'version' => '8.0.4.2', 'versionstring' => 'ownCloud 8.0.4', 'url' => 'https://download.example.org/community/owncloud-8.0.4.zip', 'web' => 'http://doc.example.org/server/8.0/admin_manual/maintenance/upgrade.html', 'changes' => '', 'autoupdater' => '0', 'eol' => '1', ]; $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->exactly(2)) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturnOnConsecutiveCalls( 0, time(), ); $this->config ->expects($this->exactly(2)) ->method('getAppValue') ->with('core', 'installedat') ->willReturn('installedat'); $this->config ->expects($this->once()) ->method('getSystemValueString') ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/') ->willReturnArgument(1); $this->appConfig ->expects($this->once()) ->method('setValueInt') ->with('core', 'lastupdatedat', time()); $this->config ->expects($this->once()) ->method('setAppValue') ->with('core', 'lastupdateResult', json_encode($expectedResult)); $updateXml = '<?xml version="1.0"?> <owncloud> <version>8.0.4.2</version> <versionstring>ownCloud 8.0.4</versionstring> <url>https://download.example.org/community/owncloud-8.0.4.zip</url> <web>http://doc.example.org/server/8.0/admin_manual/maintenance/upgrade.html</web> <autoupdater>0</autoupdater> <eol>1</eol> </owncloud>'; $this->updater ->expects($this->once()) ->method('getUrlContent') ->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/')) ->willReturn($updateXml); $this->assertSame($expectedResult, $this->updater->check()); } public function testCheckWithInvalidXml() { $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->exactly(2)) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturnOnConsecutiveCalls( 0, time(), ); $this->config ->expects($this->exactly(2)) ->method('getAppValue') ->with('core', 'installedat') ->willReturn('installedat'); $this->config ->expects($this->once()) ->method('getSystemValueString') ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/') ->willReturnArgument(1); $this->appConfig ->expects($this->once()) ->method('setValueInt') ->with('core', 'lastupdatedat', time()); $this->config ->expects($this->once()) ->method('setAppValue') ->with('core', 'lastupdateResult', $this->isType('string')); $updateXml = 'Invalid XML Response!'; $this->updater ->expects($this->once()) ->method('getUrlContent') ->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/')) ->willReturn($updateXml); $this->assertSame([], $this->updater->check()); } public function testCheckWithEmptyValidXmlResponse() { $expectedResult = [ 'version' => '', 'versionstring' => '', 'url' => '', 'web' => '', 'changes' => '', 'autoupdater' => '', 'eol' => '0', ]; $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->exactly(2)) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturnOnConsecutiveCalls( 0, time(), ); $this->config ->expects($this->exactly(2)) ->method('getAppValue') ->with('core', 'installedat') ->willReturn('installedat'); $this->config ->expects($this->once()) ->method('getSystemValueString') ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/') ->willReturnArgument(1); $this->appConfig ->expects($this->once()) ->method('setValueInt') ->with('core', 'lastupdatedat', time()); $this->config ->expects($this->once()) ->method('setAppValue') ->with('core', 'lastupdateResult', $this->isType('string')); $updateXml = '<?xml version="1.0"?> <owncloud> <version></version> <versionstring></versionstring> <url></url> <web></web> <autoupdater></autoupdater> </owncloud>'; $this->updater ->expects($this->once()) ->method('getUrlContent') ->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/')) ->willReturn($updateXml); $this->assertSame($expectedResult, $this->updater->check()); } public function testCheckWithEmptyInvalidXmlResponse() { $expectedResult = []; $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->exactly(2)) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturnOnConsecutiveCalls( 0, time(), ); $this->config ->expects($this->exactly(2)) ->method('getAppValue') ->with('core', 'installedat') ->willReturn('installedat'); $this->config ->expects($this->once()) ->method('getSystemValueString') ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/') ->willReturnArgument(1); $this->appConfig ->expects($this->once()) ->method('setValueInt') ->with('core', 'lastupdatedat', time()); $this->config ->expects($this->once()) ->method('setAppValue') ->with('core', 'lastupdateResult', $this->isType('string')); $updateXml = ''; $this->updater ->expects($this->once()) ->method('getUrlContent') ->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/')) ->willReturn($updateXml); $this->assertSame($expectedResult, $this->updater->check()); } public function testCheckWithMissingAttributeXmlResponse() { $expectedResult = [ 'version' => '', 'versionstring' => '', 'url' => '', 'web' => '', 'changes' => '', 'autoupdater' => '', 'eol' => '0', ]; $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->appConfig ->expects($this->exactly(2)) ->method('getValueInt') ->with('core', 'lastupdatedat') ->willReturnOnConsecutiveCalls( 0, time(), ); $this->config ->expects($this->exactly(2)) ->method('getAppValue') ->with('core', 'installedat') ->willReturn('installedat'); $this->config ->expects($this->once()) ->method('getSystemValueString') ->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/') ->willReturnArgument(1); $this->appConfig ->expects($this->once()) ->method('setValueInt') ->with('core', 'lastupdatedat', time()); $this->config ->expects($this->once()) ->method('setAppValue') ->with('core', 'lastupdateResult', $this->isType('string')); // missing autoupdater element should still not fail $updateXml = '<?xml version="1.0"?> <owncloud> <version></version> <versionstring></versionstring> <url></url> <web></web> </owncloud>'; $this->updater ->expects($this->once()) ->method('getUrlContent') ->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/')) ->willReturn($updateXml); $this->assertSame($expectedResult, $this->updater->check()); } public function testNoInternet() { $this->config ->expects($this->once()) ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(false); $this->assertFalse($this->updater->check()); } }