Giter Site home page Giter Site logo

kop_locale's Introduction

KoP_Locale

Localization for Kingdom of Pixels ! https://leagueofpixels.eu

GIT TUTORIAL

  1. You need github account, create one if you dont have any
  2. As first you need to install GIT: Link here https://git-scm.com/downloads
  3. FORK My repository (On the top right corner is FORK button)
  4. Now you need to clone forked repository. After fork click on the GREEN CODE button and copy the link that it shows.
  • For example: https://github.com/(your githubname)/KoP_Locale.git
  • Now go to folder on your computer where you will clone the repository for example C:\github\
  • Right click the folder and open GIT BASH HERE. It will open GIT TERMINAL
  1. now inside console press following command

    • git clone https://github.com/(your githubname)/KoP_Locale.git
  2. Now you need also let github know who are you inside a GIT TERMINAL Press following commands

    • git config --global user.name "Your Name"
    • git config --global user.email "Your GITHUB Email"
  • ! Now Close the terminal
  1. It will download repository and code inside, close the terminal open the folder/repository in C:\github\KoP_Locale\
  • You will add new translation to these files based on the example.
  • When you finish translation and you will be ready to send it for review lets go to next step
  1. Open GIT terminal again but now with RIGHT CLICK on KoP_Locale folder (Right click and then click on GIT BASH HERE)

  2. Inside a TERMINAL you will type following commands

    • git pull
    • git commit -a -m "Your message for us, what you have changed?"
    • git push

You will get similar message:

Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 466 bytes | 233.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/saqirmdevx/KoP_Locale.git
   2b6328a..d2a6fb9  testing -> testing
  1. Open https://github.com/saqirmdevx/KoP_Locale/pulls this link and click on CREATE NEW PULL REQUEST, then you will click on CREATE NEW PULL REQUEST again, you can write here a message for us and title. Your changes will be reviewed by our developers! If it will be correct, it will be pushed to the live repository.

What if i made futher changes?

  • If you wanna push next changes (Futher changes) you will just change the cloned repository, after you finish your changes you will again use these commands:
  • git commit -a -m "....Message"
  • git push

and then repeat 10th step.

Explaining following commands

  • git pull - (Update your code on your computer with repository / if someone else made any change you must be up dated)
  • git commit -a -m "message" - Prepare a commit with message
  • git push - Push changes to the repository

How to add translation?

Consider following example: default_spell.ts

/** Bunninja */
case Shared.SpellList.BUNNINJA_AUTOATTACK:
   return {
      en: `Bunninja slashes with his carrot and deals  ${getDamage(BunninjaAbilityData.AUTOATTACK_DAMAGE_MOD * damage)} damage.`,
      ru: `Банниндзя взмахивает своей морковью, нанося ${getDamage(BunninjaAbilityData.AUTOATTACK_DAMAGE_MOD * damage)} физического урона.`,
   }

You are looking only at the returning part, all datas inside ${ .. } are constants (values taken from a game engine) If you wanna add new language you will do this (consider SK lang)

/** Bunninja */
case Shared.SpellList.BUNNINJA_AUTOATTACK:
   return {
      en: `Bunninja slashes with his carrot and deals  ${getDamage(BunninjaAbilityData.AUTOATTACK_DAMAGE_MOD * damage)} damage.`,
      ru: `Банниндзя взмахивает своей морковью, нанося ${getDamage(BunninjaAbilityData.AUTOATTACK_DAMAGE_MOD * damage)} физического урона.`,
      sk: `Your translated text to your language ${CONSTANT_VALUE}`,
   }

kop_locale's People

Contributors

bruhzyplayer avatar conjurador avatar gandelxiv avatar saqirmdevx avatar tancredekop avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.