Skip to content

feat(tx): migrate Transifex config from legacy files to YAML format#374

Merged
lzwind merged 1 commit intolinuxdeepin:masterfrom
lzwind:master
Apr 3, 2026
Merged

feat(tx): migrate Transifex config from legacy files to YAML format#374
lzwind merged 1 commit intolinuxdeepin:masterfrom
lzwind:master

Conversation

@lzwind
Copy link
Copy Markdown
Contributor

@lzwind lzwind commented Apr 3, 2026

Replace old deepin.conf and ts2desktop scripts with modern transifex.yaml configuration for better maintainability.

从旧版配置文件迁移到新的YAML格式,提高可维护性。

Log: 迁移Transifex配置到YAML格式

Summary by Sourcery

Migrate Transifex integration to a YAML-based configuration under .tx/transifex.yaml and remove the legacy deepin.conf and ts2desktop setup.

Enhancements:

  • Introduce a structured transifex.yaml configuration defining QT translation file filters and PR branch naming.
  • Remove obsolete Transifex configuration files deepin.conf and ts2desktop from the repository.

Replace old deepin.conf and ts2desktop scripts with modern transifex.yaml
configuration for better maintainability.

从旧版配置文件迁移到新的YAML格式,提高可维护性。

Log: 迁移Transifex配置到YAML格式
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Apr 3, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Migrates Transifex configuration from legacy .tx/deepin.conf and ts2desktop helper script to a single modern .tx/transifex.yaml file defining QT translation file filters and PR branch naming settings.

Sequence diagram for Transifex PR creation using YAML config

sequenceDiagram
  participant DevRepo
  participant TXConfig as TXConfig_transifex_yaml
  participant TransifexCLI
  participant TransifexService
  participant GitHost as Git_host

  DevRepo->>TXConfig: Provide transifex_yaml with filters and pr_branch_name
  DevRepo->>TransifexCLI: Run tx_push_pull_commands
  TransifexCLI->>TXConfig: Read filters and pr_branch_name_pattern
  TransifexCLI->>TransifexService: Push source files translations/deepin-compressor_ts and desktop_ts
  TransifexService-->>TransifexCLI: Return updated translations
  TransifexCLI->>DevRepo: Write updated translation_files
  TransifexCLI->>GitHost: Create branch transifex_update_<br_unique_id>
  GitHost-->>DevRepo: Branch with updated translations
  GitHost-->>DevRepo: Open pull_request from transifex_update_<br_unique_id>
Loading

File-Level Changes

Change Details Files
Introduce a modern Transifex YAML configuration defining QT translation filters and PR branch naming.
  • Add .tx/transifex.yaml with SPDX header and CC0-1.0 license identifier
  • Configure file-based filters for main compressor translations and desktop-related translations using QT format and en_US as source language
  • Set Transifex setting for autogenerated PR branch name pattern transifex_update_<br_unique_id>
.tx/transifex.yaml
Remove legacy Transifex configuration and helper script no longer needed with YAML config.
  • Delete legacy .tx/deepin.conf configuration file
  • Delete .tx/ts2desktop helper script that previously handled desktop translation mapping
.tx/deepin.conf
.tx/ts2desktop

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind, wyu71

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lzwind lzwind merged commit eccf059 into linuxdeepin:master Apr 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants