Project:Terminology gadget/pa
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.
The gadget is enabled for everyone by default; if you wish to disable it, you can do so by visiting "Gadgets" in your preferences.
ਪਿਛੋਕੜ
The impetus for creating this gadget came from talks during the Arctic Knot Conference 2021, where some users mentioned the difficulty of translating certain terms into smaller languages. Some languages may not have words for certain technical terms that are used a lot in MediaWiki, like "file" or "category". Because of this, they may need to discuss what word they should use for those terms – and even if they come to a conclusion, the next person who translates wouldn't necessarily know what to use when translating the same term if they aren't aware of the previous discussion.
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.
ਇਹ ਕਿਵੇਂ ਕੰਮ ਕਰਦਾ ਹੈ
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.
"ਮੁੜ-ਵਾਪਸ ਭਾਸ਼ਾਵਾਂ"
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 – ਏਹੋ ਜਿਹੇ ਨਿਸ਼ਾਨਦੇਹੀ ਸ਼ਬਦਾਂ ਦਾ ਮੌਜੂਦਾ ਭਾਸ਼ਾ ਲਈ ਤਰਜਮਾ ਸੰਭਾਲਿਆ ਹੋਇਆ ਹੈ।
- Term – ਏਹੋ ਜਿਹੇ ਨਿਸ਼ਾਨਦੇਹੀ ਸ਼ਬਦਾਂ ਦਾ ਮੌਜੂਦਾ ਭਾਸ਼ਾ ਲਈ ਵਰਤੋਂ ਨੋਟ ਜੁੜੇ ਹੋਏ ਹਨ।
- Term – ਏਹੋ ਜਿਹੇ ਨਿਸ਼ਾਨਦੇਹੀ ਸ਼ਬਦਾਂ ਦਾ ਮੌਜੂਦਾ ਭਾਸ਼ਾ ਦੇ ਫਾਟਕ ਗੱਲਬਾਤ ਸਫ਼ੇ 'ਤੇ ਵਿਚਾਰ ਅਧੀਨ ਹਨ। ਉਹਨਾਂ ਕੋਲ ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਤਰਜਮਾ ਅਤੇ ਵਰਤੋਂ ਦੇ ਨੋਟ ਵੀ ਜੁੜੇ ਹੋ ਸਕਦੇ ਹਨ।
ਬਰਾਮਦਾ
-
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 starting a discussion about a term on the portal talk page.
-
ਸ਼ਬਦਾਵਲੀ ਸੂਚੀ ਵਰਕਾ ਕਿਵੇਂ ਵਿਖਾਈ ਦਿੰਦਾ ਹੈ।
-
What the entry in the portal talk page looks like.
ਸਰੋਤ ਕੋਡ
ਜ਼ਤਰਾਂ ਲਈ ਸਰੋਤ ਕੋਡ MediaWiki:Gadget-terminology.js 'ਤੇ ਹੈ, MediaWiki:Gadget-terminology.css 'ਤੇ ਕੁਝ ਵਾਧੂ CSS ਦੇ ਨਾਲ।
ਸੁਝਾਅ
ਜੇਕਰ ਤੁਹਾਡੇ ਕੋਲ ਜ਼ੰਤਰਾਂ ਦੇ ਸਬੰਧ ਵਿੱਚ ਕੋਈ ਸੁਝਾਅ, ਟਿੱਪਣੀਆਂ ਜਾਂ ਮਾਂਙਣੂ ਇਤਲਾਹ ਹਨ, ਤਾਂ ਕਿਰਪਾ ਕਰਕੇ ਉਹਨਾਂ ਨੂੰ ਗੱਲਬਾਤ ਵਰਕੇ ਉੱਤੇ ਲਿਖੋ।