Comments (7)
This repo's English strings are a copy of devise's English strings. Strings in other languages should say the same thing as the English strings, unless there's a good, language-specific reason not to.
from devise-i18n.
Could you clarify by "should say the same thing as the English strings"? Did you mean other languages should also display the English version of the strings?
from devise-i18n.
If I use devise-i18n without adding my customized zh-TW yaml, when I failed to login the flash message will show translation missing: zh-TW.devise.failure.sales_user.not_found_in_database
.
But if I add a devise.views.zh-tw.yml
and fill in a string for key not_found_in_database
, then the flash will properly display the string.
Does this mean we should not have empty keys for translations in the gem?
from devise-i18n.
Could you clarify by "should say the same thing as the English strings"?
The meaning of the message should be the same in all languages, unless there is a reason for them not to be.
If I use devise-i18n without adding my customized zh-TW yaml, when I failed to login the flash message will show translation missing: zh-TW.devise.failure.sales_user.not_found_in_database.
Some languages are not complete in this project. If you want to contribute translations they would be very welcome. Short of doing that, your options are:
- Defining a custom file, like you did.
- Defining a fallback language, so that the messages show in e.g. English if they are not available in your chosen language.
- Live with the missing translations.
from devise-i18n.
Gotcha. I've contributed to the zh-TW translations for these two strings on localeapp. Would be great to see them in the next pull 😃
from devise-i18n.
Done in ed81f29. 謝謝!
from devise-i18n.
Thanks!
from devise-i18n.
Related Issues (20)
- shared error message downcases model
- Missing translation HOT 1
- Flash messages not localized HOT 2
- Wrong scoped views generation? HOT 6
- [question] How to set the Devise locale for current request (in a thread safe manner)? HOT 5
- add "confirmed" to i18n HOT 4
- Missing message when mail is unconfirmed in mailer email_changed HOT 4
- Missing inactive account translation missing HOT 1
- Possibly missing string HOT 2
- Missing partial string `Reset password token` HOT 2
- Merge Esperanto :eo language file HOT 1
- Do devise generated views and locales have to be renamed? HOT 1
- Undefined method 'user_url' HOT 1
- Prepare for Devise 4.9.0 HOT 1
- `registrations/edit` page should have a translated heading
- time not in generated views
- English pluralization of `not_saved` is not consistent with other languages HOT 1
- custom strings HOT 1
- using nokogiri 1.15 breaks devise emails HOT 2
- A proposed addition for the readme.md file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devise-i18n.