Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (45 loc) · 2.28 KB

README.md

File metadata and controls

59 lines (45 loc) · 2.28 KB

YTPlayer

YTPlayer is an unofficial YouTube client for SailfishOS.

   

Getting the source

Since YTPlayer uses some extra 3rd party components shipped in git submodules it needs to be cloned with --recursive option. Ex:

Build Prequisites

Building

  1. Paste your YouTube Data API v3 key into a file called youtube-data-api-v3.key and place it in the YTPlayer source directory.
  2. Copy YouTube client ID JSON file into YTPlayer source directory. Rename the file to youtube-client-id.json
  3. Start the SailfishOS SDK.
  4. Load harbour-ytplayer.pro file.
  5. Build and deploy the application to your phone/tablet/emulator.

If translations don't work, try the following:

  1. Select i486/armv7hl > Release > Deploy as ARM package
  2. Build > Clean project "harbour-ytplayer"
  3. Build > Build project "harbour-ytplayer" (or click the hammer icon)
  4. Build > Deploy project "harbour-ytplayer" (or click the play icon)

Translating

If you would like to create a new translation for YTPlayer, this is roughly how it's done:

  • Fork the project
  • Copy translations/en_GB.ts file to your language (e.g. no.ts for Norwgian)
  • Add the new file to translations/translations.pri files TRANSLATIONS section accordingly
  • Translate the new file
    • Qt Linguist comes with Sailfish Application SDK
    • Your generic UTF-8 capable text editor will work, too
  • Test the translation
  • Commit the changes
  • Make a pull request

Or you can avoid forking by just creating a new issue and attach the new translated .ts file in the issue.