From 682ce12ac27692a95833603fb7462bffab2dee52 Mon Sep 17 00:00:00 2001
From: Tobias Diekershoff <tobias.diekershoff@gmx.net>
Date: Tue, 7 Jun 2022 06:42:04 +0200
Subject: [PATCH] ijpost translation update THX SpcCw

---
 ijpost/lang/ru/messages.po | 44 ++++++++++++++++++++++++++++++++++++++
 ijpost/lang/ru/strings.php | 22 +++++++++++--------
 2 files changed, 57 insertions(+), 9 deletions(-)
 create mode 100644 ijpost/lang/ru/messages.po

diff --git a/ijpost/lang/ru/messages.po b/ijpost/lang/ru/messages.po
new file mode 100644
index 00000000..00211299
--- /dev/null
+++ b/ijpost/lang/ru/messages.po
@@ -0,0 +1,44 @@
+# ADDON ijpost
+# Copyright (C)
+# This file is distributed under the same license as the Friendica ijpost addon package.
+# 
+# 
+# Translators:
+# Alexander An <ravnina@gmail.com>, 2022
+msgid ""
+msgstr ""
+"Project-Id-Version: friendica\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-11-21 19:17-0500\n"
+"PO-Revision-Date: 2014-06-23 08:37+0000\n"
+"Last-Translator: Alexander An <ravnina@gmail.com>, 2022\n"
+"Language-Team: Russian (http://www.transifex.com/Friendica/friendica/language/ru/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: ru\n"
+"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
+
+#: ijpost.php:42
+msgid "Post to Insanejournal"
+msgstr "Отправить в Insanejournal"
+
+#: ijpost.php:61
+msgid "Enable InsaneJournal Post Addon"
+msgstr "Включить дополнение для InsaneJournal"
+
+#: ijpost.php:62
+msgid "InsaneJournal username"
+msgstr "Имя пользователя InsaneJournal"
+
+#: ijpost.php:63
+msgid "InsaneJournal password"
+msgstr "Пароль в InsaneJournal"
+
+#: ijpost.php:64
+msgid "Post to InsaneJournal by default"
+msgstr "Отправлять записи в InsaneJournal по-умолчанию"
+
+#: ijpost.php:69
+msgid "InsaneJournal Export"
+msgstr "Экспорт InsaneJournal"
diff --git a/ijpost/lang/ru/strings.php b/ijpost/lang/ru/strings.php
index dc869896..ac1f4df9 100644
--- a/ijpost/lang/ru/strings.php
+++ b/ijpost/lang/ru/strings.php
@@ -1,9 +1,13 @@
-<?php
-
-$a->strings["Post to Insanejournal"] = "";
-$a->strings["InsaneJournal Post Settings"] = "";
-$a->strings["Enable InsaneJournal Post Addon"] = "Включить InsaneJournal  плагин сообщений";
-$a->strings["InsaneJournal username"] = "";
-$a->strings["InsaneJournal password"] = "";
-$a->strings["Post to InsaneJournal by default"] = "";
-$a->strings["Submit"] = "Подтвердить";
+<?php
+
+if(! function_exists("string_plural_select_ru")) {
+function string_plural_select_ru($n){
+	$n = intval($n);
+	if ($n%10==1 && $n%100!=11) { return 0; } else if ($n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14)) { return 1; } else if ($n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)) { return 2; } else  { return 3; }
+}}
+$a->strings['Post to Insanejournal'] = 'Отправить в Insanejournal';
+$a->strings['Enable InsaneJournal Post Addon'] = 'Включить дополнение для InsaneJournal';
+$a->strings['InsaneJournal username'] = 'Имя пользователя InsaneJournal';
+$a->strings['InsaneJournal password'] = 'Пароль в InsaneJournal';
+$a->strings['Post to InsaneJournal by default'] = 'Отправлять записи в InsaneJournal по-умолчанию';
+$a->strings['InsaneJournal Export'] = 'Экспорт InsaneJournal';