Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 12, 201311 yr Should have a fallback for langs not present. When the acp is a blank slate, not needing to inspect the dropdown to grab the url to return normality would be helpful. :smile: /* Fallback for the recache all button */ $forceEnglish = IPSCookie::get('forceEnglish'); if ( !$this->lang->words['language_list_recache'] || $forceEnglish ) { $this->lang->words['language_list_recache'] = 'Recache all...'; } in adminapplicationscoremodules_adminlanguagesmanage_languages.php is close, and good for if the cache alone has been thwacked, but sometimes, it's not in the database either: /* Fallback for the recache all and rebuild from xml buttons */ $forceEnglish = IPSCookie::get('forceEnglish'); if ( !$this->lang->words['language_list_recache'] || $forceEnglish ) { $this->lang->words['language_list_recache'] = 'Recache all...'; } if ( !$this->lang->words['rebuild_lang_from_xml'] || $forceEnglish ) { $this->lang->words['rebuild_lang_from_xml'] = 'Rebuild From XML...'; }
May 12, 201311 yr In IPS4 language data is handled by a DAO rather than an associative array, and it behaves in such a way that if a language string is requested that does not exist, it will return the key used to make the request. So in your example, you'll see "rebuild_lang_from_xml".
Archived
This topic is now archived and is closed to further replies.