Skip to content

Translation Update Hotfix Release

Gareth Rees edited this page Oct 28, 2021 · 18 revisions
# Checkout master and update it
git checkout master
git fetch origin
git rebase origin/master

# Check out a new hotfix branch (e.g. hotfix/0.21.0.37)
git checkout -b hotfix/x.x.x.x

# Download the current translations
# Install transifex-client: https://docs.transifex.com/client/installing-the-client
tx pull -a -f

# Convert the translations to a standard msgmerge format and commit them
# NOTE: Check the translations for XSS insertion
# IMPORTANT: there's no revision history in Transifex!
bundle exec rake gettext:clean
bundle exec rake gettext:clean_alaveteli_pro

# You may need to manually remove obsolete msgids
# https://gist.github.com/crowbot/2a2e576d791ceac5f24f564f1d32db89
find locale/* -name *.po | xargs -I % msgattrib --no-obsolete -o % %
find locale_alaveteli_pro/* -name *.po | xargs -I % msgattrib --no-obsolete -o % %

bundle exec rake gettext:remove_fuzzy
bundle exec rake gettext:remove_fuzzy_alaveteli_pro
bundle exec rake gettext:clean
bundle exec rake gettext:clean_alaveteli_pro

git add locale
git add locale_alaveteli_pro
git commit -m 'Update translations'



#
# Add some release notes to doc/CHANGES.md
#

#
# Bump the ALAVETELI_VERSION constant in config/initializers/alaveteli.rb
#

# Merge the hotfix branch
git checkout master
git merge --no-ff hotfix/x.x.x.x

# Tag the release
git tag -a x.x.x.x -m 'x.x.x.x'

# Make the release
git push origin master
git push origin refs/tags/x.x.x.x

# Update develop
git checkout develop
git fetch origin
git rebase origin/develop
git merge --no-ff master
git push origin develop

Add the release details to the GitHub releases page.

To update WDTK, follow the guide on updating WDTK.

Clone this wiki locally