Created
January 20, 2026 16:33
-
-
Save eklingen88/194bd828b93695e6cbac591d01b579f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/phplib/EtsyModel/ShopListing.php b/phplib/EtsyModel/ShopListing.php | |
| index b97aa0fd1f70..49111b0fff23 100644 | |
| --- a/phplib/EtsyModel/ShopListing.php | |
| +++ b/phplib/EtsyModel/ShopListing.php | |
| @@ -6370,20 +6370,24 @@ public function putTranslationContent(Translation_Machine_Content $content, $sto | |
| if ($content->getVersion() != self::TRANSLATION_CONTENT_VERSION) { | |
| throw new InvalidArgumentException('$content must have version: ' . | |
| self::TRANSLATION_CONTENT_VERSION); | |
| } | |
| $language_id = EP_Locale_LanguageMap::getInstance()->codeToId($content->language); | |
| if (!is_null($language_id)) { | |
| foreach ($content->values as $field => $value) { | |
| $this->setFieldTranslation($field, $value, $language_id); | |
| + | |
| + if ($field === 'title') { | |
| + // TODO create new slug | |
| + } | |
| } | |
| if ($store) { | |
| $this->storeTranslation($language_id, $content->translation_system->getValue()); | |
| $this->update_date = $_SERVER['REQUEST_TIME']; | |
| $this->store(); | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment