Project Hospital
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
//NOA
//NOA
Moderator
Posts : 43
Reputation : 9
Join date : 2018-07-18
Age : 25
Location : Germany

Guide - How to translate and save files on Github  Empty Guide - How to translate and save files on Github

Sat Nov 03, 2018 1:15 pm
Message reputation : 100% (2 votes)
This Guide will show you how to translate and save files on Github.

Guide - How to translate and save files on Github  2757First of all, if you are the first translator in your language you can follow >>this Guide<< to setup your translation filesGuide - How to translate and save files on Github  2757

First steps


  • Create a Github account and verify your email adress
  • Open our >>REPOSITORY<<
  • Navigate into your localization-pack (for my example de)
    Inside your pack you'll find XML files. Open that one you want to translate
  • Click on the pencil at the top
    Guide - How to translate and save files on Github  6wIjk4T

  • Now you are in Edit-Mode. At this moment you can write into the files.

Editing the files

At this point you've found a file you want to translate and opened the edit mode. Please be aware! Only edit between
Code:
<Text></Text>
When you are editing a file for the first time, type your name in the Contributors section.
Now go on translate the English sentences in your language

For example:
Code:
<GameDBLocalizedString>      <LocID>OPTIONS_ALLOW_DEATH</LocID>            <Text>Death allowed</Text>  </GameDBLocalizedString>
Guide - How to translate and save files on Github  >
Code:
<GameDBLocalizedString>      <LocID>OPTIONS_ALLOW_DEATH</LocID>            <Text>Tode erlaubt</Text>  </GameDBLocalizedString>

When you are done with your translation make sure you didn't damage the xml - that means you accidentally delete a <,> or /.A good help there is >>This XML validator<< just copy the whole file with ctrl + a and paste it in the validator.

When you think everything is okay, you need to propose the file change
Scroll down to the bottom, there you'll see this:
Guide - How to translate and save files on Github  JBgnUs8

Click on Propose file change

Create a Pull request

To request your changes now in the master code, you'll need to create a pull request. Just click on the next site that showed Guide - How to translate and save files on Github  IOlZ2S1

Now your're done with editing and saving the file - you made a request to us that you want to change your edited lines in your language-pack.

Tips:


If you get more translators from time to time please edit smaller sections and send more requests. That can help you to find any writing and syntax mistakes.

Learn something about Github, to make it easier for you.
hailun2008
hailun2008
medic
Posts : 2
Reputation : 0
Join date : 2018-10-30
Location : China

Guide - How to translate and save files on Github  Empty Re: Guide - How to translate and save files on Github

Sat Nov 03, 2018 6:44 pm
Useful to me,thx! Very Happy
avatar
juraj.horvath
specialist
Posts : 146
Reputation : 8
Join date : 2018-08-07
Age : 44
Location : Bratislava, Slovak Republic

Guide - How to translate and save files on Github  Empty Re: Guide - How to translate and save files on Github

Tue Nov 06, 2018 11:52 am
Thanks for guide Smile
PuckStar
PuckStar
resident
Posts : 20
Reputation : 0
Join date : 2018-09-30

Guide - How to translate and save files on Github  Empty Re: Guide - How to translate and save files on Github

Wed Nov 14, 2018 4:02 pm
About
"Create a Pull request
To request your changes now in the master code, you'll need to create a pull request. Just click on the next site that showed

Now your're done with editing and saving the file - you made a request to us that you want to change your edited lines in your language-pack. "

Don't forget to click on Create Pull request" a second time!!!!!
After you first click it the page changes and you have to click again on pull request.
Sponsored content

Guide - How to translate and save files on Github  Empty Re: Guide - How to translate and save files on Github

Back to top
Permissions in this forum:
You cannot reply to topics in this forum