Translations
Introduction¶
OpenTrack, whether the standard data.opentrack.run or a federation site, such as norway.opentrack.run, is designed to be multilingual.
When on OpenTrack, you can see your chosen language towards the top-right of the page. Clicking the flag will provide a dropdown of options for you to choose from. Click one, and your site will change to the chosen language.
If your required language is not available then please contact support@opentrack.run and we can look to add this for you.
Translating¶
The actual translations cannot be done by OpenTrack, so you will need to work through the translations yourself, or ideally find a volunteer or two who can work through them gradually.
Make sure you are signed up, then contact support@opentrack.run and let us know what language you need to be able to translate.
Once you have access, you will be able to access the translation screen. This sits on a copy of our live website, with a special set of pages for translating.
The image below shows what you will see, but yours will only show the languages you have access to translate.
There are two rows (and two links) to choose from:
- One contains translations of strings contained in Python modules and Django templates. Name is django.po
- The other contains translations found in JavaScript files. Name is djangojs.po
The two links contain text found on different parts of OpenTrack so both need to be translated. You can see from the menu page how much has been translated in both.
Accessing any available link will deliver a paginated view of the translations contained in the corresponding .po file.
Translations with substitutions¶
Formula | Translation | Notes |
---|---|---|
Hello | Hallo | Simple phrases can just be translated |
Dear %s | Hei %s | Basic substitution of a dynamic phrase; you may change the order. %s is where the variable text would go, so if you see it in English, you must include it in the output. |
Invitation to - %(email)s - has been accepted | Invitasjonen til - %(email)s - har blitt godtatt | Expressions like %(email)s allow the system to inject the variable 'email' into the sentence. Do not translate anything in the brackets! Everything in brackets in the source must be present in the translation. |
It can sometimes be difficult to find the translation you want. The search tool does not search for specific contexts or in specific folders, for example. So if the word you are trying to translate is in multiple places on the site, it may take some time to find the correct translation you are looking for. However, if you are looking to translate everything then no problem!
If something is ticked "FUZZY" it will not be translated, so if you think it is correct, just untick it.
When you click SAVE, the files will not update immediately onto the main site; we need to check the syntax, as the phrases contain formulae, and what translators input is not always safe to deploy. If the updates do not show within 24 hours, please let us know, and we can arrange to check and promote it.
Common OpenTrack Phrases¶
To help those starting to translate OpenTrack, we have compiled a list of the most commonly used and important phrases that are best to translate first, and will give the most benefit to those using translation.
Commonly Used Phrases
- Add athlete
- Age Group
- Age Groups
- Age Grp
- Cancel
- Code
- Competition
- Competitor
- Competitors
- Country
- Date
- Delete
- Entries
- Event
- Events
- Exit
- Female
- Filter
- Leagues
- Limit
- Location
- Male
- Manage
- Num
- Organiser
- Rounds
- Save
- Scores
- Search
- Slug
- Submit
- Type
- Update
- Venue
- View
- Website
- Call Room
- Competition Details
- Downloads
- Numbering
- Officials
- Scoring
- Seeding
- Change password
- Logout
- My profile
- PB
- Personal Best
- QP
- Qualifying Performance
- SB
- Season's Best
- Seeding Performance
- SP
- Best
- Bib
- Cat
- Category
- CatPos
- Club
- Date of Birth
- DOB
- First name
- Full name
- Gender
- Last name
- Local Name
- Name
- Nationality
- Non-Scorer
- Ord
- Position
- Result
- Results
- Short name
- Start List
- Start Lists
- Team
- Time
- Weight
- Amount due
- Basket Value
- Due
- Paid
- Paid so far
- Paid?
- Pay
- Price
- Primary Club
- Select Country
- Select Team