Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit bd0b8fc03c60de55e18b770bcb9d6fc4a3c0d0dc 1 parent fcba4a2
@kyrylo authored
View
1  config/locales/en.yml
@@ -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
1  config/locales/ru.yml
@@ -57,6 +57,7 @@ news_fetcher:
news: "Новость! %1 пишет: \"%2\" → %3"
latest_news: "%1 %2 написал запись: \"%3\"."
read_post: "Читать запись: %1"
+ someone: "Кто-то"
m:
news: "новости"
View
6 lib/artaius/plugins/news_fetcher.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.