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
Internationalize hardcoded text for videos pages #14960
Internationalize hardcoded text for videos pages #14960
Conversation
|
Thank you for opening this PR! We appreciate you! For all pull requests coming from third-party forks we will need to A Forem Team member will review this contribution and get back to |
| @@ -1,4 +1,4 @@ | |||
| <div class="sublist"></div> | |||
| <div class="loading" id="loading-articles"> | |||
| <%= t("dashboard.loading") %> | |||
| <%= t("core.loading") %> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file has already been tokenized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, do you have any suggestions for the fix?
Should I revert this file back and keep the other changes or is there anything else I can improve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can keep the other changes, of course, just remove the ones in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @VictorPS!
|
@VictorPS you should sign the CLA agreement here above and merge |
…ationalize-hardcoded-text-14888
|
Done @rhymes. Thank you! |
…ationalize-hardcoded-text-14888
|
@VictorPS there's a failing test that needs addressing, can you run |
…nalize-hardcoded-text-14888
…nalize-hardcoded-text-14888
|
I think I fixed the specs, and it seems like rubocop autofixes changed some other files when I commited as well. |
|
Oh nevermind, I have to fix something. |
|
It should be fine now 👍 |
app/views/videos/new.html.erb
Outdated
| @@ -11,7 +11,7 @@ | |||
| </style> | |||
| <center style="margin-top:200px"> | |||
| <%= stylesheet_link_tag "s3_direct_upload", media: "all" %> | |||
| <h1>🎥 Upload Video File 🙌</h1> | |||
| <h1><%= t(".title") %></h1> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I don't think we have established a practice for this yet, I think I'd prefer the full vides.new.title until then.
| <h1><%= t(".title") %></h1> | |
| <h1><%= t("videos.new.title") %></h1> |
app/views/videos/new.html.erb
Outdated
| <p> | ||
| <strong>Video is beta:</strong> <%= t("contact_prompts.if_any_questions_html") %> | ||
| </p> | ||
| <p><%= t(".beta_info_html") %> <%= t("contact_prompts.if_any_questions_html") %></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above:
| <p><%= t(".beta_info_html") %> <%= t("contact_prompts.if_any_questions_html") %></p> | |
| <p><%= t("videos.new.beta_info_html") %> <%= t("contact_prompts.if_any_questions_html") %></p> |
…nalize-hardcoded-text-14888
|
@citizen428 I just fixed the issues you pointed out. |
…nalize-hardcoded-text-14888
What type of PR is this? (check all applicable)
Description
Related to this issue: #14888
Moving texts from the views inside the
app/views/videosdirectory into translations.I also did some refactoring because the "loading..." translation was being used on another view as well.
I am open to suggestions on this PR especially on the French translations since I don't know much French 😄.
QA Instructions, Screenshots, Recordings
videos#index:
videos#new:
[optional] What gif best describes this PR or how it makes you feel?