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

Allow custom ts functions in extensions; defer custom ts calls until booted #15411

Merged
merged 4 commits into from
Oct 7, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed style error
  • Loading branch information
bjendres committed Oct 7, 2019
commit ee0d4b03dcffdf002e16b2981608cc294ab3a299
3 changes: 2 additions & 1 deletion CRM/Core/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ function ts($text, $params = []) {
// which would be a waste if we have custom translate function
global $tsLocale;
$current_locale = $tsLocale;
$tsLocale = 'en_US'; // fixme:: use variable?
// fixme:: use variable?
$tsLocale = 'en_US';

// run translation purely for escape/param replacement/etc.
$text = CRM_Core_I18n::singleton()->crm_translate($text, $params);
Expand Down