mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2910 from SchrodingersGat/translation-ci
Translation CI
This commit is contained in:
commit
cc42977233
10
.github/workflows/translations.yml
vendored
10
.github/workflows/translations.yml
vendored
@ -38,19 +38,11 @@ jobs:
|
|||||||
- name: Make Translations
|
- name: Make Translations
|
||||||
run: |
|
run: |
|
||||||
invoke translate
|
invoke translate
|
||||||
- name: stash changes
|
|
||||||
run: |
|
|
||||||
git stash
|
|
||||||
- name: Checkout Translation Branch
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
with:
|
|
||||||
ref: l10
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git checkout stash -- .
|
git checkout -b l10_local
|
||||||
git reset
|
|
||||||
git add "*.po"
|
git add "*.po"
|
||||||
git commit -m "updated translation base"
|
git commit -m "updated translation base"
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -85,3 +85,6 @@ maintenance_mode_state.txt
|
|||||||
|
|
||||||
# plugin dev directory
|
# plugin dev directory
|
||||||
plugins/
|
plugins/
|
||||||
|
|
||||||
|
# Compiled translation files
|
||||||
|
*.mo
|
||||||
|
@ -2413,7 +2413,7 @@ function showAllocationSubTable(index, row, element, options) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'buttons',
|
field: 'buttons',
|
||||||
title: '{% trans "" %}',
|
title: '',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
|
|
||||||
var html = `<div class='btn-group float-right' role='group'>`;
|
var html = `<div class='btn-group float-right' role='group'>`;
|
||||||
|
2
tasks.py
2
tasks.py
@ -236,7 +236,7 @@ def translate(c):
|
|||||||
manage(c, "compilemessages")
|
manage(c, "compilemessages")
|
||||||
|
|
||||||
|
|
||||||
@task(pre=[install, migrate, translate_stats, static, clean_settings])
|
@task(pre=[install, migrate, translate, static, clean_settings])
|
||||||
def update(c):
|
def update(c):
|
||||||
"""
|
"""
|
||||||
Update InvenTree installation.
|
Update InvenTree installation.
|
||||||
|
Loading…
Reference in New Issue
Block a user