Navigation

    ScreenPlayLogo
    • Register
    • Login
    • Search
    • Recent
    • Popular
    • Gitter
    • Reddit
    • Source Code

    How to add new languages to ScreenPlay step by step guide

    General Discussion
    1
    1
    496
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Kelteseth
      Kelteseth last edited by Kelteseth

      1. Fork ScreenPlay c828e6bd-c77c-4afe-bbe5-8454eec9a83d-grafik.png

      2. Copy a pre exsisting langauge fil and change the name 954cb8a3-ce9b-4ece-bb7d-ebb453a06ae7-grafik.png

      3. Search for your langauge code (french in this example) http://www.lingoes.net/en/translator/langcode.htm

      4. Open your langauge ts ScreenPlay_fr.ts and change the language="??????" to your liking c94a08bb-f962-4989-aaf1-b76f00558fb2-grafik.png

      5. Open your ScreenPlay_fr.ts file via linguist ("C:\Qt\5.14.0\msvc2017_64\bin\linguist.exe") 41f107d7-e27e-4477-b530-03f04eec0c6b-grafik.png

      6. Translate text by text. DeepL can help with some languages https://www.deepl.com/translator 645accbb-04a5-429c-b1d2-07907611f2f7-grafik.png

      7. Add to the ScreenPlay project file 35a4cdd6-1663-43bf-a006-fe3be9f3191b-grafik.png

      8. Add the new langauge to the settings ui

      9. Add to onCurrentIndexChanged

       case "French":
            languageKey = "fr"
      

      10.Add to comboBoxListModel

      ListElement {
         text: "French"
      }
      

      6c8e4031-0a43-4ef4-89f5-24f65981fa71-grafik.png 11. Update Release Translations 383e1a0c-9b4f-4b2f-8ab6-edad7ac4dfdd-grafik.png 12. Add your newly created ScreenPlay_fr.qm to ScreenPlay Rsources.qrc 0057514e-ee49-41b0-9ead-4ced662a400d-grafik.png 11. Commit your changes 12. Create a merge request https://docs.gitlab.com/ee/user/project/merge_requests/

      Example commit https://gitlab.com/kelteseth/ScreenPlay/commit/6c88fc87fb9ce5647316a6757ffd9e49ee3585ad

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      ✨News

      πŸ‘ Vote for ScreenPlay

      πŸ±β€πŸ Godot Engine 3D Wallpaper Guide

      πŸ€– Bulk video import via Handbrake

      Popular Topics

      • B

        Own Video not working with VisualIsPaused

      Get ScreenPlay via Steam