تخصيص النص: + موضوع جديد

Hi,

Is it possible to customize the text, “+ New Topic”, on a Category basis?

For instance, in one Category, we might want “Introduce Yourself”, in another, “Ask A Question”, in another, “Share Your Story”, etc.

It’s not possible out of the box, but I think it’s possible in a theme component… you’d probably need to add some conditions to the d-navigation.hbs or create-topic-button.hbs template.

سيستخدم هذا المكون من السمات (الذي رعاه بسخاء @outofthebox) مكتبة jQuery لتغيير نص زر الموضوع الجديد. لقد اخترت استخدام jQuery بدلاً من تعديل القالب كما تم اقتراحه أعلاه، لأن هذا أسهل في الصيانة (على الأقل، حسب تجربتي).

يحتوي مكون السمات على إعدادات لتغيير نص الزر حسب اسم الموضوع (slug).
بالنسبة للتصنيفات الفرعية، استخدم الاسم-الأساسي-الاسم-الفرعي.