diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 24106c028e..044187e135 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -38,19 +38,11 @@ jobs: - name: Make Translations run: | invoke translate - - name: stash changes - run: | - git stash - - name: Checkout Translation Branch - uses: actions/checkout@v2.3.4 - with: - ref: l10 - name: Commit files run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git checkout stash -- . - git reset + git checkout -b l10_local git add "*.po" git commit -m "updated translation base" - name: Push changes diff --git a/.gitignore b/.gitignore index 6532442dc7..56d4180482 100644 --- a/.gitignore +++ b/.gitignore @@ -85,3 +85,6 @@ maintenance_mode_state.txt # plugin dev directory plugins/ + +# Compiled translation files +*.mo diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index c971a4d694..4aad54a65a 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -2413,7 +2413,7 @@ function showAllocationSubTable(index, row, element, options) { }, { field: 'buttons', - title: '{% trans "" %}', + title: '', formatter: function(value, row, index, field) { var html = `
`; diff --git a/tasks.py b/tasks.py index 34528e2609..0578f69acd 100644 --- a/tasks.py +++ b/tasks.py @@ -236,7 +236,7 @@ def translate(c): manage(c, "compilemessages") -@task(pre=[install, migrate, translate_stats, static, clean_settings]) +@task(pre=[install, migrate, translate, static, clean_settings]) def update(c): """ Update InvenTree installation.