Skip to content
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

Fix Formatting of org_types_tooltip for translation.io #3355

Open
aaronskiba opened this issue Oct 24, 2023 · 0 comments
Open

Fix Formatting of org_types_tooltip for translation.io #3355

aaronskiba opened this issue Oct 24, 2023 · 0 comments
Assignees

Comments

@aaronskiba
Copy link
Contributor

org_types_tooltip = _(
  'This information can only be changed by a system administrator. Contact %{support_email} if you have questions or to request changes.' % { support_email: Rails.configuration.x.organisation.email}
  )

To get the translation working, the above string (here) will have to be modified to the following:

org_types_tooltip = _(
  'This information can only be changed by a system administrator. Contact %{support_email} if you have questions or to request changes.') % { support_email: Rails.configuration.x.organisation.email}
$ rails c
Running via Spring preloader in process 2775113
Loading development environment (Rails 6.1.7.6)
irb: warn: can't alias context from irb_context.
2.7.6 :001 > I18n.locale = :"fr-CA"
 => :"fr-CA" 
2.7.6 :002 > _(
2.7.6 :002 > _(
2.7.6 :003 >   'This information can only be changed by a system administrator. Contact %{support_email} if you have questions or to request changes.' % { support_email: Rails.configuration.x.orga
nisation.email}
2.7.6 :004 > )
 => "This information can only be changed by a system administrator. Contact dmp-assistant@tech.alliancecan.ca if you have questions or to request changes." 
2.7.6 :005 > _(
2.7.6 :006 >     'This information can only be changed by a system administrator. Contact %{support_email} if you have questions or to request changes.') % { support_email: Rails.configuration.x.o
rganisation.email}
 => "Ces informations ne peuvent être modifiées que par un administrateur système. Contactez dmp-assistant@tech.alliancecan.ca si vous avez des questions ou pour demander des modifications." 
2.7.6 :007 > 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant