<?php if (!CM_Model_LanguageKey::exists('Unable to detect location')) { CM_Model_LanguageKey::create('Unable to detect location'); }
public function testDeleteByName() { CM_Model_LanguageKey::create('foo'); $this->assertTrue(CM_Model_LanguageKey::exists('foo')); CM_Model_LanguageKey::deleteByName('foo'); $this->assertFalse(CM_Model_LanguageKey::exists('foo')); CM_Model_LanguageKey::deleteByName('foo'); }
<?php if (!CM_Model_LanguageKey::exists('No Internet connection')) { CM_Model_LanguageKey::create('No Internet connection'); }