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 9195839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:43:03+00:00 2026-06-17T21:43:03+00:00

I am just localizing a Rails app for the first time and I wonder

  • 0

I am just localizing a Rails app for the first time and I wonder if there’s a shorter way to say this:

flash[:success] = t('.views.person.flash_messages.person_was_successfully_updated')

This is an excerpt of my de.yml file:

de: 
  views:
    person:
      flash_messages:
        person_was_successfully_updated: "Person aktualisiert."

I would looove to say something like this:

flash[:success] = t('person_was_successfully_updated')

But Rails is giving me an error, when I try to do so.

I don’t understand why because person_was_successfully_updated is absolutely unique in my .yml file and I don’t see the need for typing in the entire path every time. This is not very DRY either.

Any ideas?

  • 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-17T21:43:04+00:00Added an answer on June 17, 2026 at 9:43 pm

    I would looove to say something like this

    If you want to call person_was_successfully_updated directly then you should put that in first level. i.e., under de:..

    But Rails is giving me an error, when I try to do so.

    Yes it will definitely give error because there is no person_was_successfully_updated in root level.

    For more info. http://guides.rubyonrails.org/i18n.html

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

Sidebar

Related Questions

When I started localizing a website the first time, I just did the localization
This is my first time localizing or globalizing anything, so I'm learning on the
just wondering if there is a way to reduce the amount of code needed
I've just submitted my first localized app to the iPhone app store the other
I've followed the instructions of this tutorial Localizing a Windows Phone app Step by
I just started localizing my app, and what I want now is a method
Just learning the world of jquery, and all my googling gives examples like this:
Just see this: SELECT clientid,clientname,startdate,enddate,age FROM clients WHERE clientid IN (1,2,3,4,5) AND CASE WHEN
i have an app that i have to localize. I am already localizing the
Is there a way to display into the text label of a UILabel an

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.