elgg

In elgg chinese language not loading?


I am use elgg 1.8. in that i use zh means Chinese language. in one page i need a page without header and footer so i just make a page handler and echo content with elgg_echo function. it work with the en (English) language but when i change to zh it's display a garbage values.

I am also use this trick for that

echo elgg_echo('user:chinese_zodiac','zh');

but it works on en language but not for zh. this function also display same garbage value like this 生肖 but i want text like 生肖.


Solution

  • Thanks, guys trying to help me. but finally i got the trick.

    I am use this function or trick to handle this problem...

    reload_all_translations();
    

    This function reload all translations from all registered paths. This is only called by functions which need to know all possible translations.