Permalink
Browse files

Add new post writer

FliesLikeABrick can write blog posts from now on, so add him to the
list. Also, add "Someone" in case someone, who isn't in the list writes
a post.
  • Loading branch information...
1 parent fcba4a2 commit bd0b8fc03c60de55e18b770bcb9d6fc4a3c0d0dc @kyrylo committed May 15, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −0 config/locales/en.yml
  2. +1 −0 config/locales/ru.yml
  3. +4 −2 lib/artaius/plugins/news_fetcher.rb
View
@@ -50,6 +50,7 @@ news_fetcher:
news: "News! %1 writes: \"%2\" → %3"
latest_news: "On %1 %2 wrote a post: \"%3\"."
read_post: "Read post: %1"
+ someone: "Someone"
m:
news: "news"
View
@@ -57,6 +57,7 @@ news_fetcher:
news: "Новость! %1 пишет: \"%2\" → %3"
latest_news: "%1 %2 написал запись: \"%3\"."
read_post: "Читать запись: %1"
+ someone: "Кто-то"
m:
news: "новости"
@@ -82,8 +82,10 @@ def unchanged?(title)
# Returns the transformed String.
def reveal_author(nick)
case nick
- when 'lddev' then 'MM'
- when '1bardesign' then 'Geti'
+ when 'lddev' then 'MM'
+ when '1bardesign' then 'Geti'
+ when 'flieslikeabrick' then 'FliesLikeABrick'
+ else I18n.news_fetcher.someone
end
end

0 comments on commit bd0b8fc

Please sign in to comment.