• Hi all,

    I am profiling my site and found that translation related functions take up considerable amount of time.
    The question is — why does WP site tries to load transactions at all? I only have one language — English. I checked and site language setting is English AU. Locale on server is en_AU.

    get_translations_for_domain() takes 350ms
    translate() takes 200ms
    Translation_Entry->__construct() takes 220ms
    _load_textdomain_just_in_time() takes 250ms
    _get_path_to_translation() takes 200ms

    Thanks,
    Rudolf

Viewing 1 replies (of 1 total)
  • Even though you have only one language, it is still located in a file. And the functions for translation are still executed since that’s how you get the text to display. Plugins can change something in the translation at any time.

Viewing 1 replies (of 1 total)
  • The topic ‘Why WP loads translations?’ is closed to new replies.