إضافة متعددة اللغات :کرہ مع خطوط الطول والعرض:

Hey all, thanks for your patience on this plugin. I’ve now

  1. Fixed the various issues that were arising when using the plugin with the latest code
  2. Updated the frontend and backend tests to support the new code
  3. Integrated it into our CI system to monitor any issues going forward
  4. Re-added it to try.thepavilion.io

try.thepavilion.io is Pavilion’s public staging site that’s updated to the latest discourse every 24 hours. You can see for yourself whether the issue you’re interested in is addressed there, and test the feature set. For example if you have you content languages set to French and Italian, and your interface language (aka locale) set to French, you’ll see this

I’ve closed some old issues on the repo, and asked for the recently created ones (the feature requests in any event) to be submitted at thepavilion.io. Please report any further issues, or make any feature requests using the bug report or feature request wizards on thepavilion.io.

4 إعجابات

An error occurs in the console on the plugin page - /admin/multilingual/languages
Uncaught Error: There is no route named tags.show

And the changes are not saved (Internal Server Error)

إعجاب واحد (1)

Hello @angus,
I have problem on my fresh self-hosted discourse. Every time when I push save changes I get blank modal with “Internal Server Error” title. After hit ok, the plugin page is blank, but settings are saved.
Next, when I try to add other language to exist, the checkboxes which was previously checked after save are uncheck. So when I want to add a new language I must uncheck everything, save, and now check this one which I want.
Also I sometimes notice the settings reset to default just after night.

إعجاب واحد (1)

I’ve merged in an update from vcoffey (sorry Vern, couldn’t find you here), who’s supported by @oreillyc. I’ve also made various updates to the plugin today.

@hiddenlucas Please upgrade and test it again. If you have any further issues please fill out a bug report here: Bug Report

You can test this plugin here: https://try.thepavilion.io/

إعجابَين (2)

Hello,

Is this a bug or on purpose ?

Screenshot from: https://try.thepavilion.io/ but I have the same problem.

The language tag is not appearing in the tag dropdown menu making it difficult to filter topics using the tag. The reason I found is simply because the anchor is missing from the list item: <a data-tag-name="en" class="discourse-tag box">en</a>

If you add it it displays properly:

إعجاب واحد (1)

Thanks, that’s been addressed. See: https://try.thepavilion.io

3 إعجابات

Hi @angus,

Is it possible to select specific interfaced languages that will be shown in the guest language switcher (at header)? Currently the switcher will show many languages in the drop down menu. I didn’t find the code that controls the languages. Any guide will be appreciated.

إعجابَين (2)

لقد عالجت مشكلات التوافق المختلفة مع هذه الإضافة. يرجى تحديث الإضافة و discourse وستعمل كما هو متوقع.

4 إعجابات

أهلاً بك،

شكراً جزيلاً على كل العمل الرائع.

لقد قمت بتثبيت وتفعيل هذا المكون الإضافي ومكون discourse translator الإضافي على منتدى جديد. تعمل واجهة برمجة تطبيقات الترجمة بشكل جيد، لكنني كنت أعتقد أنه سيكون من الممكن بهذا المكون الإضافي عرض المشاركات المترجمة تلقائيًا التي لم يكتبها مستخدم بلغتهم الخاصة - تلقائيًا.

بشكل أساسي، في عالم مثالي مع ترجمات مثالية، سيتصفح شخص يتحدث الفرنسية فقط المنتديات (التي هي، لنقل، باللغة الإنجليزية)، ويرى كل شيء مكتوبًا باللغة الفرنسية.

هل فهمت الوظيفة بشكل خاطئ؟ هل هذا غير ممكن تحقيقه بهذا المكون الإضافي؟

3 إعجابات

إلى كل من تواصل معي مؤخرًا بشأن جعل ترجمات الفئات والعلامات تعمل، أي الميزات الموضحة هنا:

لقد وصلتم في الوقت المناسب :slight_smile: أحد عملاء Pavilion يتطلع حاليًا إلى جعل هذه الوظيفة تعمل على Discourse الحالي، لذا سأعمل أنا و @merefield عليها في مايو/يونيو. سننشر تحديثًا هنا عندما تكون جاهزة.

هذه ليست ميزة للمكون حاليًا، ولكن يمكن إضافتها في المستقبل. يرجى الاطلاع على الوثائق المتعلقة بهذا، وخاصة الجزء المكتوب بخط عريض أدناه. هذا هو ما يفعله التكامل مع مكون المترجم حاليًا.

مزامنة مترجم Discourse

إذا كان لديك:

  1. مكون مترجم Discourse مثبتًا؛
  2. تم تمكين مكون المترجم؛ و
  3. تم تمكين المكون متعدد اللغات؛ و
  4. تم تمكين لغات المحتوى

يمكنك تمكين multilingual translator content tag sync (لن تتمكن من تمكينه إلا إذا كانت جميع الأشياء الأربعة صحيحة).

تطبق المزامنة تلقائيًا لغة المنشورات المكتشفة في موضوع ما كلغات محتوى، طالما تطابقت اللغة المكتشفة مع لغة محتوى ممكّنة على موقعك.

9 إعجابات

مرحباً،

عندما أقوم بتفعيل هذه الإضافة، تظهر علاماتي القديمة خطأ “خطأ في الخادم الداخلي”
لدي هذا الخطأ عند التحقق لاختيار العلامات في المحرر لمنشور جديد.

3 إعجابات

سألقي نظرة على هذا غدًا وسأعود إليك.

إعجابَين (2)

لقد وجدت أيضًا بعض المشاكل مع العلامات هنا:

إعجابَين (2)

@cmdntd تمت معالجة هذه المشكلة، واستخدام المكون الإضافي آمن مرة أخرى. شكرًا لك على تقريرك.

7 إعجابات

مرحباً،

عندما أستخدم هذا المكون الإضافي، فإن خيار “فرض علامات بأحرف صغيرة” يفشل.
لا أقوم بتحديد هذا الخيار، ولكن يتم تغيير جميع العلامات إلى نص بأحرف صغيرة.

هل يمكنك التحقق من ذلك، من فضلك؟

إعجابَين (2)

مرحباً، لقد قمت بتعيين الخيار “multilingual require content language tag

لكنه مطلوب بالنسبة لي (المسؤول) فقط. لا يتطلب من المستخدمين الآخرين علامة اللغة.
هل يمكنك التحقق من هذا، من فضلك؟

لقد تحققت مرة أخرى. إنه على ما يرام الآن

3 إعجابات

يسرني أنك توصلت إلى حل :+1:

ملاحظة فقط أن @merefield يعمل حاليًا على هذه الإضافة، على كل من إصلاحات الأخطاء وميزات الترجمات المخصصة. من المقرر الانتهاء من هذا العمل بحلول نهاية يونيو.

3 إعجابات

حسنًا يا عشاق اللغة، لقد قمنا بدمج بعض الإصلاحات، ونأمل أن يكون المكون الإضافي أكثر فائدة الآن:

أولئك الذين أرادوا دعم اللغات ذات الرموز المختلطة يجب أن يكون لديهم الآن:

@4ong يرجى التأكيد إذا كان هذا يحل مشكلتك

خطأ سمح بظهور علامات محتوى اللغة في صفحة العلامات بشكل غير مرغوب فيه يجب أن يكون قد تم إصلاحه الآن:

كجزء من تركيزنا المتجدد على ضمان عدم ظهور هذه المشكلات مرة أخرى، بذلنا جهدًا لتضمين اختبارات لتغطية هذه السيناريوهات المحددة.

كما هو الحال دائمًا، يرجى التحديث وإخبارنا إذا كنت تواجه أي مشكلات مع هذه السيناريوهات.

6 إعجابات

نعم. أنا سعيد جدا! شكرا!

3 إعجابات

مرحباً. أود بشدة أن أتمكن من ترجمة وصف الفئات. ترجمة أسماء الفئات فقط عديمة الفائدة تقريبًا

إعجابَين (2)