This commit is contained in:
Mario Vavti 2018-07-29 06:59:10 +02:00
commit 45d262d6c0
8 changed files with 92 additions and 84 deletions

View File

@ -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)) {

View File

@ -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'),

View File

@ -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 {

View File

@ -7,65 +7,68 @@
}
}
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;
}
if (!file_exists($phpfile)){
print "Unable to find '$phpfile'\n";
return;
}
$phpfile = $argv[1];
$pofile = dirname($phpfile)."/hmessages.po";
include_once($phpfile);
if (!file_exists($phpfile)){
print "Unable to find '$phpfile'\n";
return;
}
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);
?>
include_once($phpfile);
print "Out to '$pofile'\n";
$out = "";
$infile = file($pofile);
$k="";
$ink = False;
foreach ($infile as $l) {
if (!preg_match("/^msgstr\[[1-9]/",$l)) {
if ($k!="" && (substr($l,0,7)=="msgstr " || substr($l,0,8)=="msgstr[0")){
$ink = False;
$v = "";
if (isset(App::$strings[$k])) {
$v = App::$strings[$k];
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";
}
}
}
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 "){
$k = str_replace("msgid ","",$l);
if ($k != '""' ) {
$k = trim($k,"\"\r\n");
$k = str_replace('\"','"',$k);
} else {
$k = "";
}
$ink = True;
}
$out .= $l;
}
}
file_put_contents($pofile, $out);
?>

View File

@ -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 "Поместите файлы сюда для немедленной загрузки"

View File

@ -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."] = "Введите ваш адрес электронной почты и нажмите отправить чтобы сбросить пароль. Затем проверьте ваш почтовый ящик для дальнейших инструкций. ";

View File

@ -1,5 +1,5 @@
Уважаемый {{$username}},
Недавно {{$sitename}} был получен запрос на сброс пароля вашей
учётной записи. Для подтверждения этого запроса, пожалуйста перейдите по ссылке
проверки ниже или вставьте его в адресную строку вашего браузера.

View File

@ -1,5 +1,5 @@
Дорогой {{$username}},
Ваш пароль был изменен, как вы и просили. Пожалуйста, сохраните эту
информацию в ваших записях (или смените свой пароль на такой
который вы точно не забудете).