Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:01:09+00:00 2026-06-09T20:01:09+00:00

I am looking over the source code for rubygems.org to further understand Rails and

  • 0

I am looking over the source code for rubygems.org to further understand Rails and how to use it with a functional site.

One question I have is what exactly do these do?:

<%= t 'download_count', :count => number_with_delimiter(@downloads_count) %>
<%= t '.welcome_blurb' %>

Are download_count and .welcome_blurb variables that store the text somewhere? If so, where do I find that and how does it know where to look?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:01:10+00:00Added an answer on June 9, 2026 at 8:01 pm

    download_count and .welcome_blurb are translated strings, you can find them in the config/locales/ directory in a file with a filename corresponding to the language, in this case en.yml for English:

    download_count: https://github.com/rubygems/rubygems.org/blob/master/config/locales/en.yml#L11
    .welcome_blurb: https://github.com/rubygems/rubygems.org/blob/master/config/locales/en.yml#L31

    The dot before welcome_blurb signifies a lazy lookup, which means that the namespace for the translation defaults to the view you are calling it from, as you’ll see in the en.yml file:

    home:
      index:
    ...
        welcome_blurb: "Welcome to your community RubyGem host."
    

    So .welcome_blurb actually means home.index.welcome_blurb.

    See the rails i18n documentation for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking over this code for the past hour, I cant see
I was looking over the code for qunit. My question is why would you
I was just looking over EveryBlock's source code and I noticed this code in
I'm looking over the ui.dialog source code, which is probably the best learning experience
I'm using #pragma mark - Description all over my source code to use with
I was looking over the Ninject MVC source code, and the method that generates
I was looking over the JavaScript source code for SlickGrid . I've noticed that
I was looking over the js source code for Scrabb.ly . I've noticed that
I'm looking over some open-source code and can't wrap my head around this snippet.
I am looking over some open source code and they listed some strange instance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.