كيفية إصلاح أخطاء الترجمة

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

مثال:


كيف يمكنني إصلاح أخطاء الترجمة بشكل عام؟

إذا حاولت استبدال أي متغير باسمه الأصلي باللغة الإنجليزية، فستظهر لي رسالة الخطأ التالية:

That is because the keys have to be in English (the values in {}).

Good catch on adding this validation @tgxworld!

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

Thanks for stepping in… yes i know that, but i can’t fix it. Can you help?

Sure @tgxworld can help.

OK i’ll wait for @tgxworld to step in and help…

What are the keys that you’re having trouble translating?

It is in the screenshot in the first post. Those substitution words should not be translated.

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

I was requesting for the translation keys for the translation not the interpolation keys. Anyway I think I’ll just write a script to find all the broken translations.

إعجابَين (2)

Ok I’ve added a test to check for translated interpolation keys in our translation files whenever we pull down new translations

https://github.com/discourse/discourse/commit/b9fbc95ef42c3aa722a8dd7e29ddbf5dab83899c

All the broken translations have been fixed on Transifex as well.

6 إعجابات

This is good news @tgxworld Thanks!!! What should we do to fix our discourse installations now?

Upgrade to the lastest version :slight_smile:

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

I would also like to actively join the Greek translation team on Transifex… i already joined the team but at the moment i can only submit translated keys for review. Thanks.

إعجابَين (2)

I just promoted you to Reviewer for Greek (Greece) team. Thanks for keeping Greek translations up-to-date. :heart:

4 إعجابات

I did the upgrade and although some keys seem to be fixed, “invite_forum_mailer.text_body_template” still have translated variables. Can you check that please?

Which branch of DIscourse are you on?

I don’t know… how do i check that?

My version is v1.9.0.beta2 +86

version: tests-passed

Hmm I’m pretty sure the interpolation keys have been corrected. Maybe try rebuilding again?

I rebuilded again but this template still has a problem…