Replace hard-coded English strings in views with i18n calls#7114
Replace hard-coded English strings in views with i18n calls#7114rawOrlando wants to merge 32 commits intomainfrom
Conversation
|
Putting this down, I will try to do more when time permits. If someone else picks this up, I found I15r to be quite zealous with what it tries to convert, often converting code. So you will have to babysit the changes it tries to make. Also squash down the commits before sending this off to a review. |
Test Results 13 files ±0 13 suites ±0 2h 54m 20s ⏱️ + 4m 25s Results for commit 243cdde. ± Comparison against base commit 2492884. This pull request removes 365 and adds 365 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
@rawOrlando Wow this is a huge contribution on this issue! If it's okay with you, I'm going to convert this to a draft PR so that everyone knows there's still more to do in both views and the locales. But thanks for the big lift so far! |
2831fc3 to
ff39c2a
Compare
|
Thought I found a free api to tranlate instead of google translates, libretranslate. |
61080f0 to
e2c5193
Compare
|
I left these two alone, I think we will need some legal folks to look over any translations of them. |
20e64da to
eb53bb7
Compare
|
script used to create translations https://github.com/samvera-labs/translate_missing/tree/main |
|
@randalldfloyd, is this GitHub set up so that all the commits will be squashed down to one? Should I clean up my commits? |
eb53bb7 to
a9b3041
Compare
Fixes
Part of #1386
Summary
Replace hard-coded English with I18n calls
Guidance for testing, such as acceptance criteria or new user interface behaviors:
View the affected pages locally
Type of change (for release notes)
notes-minor
Detailed Description
Use i15r and manual modification to remove hard-coded English from our views to have localized translations from I18n show
Changes proposed in this pull request:
Replace hard-coded English with I18n calls
Todo:
Only got through some of the view directories
Views
Note: Content_block has some hard-coded English that looks like legal terms. Take care with the translation.
The Instructions to translate require you to get a Google API key. I tried to get one for the Cloud Translation API but was told I would need a credit card and pay. I am not doing that.