diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml index 09facc7e0..1c7579ff8 100644 --- a/.github/workflows/transifex.yml +++ b/.github/workflows/transifex.yml @@ -1,4 +1,4 @@ -name: Transifex +name: transifex on: push: @@ -23,10 +23,10 @@ jobs: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash echo "${HOME}/.local/bin" >> $GITHUB_PATH - - run: ./maint/utils/sync-transifex/po-to-transifex.py + - run: ./maint/sync-transifex/po-to-transifex.py env: TX_TOKEN: ${{ secrets.TX_TOKEN }} - - run: ./maint/utils/sync-transifex/hints-to-transifex.py + - run: ./maint/sync-transifex/hints-to-transifex.py env: TX_TOKEN: ${{ secrets.TX_TOKEN }} diff --git a/maint/sync-transifex/hints-from-transifex.py b/maint/sync-transifex/hints-from-transifex.py index bb7309985..eefc6d3bd 100755 --- a/maint/sync-transifex/hints-from-transifex.py +++ b/maint/sync-transifex/hints-from-transifex.py @@ -10,7 +10,7 @@ from translation_utils import create_po4a_config, init_sync_dir RESOURCE_NAME = "mc.hint" SCRIPT_DIR = Path(__file__).parent -SOURCE_DIR = SCRIPT_DIR.parent.parent.parent +SOURCE_DIR = SCRIPT_DIR.parent.parent def unwrap_paragraphs(): diff --git a/maint/sync-transifex/hints-to-transifex.py b/maint/sync-transifex/hints-to-transifex.py index 6ed5fb270..9aa50389d 100755 --- a/maint/sync-transifex/hints-to-transifex.py +++ b/maint/sync-transifex/hints-to-transifex.py @@ -8,7 +8,7 @@ from translation_utils import create_po4a_config, init_sync_dir RESOURCE_NAME = "mc.hint" SCRIPT_DIR = Path(__file__).parent -SOURCE_DIR = SCRIPT_DIR.parent.parent.parent +SOURCE_DIR = SCRIPT_DIR.parent.parent sync_dir = init_sync_dir(SCRIPT_DIR, RESOURCE_NAME) diff --git a/maint/sync-transifex/po-from-transifex.py b/maint/sync-transifex/po-from-transifex.py index 7aeb3ef7f..85c942514 100755 --- a/maint/sync-transifex/po-from-transifex.py +++ b/maint/sync-transifex/po-from-transifex.py @@ -9,7 +9,7 @@ from translation_utils import get_translations, init_sync_dir RESOURCE_NAME = "mc.pot" SCRIPT_DIR = Path(__file__).parent -SOURCE_DIR = SCRIPT_DIR.parent.parent.parent +SOURCE_DIR = SCRIPT_DIR.parent.parent PO_DIR = SOURCE_DIR / "po" diff --git a/maint/sync-transifex/po-to-transifex.py b/maint/sync-transifex/po-to-transifex.py index 654d560e5..972ea573d 100755 --- a/maint/sync-transifex/po-to-transifex.py +++ b/maint/sync-transifex/po-to-transifex.py @@ -8,7 +8,7 @@ from translation_utils import init_sync_dir RESOURCE_NAME = "mc.pot" SCRIPT_DIR = Path(__file__).parent -SOURCE_DIR = SCRIPT_DIR.parent.parent.parent +SOURCE_DIR = SCRIPT_DIR.parent.parent sync_dir = init_sync_dir(SCRIPT_DIR, RESOURCE_NAME)