glot لـ PrestaShop
التجارة الإلكترونية · موصّل
يتصل glot مباشرةً بـ PrestaShop: يقرأ محتواك ويترجمه وفق مسرد المصطلحات والفحوصات الخاصة بك، ثم يكتب الترجمات في لغات PrestaShop.
خطوات المنصة مكتوبة بالإنجليزية، بأسماء القوائم كما تظهر في واجهة PrestaShop.
ربط PrestaShop
- In glot, open your project → Integrations → PrestaShop and fill in the connection form (the credentials and permissions it asks for are listed in the docs).
- Click Test connection, then Sync now: glot pulls your content, translates it with your glossary and validation rules, and writes each language back.
- Later changes sync automatically through the webhook URL shown on the card, or on the next scheduled sync.
بديل: الوسم العام
لترجمة ما لا يغطيه تكامل PrestaShop داخل المتصفح، أضف الوسم العام بدلًا من ذلك.
- في glot، أنشئ مشروعًا وأضف لغاتك.
- افتح glot Edge ← وسم الموقع وأدخل عنوان موقعك: يترجمه glot ويعرض عليك معاينة. بعد لصق الوسم، تحقق من التثبيت في المكان نفسه ثم فعّل الوسم.
- انسخ وسمك من ذلك التبويب: فهو يتضمن مشروعك ومفتاحه العام (data-key). يوضح الوسم أدناه شكله.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Create a child theme of your current theme: a folder in /themes/ with config/theme.yml containing name: (the folder name) and parent: (your theme's name).
- In the child theme, create templates/_partials/head.tpl starting with {extends file='parent:_partials/head.tpl'}.
- Override one of the head blocks (for example javascript_head), call the parent content, and add the glot tag.
- Activate the child theme in the back office (Design > Theme & Logo).
- Clear the cache and check a front-office page.
الخطط المطلوبة
PrestaShop is self-hosted open source; available on any install where you can upload theme files. The back office has no built-in field for custom head scripts.
من جهة glot، راجع صفحة الأسعار لمعرفة ما تتضمنه كل خطة. glot Edge (الروابط المترجمة) جزء من خطة Growth، مع تجربة محدودة في Pro.
روابط مترجمة لمحركات البحث
للحصول على صفحات مترجمة تفهرسها محركات البحث دون تشغيل JavaScript، ضع glot Edge على نطاق فرعي من نطاقك (es.example.com) بسجلّي DNS:
es.example.com. CNAME edge.glotlang.com.
_glot.es.example.com. TXT "<token shown in the dashboard>"Add the CNAME and TXT wherever your domain's DNS is hosted (registrar or hosting provider).
كيف يعمل glot Edgeأسئلة
- هل glot شريك لـ PrestaShop؟
- لا. glot مستقل، وليس تابعًا لـ PrestaShop ولا معتمدًا منه. يستخدم هذا الدليل ميزات PrestaShop القياسية فقط.
- هل يغيّر glot محتواي على PrestaShop؟
- يبقى محتواك الأصلي كما هو. يكتب glot الترجمات في حقول اللغات في PrestaShop، حيث يمكنك مراجعتها قبل النشر.
- هل ستفهرس محركات البحث ترجماتي؟
- ليس بالوسم وحده: فهو يترجم في المتصفح، لذا تفهرس محركات البحث لغتك الأصلية في الغالب. تحتاج الصفحات المترجمة ذات الروابط الخاصة إلى glot Edge أو إلى منصة تنشر كل لغة على رابط خاص بها.
- Can I use theme.yml assets or custom.js instead?
- custom.js loads at the end of the page, not in the head, and theme.yml assets do not carry the data-* attributes the glot tag needs. A template override keeps the tag exactly as given.
- Why a child theme?
- Editing the parent theme directly is lost when it updates; a child theme overrides only the files you copy.
الوثائق الرسمية لـ PrestaShop
ترجم موقعك على PrestaShop
أنشئ مشروعًا واختر لغاتك واتبع الخطوات أعلاه.
تكاملات أخرى: التجارة الإلكترونية
PrestaShop علامة تجارية لمالكها. glot ليس تابعًا لـ PrestaShop.