VirusTotal uses Xcode String Catalog to manage translations, so the following steps are what you need to get started on localizing the app.
You can install Xcode from the Mac App Store or its beta versions on Apple Developer.
- Fork the project on GitHub
- Use git to clone the project from GitHub to your Mac. You can do this by using the git command line tool or GitHub Desktop.
- Open the project and build it
Now you can start to add your own language!
- There are 3 files in total you need to translation.
- Navigate to
VirusTotal -> Localizable.xcstrings
,VirusTotal -> InfoPlist.xcstrings
, andVirusTotal -> ServicesMenu.xcstrings
. These three.xcstrings
files are what you are going to work on. - Click on the
Localizable.xcstrings
file and click the+
button to find a list of available options. If you don't see the language you want to localize on the list (e.g. Canadian English). Scroll all the way down to the bottom of the menu to findMore Languages
. - After you add a language, you can start translating 😉
After you are done with your translations, it's nice to run the app and go over your work. You can set the app language to the one that you did with a simple few clicks.
- Find VirusTotal's icon on the top toolbar of Xcode and click on it
- Click on
Edit Scheme...
- Select the
RUN
tab on the left sidebar and go toOptions
- Scroll down to find
App Language
, then choose the one you localized for - Close the tab and use ⌘R to run the app and see your translations
After you finish checking your localization, it's time to push the changes to GitHub and start a pull request.
- Start a Pull Request. Now you can wait for a maintainer's review and get your translations adopted in the next release version.