Jump to content

Rebuild language from xml


Recommended Posts

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...';
		}
Link to comment
Share on other sites

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".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...