コード例 #1
0
 public function saveLanguageMetadata(Gpf_Db_Language $lang)
 {
     $lang->setName($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_NAME));
     $lang->setEnglishName($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_ENG_NAME));
     $lang->setActive(true);
     $lang->setAuthor($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_AUTHOR));
     $lang->setVersion($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_VERSION));
     $lang->setImported(Gpf_DbEngine_Database::getDateString());
     $lang->setDateFormat($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_DATE_FORMAT));
     $lang->setTimeFormat($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_TIME_FORMAT));
     $lang->setThousandsSeparator($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_THOUSANDS_SEPARATOR));
     $lang->setDecimalSeparator($this->language->getMetaValue(Gpf_Lang_CsvLanguage::LANG_DECIMAL_SEPARATOR));
     $lang->setTranslatedPercentage($this->language->getTranslationPercentage());
     $lang->setIsDefault(false);
     $lang->save();
 }