aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-29 18:00:56 -0700
committerzotlabs <mike@macgirvin.com>2018-07-29 18:00:56 -0700
commit32614e4074758d6112993d71169664a3c29e90b2 (patch)
tree6de47408110062e1c6a3f18dfaf0dc183c459c9a
parent9dc5a3bfc9152f04b9e39d61e90310d660029108 (diff)
parente4a1286aae411023210628d3be306420f7844d22 (diff)
downloadvolse-hubzilla-32614e4074758d6112993d71169664a3c29e90b2.tar.gz
volse-hubzilla-32614e4074758d6112993d71169664a3c29e90b2.tar.bz2
volse-hubzilla-32614e4074758d6112993d71169664a3c29e90b2.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into xdev_merge
-rw-r--r--Zotlabs/Lib/Apps.php6
-rw-r--r--Zotlabs/Module/Siteinfo.php2
-rwxr-xr-xboot.php2
-rw-r--r--include/nav.php6
-rw-r--r--util/php2po.php127
-rw-r--r--view/ru/hmessages.po19
-rw-r--r--view/ru/hstrings.php18
-rw-r--r--view/ru/lostpass_eml.tpl2
-rw-r--r--view/ru/passchanged_eml.tpl2
9 files changed, 99 insertions, 85 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index ddaf8c44d..f7aff1722 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -332,7 +332,11 @@ class Apps {
'Features' => t('Features'),
'Language' => t('Language'),
'Post' => t('Post'),
- 'Profile Photo' => t('Profile Photo')
+ 'Profile Photo' => t('Profile Photo'),
+ 'Profile' => t('Profile'),
+ 'Profiles' => t('Profiles'),
+ 'Privacy Groups' => t('Privacy Groups'),
+ 'Notifications' => t('Notifications')
);
if(array_key_exists('name',$arr)) {
diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php
index 25276815d..79b94662d 100644
--- a/Zotlabs/Module/Siteinfo.php
+++ b/Zotlabs/Module/Siteinfo.php
@@ -32,7 +32,7 @@ class Siteinfo extends \Zotlabs\Web\Controller {
'$transport_link' => '<a href="https://zotlabs.com">https://zotlabs.com</a>',
'$additional_text' => t('Additional federated transport protocols:'),
- '$additional_fed' => implode(',',$federated),
+ '$additional_fed' => implode(', ',array_unique($federated)),
'$prj_version' => ((get_config('system','hidden_version_siteinfo')) ? '' : sprintf( t('Version %s'), \Zotlabs\Lib\System::get_project_version())),
'$prj_linktxt' => t('Project homepage'),
'$prj_srctxt' => t('Developer homepage'),
diff --git a/boot.php b/boot.php
index a873371b1..17fe7e54e 100755
--- a/boot.php
+++ b/boot.php
@@ -50,7 +50,7 @@ require_once('include/attach.php');
require_once('include/bbcode.php');
define ( 'PLATFORM_NAME', 'hubzilla' );
-define ( 'STD_VERSION', '3.7' );
+define ( 'STD_VERSION', '3.7.1' );
define ( 'ZOT_REVISION', '6.0a' );
diff --git a/include/nav.php b/include/nav.php
index 41358c93e..05d2d199f 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -105,12 +105,12 @@ function nav($template = 'default') {
$nav['logout'] = ['logout',t('Logout'), "", t('End this session'),'logout_nav_btn'];
// user menu
- $nav['usermenu'][] = ['profile/' . $channel['channel_address'], t('View Profile'), ((\App::$nav_sel['name'] == 'Profile') ? 'active' : ''), t('Your profile page'),'profile_nav_btn'];
+ $nav['usermenu'][] = ['profile/' . $channel['channel_address'], t('View Profile'), ((\App::$nav_sel['raw_name'] == 'Profile') ? 'active' : ''), t('Your profile page'),'profile_nav_btn'];
if(feature_enabled(local_channel(),'multi_profiles'))
- $nav['usermenu'][] = ['profiles', t('Edit Profiles'), ((\App::$nav_sel['name'] == 'Profiles') ? 'active' : '') , t('Manage/Edit profiles'),'profiles_nav_btn'];
+ $nav['usermenu'][] = ['profiles', t('Edit Profiles'), ((\App::$nav_sel['raw_name'] == 'Profiles') ? 'active' : '') , t('Manage/Edit profiles'),'profiles_nav_btn'];
else
- $nav['usermenu'][] = ['profiles/' . $prof[0]['id'], t('Edit Profile'), ((\App::$nav_sel['name'] == 'Profiles') ? 'active' : ''), t('Edit your profile'),'profiles_nav_btn'];
+ $nav['usermenu'][] = ['profiles/' . $prof[0]['id'], t('Edit Profile'), ((\App::$nav_sel['raw_name'] == 'Profiles') ? 'active' : ''), t('Edit your profile'),'profiles_nav_btn'];
}
else {
diff --git a/util/php2po.php b/util/php2po.php
index c165006a1..99578a12d 100644
--- a/util/php2po.php
+++ b/util/php2po.php
@@ -7,65 +7,74 @@
}
}
- if ($argc!=2) {
- print "Usage: ".$argv[0]." <hstrings.php>\n\n";
- return;
- }
-
- $phpfile = $argv[1];
- $pofile = dirname($phpfile)."/hmessages.po";
+ if ($argc!=2) {
+ print "Usage: ".$argv[0]." <hstrings.php>\n\n";
+ return;
+ }
+
+ $phpfile = $argv[1];
+ $pofile = dirname($phpfile)."/hmessages.po";
+
+ if (!file_exists($phpfile)){
+ print "Unable to find '$phpfile'\n";
+ return;
+ }
+
+ include_once($phpfile);
+
+ print "Out to '$pofile'\n";
- if (!file_exists($phpfile)){
- print "Unable to find '$phpfile'\n";
- return;
- }
+ $out = "";
+ $infile = file($pofile);
+ $k="";
+ $ink = False;
+ foreach ($infile as $l) {
- include_once($phpfile);
+ if (!preg_match("/^msgstr\[[1-9]/",$l)) {
+ if ($k!="" && (substr($l,0,7)=="msgstr " || substr($l,0,8)=="msgstr[0")){
+ $ink = False;
+ $k = str_replace('\"','"',$k);
+ $v = "";
+ if (isset(App::$strings[$k])) {
+ $v = App::$strings[$k];
+ } else {
+ $k = "__ctx:".$c."__ ".$k;
+ if (isset(App::$strings[$k]))
+ $v = App::$strings[$k];
+ }
+ if (!empty($v)) {
+ if (is_array($v)) {
+ $l = "";
+ $n = 0;
+ foreach ($v as &$value) {
+ $l .= "msgstr[".$n."] \"".str_replace('"','\"',$value)."\"\n";
+ $n++;
+ }
+ } else {
+ $l = "msgstr \"".str_replace('"','\"',$v)."\"\n";
+ }
+ }
+ }
- print "Out to '$pofile'\n";
-
- $out = "";
- $infile = file($pofile);
- $k="";
- $ink = False;
- foreach ($infile as $l) {
-
- if ($k!="" && substr($l,0,7)=="msgstr "){
- $ink = False;
- $v = '';
- //echo "DBG: k:'$k'\n";
- if (isset(App::$strings[$k])) {
- $v= App::$strings[$k];
- //echo "DBG\n";
- //var_dump($k, $v, App::$strings[$k], $v);
- //echo "/DBG\n";
-
- }
- //echo "DBG: v:'$v'\n";
- $l = "msgstr \"".str_replace('"','\"',$v)."\"\n";
- }
-
- if (substr($l,0,6)=="msgid_" || substr($l,0,7)=="msgstr[" )$ink = False;;
-
- if ($ink) {
- $k .= trim($l,"\"\r\n");
- $k = str_replace('\"','"',$k);
- }
-
- if (substr($l,0,6)=="msgid "){
- $arr=False;
- $k = str_replace("msgid ","",$l);
- if ($k != '""' ) {
- $k = trim($k,"\"\r\n");
- $k = str_replace('\"','"',$k);
- } else {
- $k = "";
- }
- $ink = True;
- }
-
- $out .= $l;
- }
- //echo $out;
- file_put_contents($pofile, $out);
-?> \ No newline at end of file
+ if (substr($l,0,6)=="msgid_" || substr($l,0,7)=="msgstr[") $ink = False;
+
+ if ($ink) {
+ $k .= trim($l,"\"\r\n");
+ }
+
+ if (substr($l,0,6)=="msgid ") {
+ preg_match('/^msgid "(.*)"/',$l,$m);
+ $k = $m[1];
+ $ink = True;
+ }
+
+ if (substr($l,0,8)=="msgctxt ") {
+ preg_match('/^msgctxt "(.*)"/',$l,$m);
+ $c = $m[1];
+ }
+
+ $out .= $l;
+ }
+ }
+ file_put_contents($pofile, $out);
+?>
diff --git a/view/ru/hmessages.po b/view/ru/hmessages.po
index f7ea3df15..15b1c136b 100644
--- a/view/ru/hmessages.po
+++ b/view/ru/hmessages.po
@@ -3390,7 +3390,7 @@ msgstr "Задания Cron / планировщика не запущены."
#: ../../boot.php:2535 ../../include/datetime.php:238
msgid "never"
-msgstr "никогд"
+msgstr "никогда"
#: ../../view/theme/redbasic/php/config.php:15 ../../include/text.php:3078
#: ../../Zotlabs/Module/Admin/Site.php:198
@@ -3733,17 +3733,17 @@ msgstr "Воздерживаюсь"
#: ../../include/conversation.php:621 ../../Zotlabs/Module/Photos.php:1144
msgctxt "title"
msgid "Attending"
-msgstr "Присоединившиеся"
+msgstr "Посещаю"
#: ../../include/conversation.php:621 ../../Zotlabs/Module/Photos.php:1144
msgctxt "title"
msgid "Not attending"
-msgstr "Не присоединившиеся"
+msgstr "Не посещаю"
#: ../../include/conversation.php:621 ../../Zotlabs/Module/Photos.php:1144
msgctxt "title"
msgid "Might attend"
-msgstr "Могут присоединиться"
+msgstr "Возможно посещу"
#: ../../include/conversation.php:690 ../../Zotlabs/Lib/ThreadItem.php:158
msgid "Select"
@@ -7365,7 +7365,7 @@ msgstr "Пожалуйста, посетите %s для просмотра и/
#: ../../Zotlabs/Lib/Enotify.php:144
msgid "commented on"
-msgstr " прокомментировал в"
+msgstr "прокомментировал"
#: ../../Zotlabs/Lib/Enotify.php:155
msgid "liked"
@@ -7974,7 +7974,7 @@ msgstr "Настройки аккаунта"
#: ../../Zotlabs/Widget/Settings_menu.php:41
msgid "Channel settings"
-msgstr "Выбор канала"
+msgstr "Настройки канала"
#: ../../Zotlabs/Widget/Settings_menu.php:50
msgid "Additional features"
@@ -12844,7 +12844,7 @@ msgstr "Членство одобрено автоматически"
#: ../../Zotlabs/Module/Settings/Channel.php:514
msgid "Channel Settings"
-msgstr "Выбор канала"
+msgstr "Настройки канала"
#: ../../Zotlabs/Module/Settings/Channel.php:521
msgid "Basic Settings"
@@ -14753,7 +14753,7 @@ msgstr "Участник сайта (%s)"
#: ../../Zotlabs/Module/Lostpass.php:44 ../../Zotlabs/Module/Lostpass.php:49
#, php-format
msgid "Password reset requested at %s"
-msgstr "Запроше сброс пароля на %s"
+msgstr "Запрошен сброс пароля на %s"
#: ../../Zotlabs/Module/Lostpass.php:68
msgid ""
@@ -14781,7 +14781,7 @@ msgstr "нажмите здесь чтобы войти"
msgid ""
"Your password may be changed from the <em>Settings</em> page after "
"successful login."
-msgstr "Ваш пароль может быть изменён на странице <em>Настройки</em>после успешного входа."
+msgstr "Ваш пароль может быть изменён на странице <em>Настройки</em> после успешного входа."
#: ../../Zotlabs/Module/Lostpass.php:117
#, php-format
@@ -14884,3 +14884,4 @@ msgstr "Загрузить файл"
#: ../../Zotlabs/Storage/Browser.php:404
msgid "Drop files here to immediately upload"
msgstr "Поместите файлы сюда для немедленной загрузки"
+
diff --git a/view/ru/hstrings.php b/view/ru/hstrings.php
index 45fc75773..cedd38a31 100644
--- a/view/ru/hstrings.php
+++ b/view/ru/hstrings.php
@@ -682,7 +682,7 @@ App::$strings["[\$Projectname] Website SSL error for %s"] = "[\$Projectname] О
App::$strings["Website SSL certificate is not valid. Please correct."] = "SSL/TLS сертификат веб-сайт недействителен. Исправьте это.";
App::$strings["[\$Projectname] Cron tasks not running on %s"] = "[\$Projectname] Задания Cron не запущены на %s";
App::$strings["Cron/Scheduled tasks not running."] = "Задания Cron / планировщика не запущены.";
-App::$strings["never"] = "никогд";
+App::$strings["never"] = "никогда";
App::$strings["Default"] = "По умолчанию";
App::$strings["Focus (Hubzilla default)"] = "Фокус (по умолчанию Hubzilla)";
App::$strings["Theme settings"] = "Настройки темы";
@@ -759,9 +759,9 @@ App::$strings["__ctx:title__ Dislikes"] = "Не нравится";
App::$strings["__ctx:title__ Agree"] = "Согласен";
App::$strings["__ctx:title__ Disagree"] = "Против";
App::$strings["__ctx:title__ Abstain"] = "Воздерживаюсь";
-App::$strings["__ctx:title__ Attending"] = "Присоединившиеся";
-App::$strings["__ctx:title__ Not attending"] = "Не присоединившиеся";
-App::$strings["__ctx:title__ Might attend"] = "Могут присоединиться";
+App::$strings["__ctx:title__ Attending"] = "Посещаю";
+App::$strings["__ctx:title__ Not attending"] = "Не посещаю";
+App::$strings["__ctx:title__ Might attend"] = "Возможно посещу";
App::$strings["Select"] = "Выбрать";
App::$strings["Delete"] = "Удалить";
App::$strings["Toggle Star Status"] = "Переключить статус пометки";
@@ -1645,7 +1645,7 @@ App::$strings["%1\$s sent you a new private message at %2\$s."] = "%1\$s отп
App::$strings["%1\$s sent you %2\$s."] = "%1\$s послал вам %2\$s.";
App::$strings["a private message"] = "личное сообщение";
App::$strings["Please visit %s to view and/or reply to your private messages."] = "Пожалуйста, посетите %s для просмотра и/или ответа на ваши личные сообщения.";
-App::$strings["commented on"] = " прокомментировал в";
+App::$strings["commented on"] = "прокомментировал";
App::$strings["liked"] = "понравилось";
App::$strings["disliked"] = "не понравилось";
App::$strings["%1\$s %2\$s [zrl=%3\$s]a %4\$s[/zrl]"] = "";
@@ -1780,7 +1780,7 @@ App::$strings["Export Calendar"] = "Экспортировать календа
App::$strings["Import Calendar"] = "Импортировать календарь";
App::$strings["Wiki List"] = "Список Wiki";
App::$strings["Account settings"] = "Настройки аккаунта";
-App::$strings["Channel settings"] = "Выбор канала";
+App::$strings["Channel settings"] = "Настройки канала";
App::$strings["Additional features"] = "Дополнительные функции";
App::$strings["Addon settings"] = "Настройки расширений";
App::$strings["Display settings"] = "Настройки отображения";
@@ -2896,7 +2896,7 @@ App::$strings["or"] = "или";
App::$strings["Your channel address is"] = "Адрес вашего канала";
App::$strings["Your files/photos are accessible via WebDAV at"] = "Ваши файы / фотографии доступны через WebDAV по";
App::$strings["Automatic membership approval"] = "Членство одобрено автоматически";
-App::$strings["Channel Settings"] = "Выбор канала";
+App::$strings["Channel Settings"] = "Настройки канала";
App::$strings["Basic Settings"] = "Основные настройки";
App::$strings["Email Address:"] = "Адрес email:";
App::$strings["Your Timezone:"] = "Часовой пояс:";
@@ -3348,13 +3348,13 @@ App::$strings["Unknown error"] = "Неизвестная ошибка";
App::$strings["No valid account found."] = "Действительный аккаунт не найден.";
App::$strings["Password reset request issued. Check your email."] = "Запрос на сброс пароля отправлен. Проверьте вашу электронную почту.";
App::$strings["Site Member (%s)"] = "Участник сайта (%s)";
-App::$strings["Password reset requested at %s"] = "Запроше сброс пароля на %s";
+App::$strings["Password reset requested at %s"] = "Запрошен сброс пароля на %s";
App::$strings["Request could not be verified. (You may have previously submitted it.) Password reset failed."] = "Запрос не может быть проверен. (Вы могли отправить его раньше). Сброс пароля не возможен.";
App::$strings["Your password has been reset as requested."] = "Ваш пароль в соответствии с просьбой сброшен.";
App::$strings["Your new password is"] = "Ваш новый пароль";
App::$strings["Save or copy your new password - and then"] = "Сохраните ваш новый пароль и затем";
App::$strings["click here to login"] = "нажмите здесь чтобы войти";
-App::$strings["Your password may be changed from the <em>Settings</em> page after successful login."] = "Ваш пароль может быть изменён на странице <em>Настройки</em>после успешного входа.";
+App::$strings["Your password may be changed from the <em>Settings</em> page after successful login."] = "Ваш пароль может быть изменён на странице <em>Настройки</em> после успешного входа.";
App::$strings["Your password has changed at %s"] = "Пароль был изменен на %s";
App::$strings["Forgot your Password?"] = "Забыли ваш пароль?";
App::$strings["Enter your email address and submit to have your password reset. Then check your email for further instructions."] = "Введите ваш адрес электронной почты и нажмите отправить чтобы сбросить пароль. Затем проверьте ваш почтовый ящик для дальнейших инструкций. ";
diff --git a/view/ru/lostpass_eml.tpl b/view/ru/lostpass_eml.tpl
index 76ccb0f01..6cff3c485 100644
--- a/view/ru/lostpass_eml.tpl
+++ b/view/ru/lostpass_eml.tpl
@@ -1,5 +1,5 @@
-
Уважаемый {{$username}},
+
Недавно {{$sitename}} был получен запрос на сброс пароля вашей
учётной записи. Для подтверждения этого запроса, пожалуйста перейдите по ссылке
проверки ниже или вставьте его в адресную строку вашего браузера.
diff --git a/view/ru/passchanged_eml.tpl b/view/ru/passchanged_eml.tpl
index 86a0ea3f2..a9b689f1d 100644
--- a/view/ru/passchanged_eml.tpl
+++ b/view/ru/passchanged_eml.tpl
@@ -1,5 +1,5 @@
-
Дорогой {{$username}},
+
Ваш пароль был изменен, как вы и просили. Пожалуйста, сохраните эту
информацию в ваших записях (или смените свой пароль на такой
который вы точно не забудете).