[wp-trac] [WordPress Trac] #37997: Increase in function calls to get_locale() because of _load_textdomain_just_in_time()
WordPress Trac
noreply at wordpress.org
Mon Nov 14 21:19:16 UTC 2016
#37997: Increase in function calls to get_locale() because of
_load_textdomain_just_in_time()
-------------------------------------------------+-------------------------
Reporter: sharkomatic | Owner: ocean90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.7
Component: I18N | Version: 4.6
Severity: normal | Resolution:
Keywords: needs-testing has-patch needs-unit- | Focuses:
tests | performance
-------------------------------------------------+-------------------------
Comment (by ocean90):
Replying to [comment:27 jrf]:
> > I think we just need to find some better names for the functions. :)
>
> Agreed, I wasn't feeling very creative when I coded it ;-) Suggestions
welcome.
How about `_get_mo_file_path_for_textdomain()` for
`_get_path_to_translation()` and
`_get_mo_file_path_from_wp_lang_dir_for_textdomain()` for
`_get_path_to_glotpress_translation()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37997#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list