Project:Terminology gadget/vi

The terminology gadget enables translators to store translations and usage notes in a central place, and displays those translations and usage notes to translators when they are translating. Terms that have a definition will appear with a different background color in the English source message, giving a visual clue to translators that there is a definition in their language for that term.
Tiện ích được bật cho mọi người theo mặc định; nếu bạn muốn tắt tính năng này, bạn có thể thực hiện bằng cách truy cập "Gadgets" trong tùy chọn của bạn.
Background
Động lực để tạo tiện ích này đến từ các cuộc nói chuyện trong Hội nghị nút thắt Bắc Cực 2021, trong đó một số người dùng đã đề cập đến khó khăn khi dịch một số thuật ngữ nhất định sang các ngôn ngữ nhỏ hơn. Một số ngôn ngữ có thể không có thuật ngữ cho một số thuật ngữ kỹ thuật được sử dụng nhiều trong MediaWiki, như “tập tin” hoặc “thể loại”. Do đó, họ có thể cần thảo luận xem họ nên sử dụng thuật ngữ nào cho các thuật ngữ đó – và ngay cả khi họ đi đến kết luận, người dịch tiếp theo sẽ không nhất thiết biết nên sử dụng thuật ngữ nào khi dịch cùng một thuật ngữ nếu họ không biết về các cuộc thảo luận trước đó.
The need for consistent terminology isn't only limited to smaller languages, however. All languages can have multiple translations for the same terms in English, and staying consistent within the same context is always an advantage.
How it works
The gadget works on the English source messages, and scans them for terms that have been defined for the current language. If it finds any, it marks the term with a background color according to the legend. If you hover one of these terms, you will be shown the translation and, if they exist, the usage notes that have been defined for that term. You will also see a menu icon that you can click to edit the definition, or start a discussion about it.
When you add or edit a term, the definition will be saved to a subpage of your language's portal called terminology.json. See Portal:Nb/terminology.json and Portal:Sms/terminology.json for a couple of examples, or try this search for a full list of terminology pages. These JSON pages are not meant to be edited manually, but it's possible when absolutely necessary.
When editing the "translation" or "usage notes" field, you can use full wiki syntax – you can even use parser functions and templates if necessary.
"Redirect languages"
It is possible to set an entire language code to redirect to another. This can be useful in cases of language variants where the terminology used should be shared between several variants. For example, the language codes de (German) and de-ch (Swiss German) should probably share the same terminology, so de-ch could be set as a redirect to de.
For languages with variant redirects, you can use the special "magic word" $VARIANT in the translation and usage notes field in the gadget, if you wish to show or highlight different things for different variants.
Legend
- Term – terms marked like this have a translation saved for the current language.
- Thuật ngữ – các thuật ngữ được đánh dấu như thế này có đính kèm ghi chú sử dụng.
- Thuật ngữ – các thuật ngữ được đánh dấu như thế này đang được thảo luận trên trang thảo luận của cổng thông tin ngôn ngữ. Họ cũng có thể đã đính kèm bản dịch và/hoặc ghi chú sử dụng.
Gallery
- What it looks like when you hover a term that has a definition.
- What it looks like when you hover a term that doesn't have a definition.
- The dialog for adding a new term.
- The dialog for editing an existing term.
- The dialog for starting a discussion about a term on the portal talk page.
- How the terminology list page looks like.
- What the entry in the portal talk page looks like.
Mã nguồn
The source code for the gadget is at MediaWiki:Gadget-terminology.js, with some additional CSS at MediaWiki:Gadget-terminology.css.
Feedback
If you have any feedback, comments or bug reports regarding the gadget, please post them on the talk page.


