Add a language translation for a code definition
If you want to add a language translation for a code definition, here’s how to do it:
- The first step is to get the text so you can change it - so download the content in the RDF ttl-plain format.
- Open the file with a text editor and find rdfs:label. Add the translated text in speech marks immediately followed by @ and the two-character language tag (ISO 639-1 code).
- Keep language entries separated by space - comma - space (the order isn’t important as long as the ; is at the very end).
- Now follow the same process for the dct:description. Note - you can use symbols or unicode.
- Go to GitHub (you will need an account, and to be logged in) and go to https://github.com/wmo-registers/code-manuals/tree/master/typo_fixes
- Make a new file, using the ‘new file’ button.
- Name the file, ending in .ttl
- Copy and paste all the amended text into the new file.
- When you are proposing the new file, add an extended description so we know what you’ve changed.
- Hit the green ‘propose new file’ button.
- Review your change and hit the green ‘create pull request’ button.
- That’s it - thanks!
- Next up we’ll talk to our experts about the change you’ve suggested then evaluate it in our test system.
- We’ll get back to you through GitHub with an update to let you know what’s happening and if there’s further input we’d like from you.
For example:
<http://codes.wmo.int/bufr4/codeflag/0-20-086/6>
a skos:Concept ;
rdfs:label "Slush"@en ;
<http://codes.wmo.int/def/bufr4/fxy>
"020086" ;
dct:description "Snow or ice on the ground that has been reduced to a soft watery mixture by rain, warm temperature, and/or chemical treatment."@en ;
skos:notation 6 .
Becomes:
<http://codes.wmo.int/bufr4/codeflag/0-20-086/6>
a skos:Concept ;
rdfs:label "Neige fondante"@fr , "Slush"@en ;
<http://codes.wmo.int/def/bufr4/fxy>
"020086" ;
dct:description "Neige ou de glace sur le sol qui a été réduite à un doux mélange aqueux par la pluie, la température chaude et / ou le traitement chimique."@fr ,
"Snow or ice on the ground that has been reduced to a soft watery mixture by rain, warm temperature, and/or chemical treatment."@en ;
skos:notation 6 .