... | ... | @@ -162,24 +162,28 @@ git pull |
|
|
When we make sure that we are not going to need more translations we need to retire a resource. It is important to not keep for translations documents we don't use anymore.
|
|
|
|
|
|
We retire the repository branches to the attic. In this way, we can keep the strings our volunteers translated from us, and we can recover them if we use them again.
|
|
|
|
|
|
`export project='tba-torbrowserstringsdtd'`
|
|
|
```
|
|
|
export project='tba-torbrowserstringsdtd'
|
|
|
```
|
|
|
|
|
|
On your translation-tools repository, remove the line with the resource so the translation bot will not try to get updates, and push the changes:
|
|
|
|
|
|
`vim config` - remove the string
|
|
|
`git add config`
|
|
|
`git commit -m 'retire $project'`
|
|
|
```
|
|
|
vim config
|
|
|
git add config
|
|
|
git commit -m 'retire $project'
|
|
|
```
|
|
|
|
|
|
Then, login to majus and pull the change:
|
|
|
|
|
|
`ssh majus`
|
|
|
`sudo -u translation bash`
|
|
|
`cd /srv/translation.torproject.org/tools`
|
|
|
`git pull`
|
|
|
`cd /srv/translation.torproject.org/translations`
|
|
|
`rm -rf $project`
|
|
|
`rm -rf $project\_completed`
|
|
|
```
|
|
|
ssh majus
|
|
|
sudo -u translation bash
|
|
|
cd /srv/translation.torproject.org/tools
|
|
|
git pull
|
|
|
cd /srv/translation.torproject.org/translations
|
|
|
rm -rf $project
|
|
|
rm -rf $project\_completed
|
|
|
```
|
|
|
|
|
|
Then, you need to remove the project in Transifex through the web interface.
|
|
|
|
... | ... | @@ -187,19 +191,25 @@ Then, you need to remove the project in Transifex through the web interface. |
|
|
|
|
|
Then, you need to push the branch to the attic, and remove it from the translation.git remote repo. In a local copy of the [translation.git](https://git.torproject.org/translation.git) repo, checkout the branch:
|
|
|
|
|
|
`git checkout $project`
|
|
|
`git pull`
|
|
|
```
|
|
|
git checkout $project
|
|
|
git pull
|
|
|
```
|
|
|
|
|
|
(if you do this for the first time, do:
|
|
|
`git remote add attic ssh://git@git-rw.torproject.org/translation-attic.git` )
|
|
|
`git push attic`
|
|
|
```
|
|
|
git push attic
|
|
|
```
|
|
|
|
|
|
The branch $project\_completed is only a subset of this branch, so we don't save it on the attic to save space.
|
|
|
|
|
|
Now, we need to remove the branches from the translation.git repository, to prevent confusion and keep it easier to use. Please make sure to upload to the attic before this step:
|
|
|
|
|
|
`git push origin --delete $project`
|
|
|
`git push origin --delete $project\_completed`
|
|
|
```
|
|
|
git push origin --delete $project
|
|
|
git push origin --delete $project\_completed
|
|
|
```
|
|
|
|
|
|
Make sure you update arthuredelstein if this change affects the [Stats for Tor Project Localization](https://torpat.ch/) he so kindly maintains.
|
|
|
|
... | ... | |