-
Notifications
You must be signed in to change notification settings - Fork 131
tradução de como o I18n funciona no Ruby on Rails #731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
luccadittrich
wants to merge
2
commits into
campuscode:main
Choose a base branch
from
luccadittrich:como-funciona-I18n
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,17 +31,17 @@ Este documento o guiará pela API I18n e contém um tutorial sobre como internac | |
|
|
||
| NOTE: The Ruby I18n framework provides you with all necessary means for internationalization/localization of your Rails application. You may, also use various gems available to add additional functionality or features. See the [rails-i18n gem](https://github.com/svenfuchs/rails-i18n) for more information. | ||
|
|
||
| How I18n in Ruby on Rails Works | ||
| Como o I18n funciona no Ruby on Rails | ||
| ------------------------------- | ||
|
|
||
| Internationalization is a complex problem. Natural languages differ in so many ways (e.g. in pluralization rules) that it is hard to provide tools for solving all problems at once. For that reason the Rails I18n API focuses on: | ||
| Internacionalização é um problema complexo. Idiomas naturais são diferentes de tantas maneiras (por exemplo, nas regras do plural) que é difícil fazer ferramentas para solucionar todos os problemas de uma vez só. Por este motivo a API I18n do Rails foca em: | ||
|
|
||
| * providing support for English and similar languages out of the box | ||
| * making it easy to customize and extend everything for other languages | ||
| * dar suporte para o inglês e outros idiomas parecidos prontos para uso | ||
| * facilizar a personalização e estender tudo para outros idiomas | ||
|
|
||
| As part of this solution, **every static string in the Rails framework** - e.g. Active Record validation messages, time and date formats - **has been internationalized**. _Localization_ of a Rails application means defining translated values for these strings in desired languages. | ||
| Como parte desta solução, **toda string estática no framework de Rails** - por exemplo, validações de mensagens no Active Record, formatos de hora e data - **foram internacionalizados**. _Localization_ de uma aplicação Rails significa difinir valores traduzidos para essas strings nos idiomas desejados. | ||
|
|
||
| To localize store and update _content_ in your application (e.g. translate blog posts), see the [Translating model content](#translating-model-content) section. | ||
| Para localizar armazenamento e atualizar _content_ na sua aplicação (por exemplo, traduzir posts de blogs), veja a sessão [Traduzindo o conteúdo do model](#translating-model-content). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eu fiquei com a impressão que na versão oficial ficou faltando uma virgula aqui, será? Algo como "Para localizar, armazenar e atualizar conteúdo. |
||
|
|
||
| ### The Overall Architecture of the Library | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.