This commit is contained in:
Sacha Greif 2015-10-13 10:44:03 +09:00
commit 67a59830a9
9 changed files with 55 additions and 17 deletions

View file

@ -24,9 +24,9 @@ Comments.helpers({getPageUrl: function () {return Comments.getPageUrl(this);}});
Comments.getAuthorName = function (comment) { Comments.getAuthorName = function (comment) {
var user = Meteor.users.findOne(comment.userId); var user = Meteor.users.findOne(comment.userId);
if (user) { if (user) {
return user.getUserName(); return user.getDisplayName();
} else { } else {
return comment.author; return comment.author;
} }
}; };
Comments.helpers({getAuthorName: function () {return Comments.getAuthorName(this);}}); Comments.helpers({getAuthorName: function () {return Comments.getAuthorName(this);}});

View file

@ -22,7 +22,7 @@ Template.layout.onCreated(function (){
} }
} }
}); });
}); });
@ -65,7 +65,8 @@ Template.layout.helpers({
navLayout: function () { navLayout: function () {
return Settings.get('navLayout', 'top-nav'); return Settings.get('navLayout', 'top-nav');
}, },
pageName : function(){ pageName : function() {
FlowRouter.watchPathChange();
return FlowRouter.current().route.name; return FlowRouter.current().route.name;
}, },
extraCode: function() { extraCode: function() {

View file

@ -1,8 +1,5 @@
Meteor.startup(function () { Meteor.startup(function () {
// "custom_" is always loaded last, so it takes priority over every other prefix
Telescope.config.addCustomPrefix("custom_");
// loop over custom prefixes // loop over custom prefixes
Telescope.config.customPrefixes.forEach(function (prefix) { Telescope.config.customPrefixes.forEach(function (prefix) {
@ -20,4 +17,4 @@ Meteor.startup(function () {
}); });
}); });
}); });

View file

@ -0,0 +1,7 @@
Meteor.startup(function () {
// "custom_" is always loaded last, so it takes priority over every other prefix
Telescope.config.addCustomPrefix("custom_");
});

View file

@ -97,6 +97,7 @@ Package.onUse(function (api) {
'lib/colors.js', 'lib/colors.js',
'lib/icons.js', 'lib/icons.js',
'lib/router.js', 'lib/router.js',
'lib/custom_template_prefix.js'
], ['client', 'server']); ], ['client', 'server']);
api.addFiles([ api.addFiles([

View file

@ -1,3 +1,6 @@
{ {
"load_more" : "Зареди повече" "load_more" : "Зареди още",
"search" : "Търси",
"search_logs" : "История на търсенето",
"see_what_people_are_searching_for" : "Виж какво търсят потребителите"
} }

View file

@ -1,4 +1,10 @@
{ {
"categories" : "Категории", "categories" : "Категории",
"add_and_remove_categories" : "Добавяне и изтриване на категории." "add_and_remove_categories" : "Добавяне и премахване на категории.",
"all_categories" : "Всички",
"invalid_category" : "Невалидна категория",
"categoriesBehavior": "Позволи на потребителя да филтрира по:",
"categories_behavior_one_at_a_time": "само една категория наведнъж",
"categories_behavior_multiple": "няколко категории наведнъж",
"hideEmptyCategories": "Скривай празните категории"
} }

View file

@ -1,19 +1,32 @@
{ {
"please_fill_in_missing_information_to_finish_signing_up" : "Моля въведете липсващата информация за да завършите регистрацията си.",
"bio" : "Биография", "bio" : "Биография",
"displayName" : "Име",
"email" : "Емайл", "email" : "Емайл",
"twitterUsername" : "Twitter Username",
"website" : "Website",
"htmlBio" : "Биография",
"user_profile_saved" : "Данните Ви са запазени.",
"this_email_is_already_taken" : "Този email е вече зает.",
"all_fields_are_required" : "Всички полета са задължителни",
"please_complete_your_profile_below_before_continuing" : "Моля попълнете вашия профил по-долу, преди да продължите.", "please_complete_your_profile_below_before_continuing" : "Моля попълнете вашия профил по-долу, преди да продължите.",
"account" : "Акаунт", "account" : "Акаунт",
"username" : "Потребителско име", "username" : "Потребителско име",
"display_name" : "Прякор", "display_name" : "Прякор",
"city" : "Град",
"twitter_username" : "Twitter Username",
"github_username" : "GitHub Username",
"site_url" : "Уебсайт URL",
"password" : "Парола", "password" : "Парола",
"change_password" : "Променете парола?", "change_password" : "Променете парола?",
"old_password" : "Стара парола", "old_password" : "Стара парола",
"new_password" : "Нова парола", "new_password" : "Нова парола",
"email_notifications" : "Емайл известия", "email_notifications" : "Емайл известия",
"new_users" : "Нови Потребители",
"new_posts" : "Нови Публикации", "new_posts" : "Нови Публикации",
"comments_on_my_posts" : "Коментари на мои публикации", "comments_on_my_posts" : "Коментари на мои публикации",
"replies_to_my_comments" : "Отговори на мои коментари", "replies_to_my_comments" : "Отговори на мои коментари",
"comments" : "коментари", "comments" : "Коментари",
"forgot_password" : "Забравена Парола?", "forgot_password" : "Забравена Парола?",
"profile_updated" : "Профила е обновен", "profile_updated" : "Профила е обновен",
"please_fill_in_your_email_below_to_finish_signing_up" : "Моля попълнете емайл адреса си за да завършите регистрацията.", "please_fill_in_your_email_below_to_finish_signing_up" : "Моля попълнете емайл адреса си за да завършите регистрацията.",
@ -34,19 +47,25 @@
"delete" : "Изтриване", "delete" : "Изтриване",
"member_since" : "Потребител от", "member_since" : "Потребител от",
"edit_profile" : "Промяна на профила", "edit_profile" : "Промяна на профила",
"sign_in" : "Влезте", "sign_in" : "Влез",
"sign_in_" : "Влезте!", "sign_in_" : "Влез!",
"sign_up_" : "Регистрирайте се!", "sign_up_" : "Регистрирайте се!",
"dont_have_an_account" : "Нямате Акаунт?", "dont_have_an_account" : "Нямате Акаунт?",
"already_have_an_account" : "Вече имате акаунт?", "already_have_an_account" : "Вече имате акаунт?",
"sign_up" : "Регистрирай се", "sign_up" : "Регистрирай се",
"please_fill_in_all_fields" : "Моля попълнете всички полета", "please_fill_in_all_fields" : "Моля попълнете всички полета",
"invite_" : "Покани ", "invite_" : "Покани ",
"left" : " остава", "left" : " остават",
"invite_none_left" : "Покана (none left)", "invite_none_left" : "Покана (0 оставащи)",
"all" : "Всичко", "all" : "Всичко",
"invited" : "Поканен", "invited" : "Поканен",
"uninvited" : "Поканата е отхвърлена", "uninvited" : "Поканата е отхвърлена",
"filter_by" : "Филтрирай по ", "filter_by" : "Филтрирай по ",
"sort_by" : "Сортирай по " "sort_by" : "Сортирай по ",
"you_have_been_logged_out": "Бяхте отписан от системата.",
"delete_users_posts_comments_as_well": "Да се изтрият ли също публикациите и коментарите на потребителя?",
"commentedAt": "Коментирано на",
"downvotedAt": "Не харесано на",
"postedAt": "Публикувано на",
"upvotedAt": "Харесано на"
} }

View file

@ -63,5 +63,9 @@
"filter_by" : "Filter by", "filter_by" : "Filter by",
"sort_by" : "Sort by", "sort_by" : "Sort by",
"you_have_been_logged_out": "You have been logged out", "you_have_been_logged_out": "You have been logged out",
"delete_users_posts_comments_as_well": "Delete user's posts and comments as well?" "delete_users_posts_comments_as_well": "Delete user's posts and comments as well?",
"commentedAt": "Commented at",
"downvotedAt": "Downvoted at",
"postedAt": "Posted at",
"upvotedAt": "Upvoted at"
} }