Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to fix removed translations without navigating through Transifex UI? #4062

Closed
10110111 opened this issue Jan 8, 2025 · 3 comments
Labels
infrastructure Infrastructure related issues question Just a question, no change in code needed

Comments

@10110111
Copy link
Contributor

10110111 commented Jan 8, 2025

After some typo fixes in the English descriptions of the SCs, which you can list with this command:

git log -6 85028c1684 -- skycultures/*/description.en.utf8

and subsequent synchronization of their translations with Transifex we lost a bunch of translated strings for no good reason. Many of the typo fixes didn't affect the meaning, so shouldn't have invalidated corresponding translations.

Example of such loss:

$ git diff 8648dadfd6^..85028c1684 -- skycultures/anutan/description.zh_TW.utf8 | head -n13
diff --git a/skycultures/anutan/description.zh_TW.utf8 b/skycultures/anutan/description.zh_TW.utf8
index 670ad010b8..fa63959adf 100644
--- a/skycultures/anutan/description.zh_TW.utf8
+++ b/skycultures/anutan/description.zh_TW.utf8
@@ -9,7 +9,7 @@ porau”。 未用作主要航標的未命名恆星稱為“ petuu vare”(愚
 <tr><td>Te Tino A Manu</td><td>鳥的身體</td><td>Sirius (天狼)</td></tr>
 <tr><td>Te Kapakau Tonga</td><td>東方羽翼</td><td>Canopus (老人)</td></tr>
 <tr><td>Te Kapakau Pakatokerau</td><td>北方羽翼</td><td>Procyon (南河三)</td></tr>
-<tr><td>Te Kaokao O Manu</td><td>鳥的腋窩</td><td>四顆小星星的組合,就在鳥身體的東方。</td></tr>
+<tr><td>Te Kaokao O Manu</td><td>鳥的腋窩</td><td>Group of four small stars just east of Manu's Body</td></tr>
 <tr><td>Te Kope</td><td>竹子</td><td>Grus (天鶴座)</td></tr>
 <tr><td>Ara Toru</td><td>三星路徑</td><td>獵戶的腰帶</td></tr>
 <tr><td>Te Angaanga</td><td>鉗子</td><td>金牛的前額</td></tr>

I'd like to reinstate the strings removed (before I can proceed with updating and rebasing #3751). But from what I currently know, it's supposed to be done via Transifex, which would take a lot of time due to the need to navigate its UI for each string.

So, is there any way to fix this all locally, by editing the *.po files, so that they could be uploaded to Transifex after all this?

@alex-w
Copy link
Member

alex-w commented Jan 8, 2025

So, is there any way to fix this all locally, by editing the *.po files, so that they could be uploaded to Transifex after all this?

Use POEdit or Lokalize to edit the *.po files locally and yes, you can upload *.po files to Transifex.

@10110111
Copy link
Contributor Author

10110111 commented Jan 8, 2025

Aha, so I can only upload them one by one, not all at once?

@alex-w
Copy link
Member

alex-w commented Jan 8, 2025

Aha, so I can only upload them one by one, not all at once?

Yes, one by one

@alex-w alex-w added question Just a question, no change in code needed infrastructure Infrastructure related issues labels Jan 8, 2025
@10110111 10110111 closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issues question Just a question, no change in code needed
Development

No branches or pull requests

2 participants