glot لـ WordPress (self-hosted)
أنظمة إدارة المحتوى · إضافة
يُثبَّت glot في WordPress (self-hosted) على شكل إضافة. تشرح الخطوات أدناه إعدادها.
خطوات المنصة مكتوبة بالإنجليزية، بأسماء القوائم كما تظهر في واجهة WordPress (self-hosted).
تثبيت إضافة glot
- Download glot.zip (built from integrations/wordpress-plugin in the glot repository; it isn't on WordPress.org yet). It needs WordPress 6.1+ and PHP 7.4+.
- In WordPress, go to Plugins → Add New → Upload Plugin, upload glot.zip and activate it.
- Open Settings → glot and enter your project slug, your public key (pk_…, never a secret glot_… key), the source language and your languages, then save. The plugin adds glot.js to every front-end page.
- Optional: place the language switcher with the [glot_switcher] shortcode, the glot language switcher widget or block, or the Elementor widget; otherwise it sits in the corner you picked.
- Optional: for translated URLs, set up glot Edge (subdomain or subdirectory) and choose it as the SEO mode, so the plugin adds hreflang links to the Edge pages.
- Optional: click Connect to glot with a glot API token to link the WordPress connector, so translations are also written into Polylang Pro or WPML posts.
بديل: الوسم العام
لترجمة ما لا يغطيه تكامل WordPress (self-hosted) داخل المتصفح، أضف الوسم العام بدلًا من ذلك.
- في glot، أنشئ مشروعًا وأضف لغاتك.
- افتح glot Edge ← وسم الموقع وأدخل عنوان موقعك: يترجمه glot ويعرض عليك معاينة. بعد لصق الوسم، تحقق من التثبيت في المكان نفسه ثم فعّل الوسم.
- انسخ وسمك من ذلك التبويب: فهو يتضمن مشروعك ومفتاحه العام (data-key). يوضح الوسم أدناه شكله.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- In WP Admin, go to Plugins → Add New and install and activate "WPCode – Insert Headers and Footers + Custom Code Snippets".
- Go to Code Snippets → Header & Footer.
- Paste the glot tag into the Header box.
- Click Save Changes.
- Clear any page cache (caching plugin or host) and check a few pages.
الخطط المطلوبة
Available on any self-hosted WordPress install; you need an administrator account that can install plugins.
من جهة 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 records wherever your domain's DNS is managed (registrar, host or Cloudflare). Self-hosted WordPress always runs on a domain you control.
كيف يعمل glot Edgeأسئلة
- هل glot شريك لـ WordPress (self-hosted)؟
- لا. glot مستقل، وليس تابعًا لـ WordPress (self-hosted) ولا معتمدًا منه. يستخدم هذا الدليل ميزات WordPress (self-hosted) القياسية فقط.
- هل يغيّر glot محتواي على WordPress (self-hosted)؟
- يبقى محتواك الأصلي كما هو. تترجم الإضافة الصفحات في المتصفح، وعند ربطها تكتب الترجمات في حقول لغات تراجعها قبل النشر.
- هل ستفهرس محركات البحث ترجماتي؟
- ليس بالوسم وحده: فهو يترجم في المتصفح، لذا تفهرس محركات البحث لغتك الأصلية في الغالب. تحتاج الصفحات المترجمة ذات الروابط الخاصة إلى glot Edge أو إلى منصة تنشر كل لغة على رابط خاص بها.
- Can I edit header.php instead of using a plugin?
- It works, but theme updates overwrite edits to theme files unless you use a child theme. A header/footer plugin survives theme changes.
- My cache plugin serves old pages without the tag.
- Purge the cache after saving the header code.
الوثائق الرسمية لـ WordPress (self-hosted)
ترجم موقعك على WordPress (self-hosted)
أنشئ مشروعًا واختر لغاتك واتبع الخطوات أعلاه.
تكاملات أخرى: أنظمة إدارة المحتوى
WordPress (self-hosted) علامة تجارية لمالكها. glot ليس تابعًا لـ WordPress (self-hosted).