Initiative: Building an AI-Driven Translation Automation for antiX

Forum › Forums › antiX-development › Translations › Initiative: Building an AI-Driven Translation Automation for antiX

  • This topic has 27 replies, 4 voices, and was last updated May 17-8:07 am by alkaid.
Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • #204005
    alkaid
    Member

      Introduction:
      I am a DevOps engineer and a long-term fan of antiX. To accelerate the localization of antiX, I’ve developed an automated workflow combining AI and strict engineering constraints.

      Why it matters:
      antiX represents “computing power equality.” With the rise of personal AI assistants, a stable, low-resource Linux base is more critical than ever.

      Current Implementation:

      L1-L3 Injection: Context-aware translation prompts.

      Safety Net: We categorize defects. Fatal syntax/placeholder errors are intercepted by scripts; linguistic nuances are left for community polishing.

      No Pollution: If the automation fails, we rollback. We never merge “AI garbage” into the main branch.

      I’m looking for contributors who understand CI/CD and translation workflows to help refine the verification logic.

      antix-trans-bot project

      • This topic was modified 4 months, 2 weeks ago by alkaid.
      #204052
      Robin
      Member

        Nice idea. We have experimented with automated translation already, but the results were not convincing. Have a look at my git (.pot/.po and .desktop), we started with bashscript and proceeded with pyton, which speeds up things remarkably, but the results of the automated translation subfunctions still are not of much use. Unfortunately I’m not a true programmer (while having learned Fortran F77 many years ago as part of studying engineering in another sector but IT, hardware or software). I have no idea about CI/CD processes nor object oriented programming languages, so I won’t qualify for chiming in to your project, sorry.

        Btw, have you noticed your former postings have been moved to another separate thread meanwhile? There I have already raised some questions concerning AI translation. How can you make sure the AI translations won’t sound ridiculous to native speakers of a language, or e.g. blatantly invert the original meaning, like I regularly observe when running the automatic translator in the antiX translators room at IRC (#antiX-translators on IRC Network Libera.Chat, you may join by using antiX preinstalled hexchat)? Please note, there will come an updated enc.py script version for python 3.13.5 as present on antiX 26 very soon now, fixing some changed syntax requirements from python3 as present in antiX 23. I’m test-running the update currently. If I’m not mistaken the translation errors and inacceptably mangled meaning result precisely because google applies AI here. How could we expect better results from your bot?

        Windows is like a submarine. Open a window and serious problems will start.

        #204053
        alkaid
        Member

          我有注意到没了 多亏我勾选了“Notify me of follow-up replies via email”要不我都不知道您回复了
          对于我来说 没用过这种wordpress做的论坛 用discuz等中国常规方案的的比较多
          我到现在也没有找到除邮件提醒以外的其他通知,我以为的逻辑应该是如图 所以我很困惑大家就靠邮件通知一个帖子的任何回复都提醒这种吗
          I noticed that it was gone, thanks to my checkbox “Notify me of follow-up replies via email”, otherwise I wouldn’t have known your reply
          For me, I have never used this kind of wordpress forum, and there are many conventional Chinese solutions such as discuz
          I haven’t found any other notifications other than email reminders so far, and I thought the logic should be as shown in the picture, so I’m confused that everyone reminds me of this kind of reply to a post by email
          discuz

          这是一种新奇的体验,如果有好的使用方式请告诉我
          It’s a novel experience, let me know if there’s a good way to use it

          #204056
          alkaid
          Member

            您说的转移 是到哪里了呢 我一直没找到跳转链接
            Where did the transfer you said go? I haven’t been able to find the jump link
            您放心 我问过的所有问题都会记录最终整理到wiki
            Rest assured, all the questions I asked will be recorded and eventually organized into the wiki

            #204057
            Robin
            Member

              See above please, your postings came in parallel while I still was updating my original answer with the intended links by and by.

              Windows is like a submarine. Open a window and serious problems will start.

              #204061
              alkaid
              Member

                我了解了 我在antix-trans-bot readme.md有说明一些
                目前中国时间23:26
                等我了解更多一些资料 我会为您进行详细讲述
                我一直双语回复 就是怕出现歧义
                I understand. I have some explanations in antix-trans-bot readme.md
                Current China time 23:26
                I will explain it to you in detail when I know more information.
                I have been bilingual in my reply for fear of ambiguity

                #204064
                Robin
                Member

                  You may want to join the antiX community testing bed at transifex: antiX Contribs Testing
                  If you’d let me know your translator name you use there, I can add you to the testers group so you can test and check out with extended testing permissions your processing there instead of running it on the productive antix-development space.

                  P.S.:

                  I have been bilingual in my reply for fear of ambiguity

                  A really good approach, much appreciated. Marcelo (writing originally in Brazilian Portuguese) does the same, for same reason. Since I write my answers directly in English language, not using any translation service from my native language (besides some manual lookup in dict.leo.org), I actually omit the bilingual copy usually (except for some rare, very critical cases where I can’t avoid ambiguity in English language due to my limited skills as a non native English speaker). Wouldn’t make much sense for me to translate my texts to German first, just to let an online translator create another English version from it 🙂 I reckon that would rather add some extra layer of confusion in most cases if I’d apply this.

                  I’m confused that everyone reminds me of this kind of reply to a post by email

                  I guess you may have activated a notification service in your forum account settings. Or you may have ticked the checkbox reading “Notify me of follow-up replies via email” when posting. Nobody here explicitly sends you a reminder when posting, it is simply an automatic functionality you may enable/disable to your preferences. I never get this kind of reminder, so simply disable it if you don’t want it.

                  • This reply was modified 4 months, 2 weeks ago by Robin. Reason: linkfix

                  Windows is like a submarine. Open a window and serious problems will start.

                  #204073
                  kempelen
                  Member

                    In my language (Hungarian) I have never seen an acceptable machine language translation for any software. For longer texts, like a “user guide” the AI is able to pick up the context from the whole text, and create “well sounding sentences”, resulting in a grammatically good translation. That’s not the case with short words like “Paste” – even if you can load context to some degree. And even in longer user guides, they break menu references like “… and click Add new file” – who knows if the menu is REALLY called “Add new file”.

                    So thank you for that imitative, I won’t need help like this in the Hungarian language.

                    Translating antiX “manually” is not an impossible job. I could say that is the best quality, so if there is a local user in any country, they could join and help. Individual users can choose to use AI “manually” – for example I use DeepL for longer texts, like one or more sentences, and for short texts I write in without thinking much. But of course I review all DeepL results and usually apply 3-5 changes…almost never keep them as-is.

                    However, I must admit, even “human” translations are sometimes totally wrong. Just to give you an example, a local guy went on all “warnings” of the Transifex translation platform, and fixed the translation to satisfy Transifex, even if the resulting translation was PLAIN WRONG. (For examine the missing parenthesis warning on “%n user(s)”, while Hungarian language does not need anything there. We use the same word for “1 user” and “5 users”.)

                    OFF:
                    Robin: regarding programming, maybe you could take advantage of Claude AI (free too) or Claude Code (paid). I started using it about 6 months ago, starting with small scripts (bash, JS) on the web Claude AI interface, even got a feature for my translation program (i.e. https://tmcontext.cmsbazar.hu/antix-linux/antix_boot_syslinux ) written by Claude recently. (A JS script to select and darken areas to exclude form OCR. I’m very beginner in JS, I know only the 2001 version. 🙂 ) Then I got a Pro subscription for Claude Code and it’s very cool. A bit unrelated here, but here on this attached screen I’m discussing my antiX 26 upgrade with Claude, and some video driver issues… so even for this it’s cool. And I have multiple programs already in full production environment at my work that I made with Claude Code. I didn’t write a single line in it, but I examined every line and asked for corrections or clarifications if I didn’t like it. E.g. I could ask Claude Code to see why antixscreenshot2 always creates a screenshots folder in HOME too, not only where I really need it. It can find such things in seconds. 😉 I attach what it said, but I didn’t examine. May be useful for you.

                    Sorry for the offtopic part alkaid,

                    #204138
                    alkaid
                    Member

                      很高兴你能回复kempelen
                      我查询到Hungarian (hu)目前的本地化进度大概是56%
                      既然你拥有Claude code(他会赠送 api token。)并且也在做本地化翻译,也使用 deepL工具,何不在本地跑一下我的程序实际对比一下呢?我觉得至少能减轻一部分工作量。在我的母语中文中,准确率跟效率都相当高,而且目前我只实现了 po文件,它上面基本上都是短语、短句,你可以把ai翻译理解为deepL翻译平替。我做了严格的提示词,尽可能的不多加,也不少加。效果个人感觉比deepL好上一些,你可以拿出认为最难缠的po文件,来个对比测试。目前我并不觉得它能完全代替人工,但是我觉得它能减少人工成本的90%
                      Glad to hear back from you, Kempelen. I’ve found that the localization progress for Hungarian (hu) is approximately 56%.

                      Since you have access to Claude Code which provides API tokens, work on localization and translation projects, and also use DeepL, why not run my program locally for a practical comparison? It will definitely cut down much of your workload.

                      This tool delivers outstanding accuracy and efficiency when working with my native language Chinese. So far it only supports PO files, which mostly consist of short phrases and sentences. You can regard this AI translation tool as a viable alternative to DeepL.

                      I have crafted highly rigorous prompts to ensure translations are concise and faithful to the original text, with no redundant or missing content. Personally, its performance is even better than DeepL. Feel free to test it with your most challenging PO files for a direct comparison.

                      I never claim it can fully replace human translators, yet it is capable of reducing manual workload by around 90%.

                      #204150
                      Robin
                      Member

                        This tool delivers outstanding accuracy and efficiency when working with my native language Chinese.

                        Hi @Alkaid, here you are a reference test object you can check with, whether it returns a functional .po file, actually it belongs to the antiXscreenshot2 tool, and not precisely observing the string instructions and developers notes will definitively cause the script no longer to come up in worst case (we have seen this problem in some languages), or will deface the GUI in best case, so it is hard to use then in this language: antiXscreenshot2 Seems Chinese translation is missing completely still. This is one of the most challenging resources, so it is a fine touchstone for your bot project: Here exist entries, which need carefully observed running text formatting, keeping indentions in position, even when sentences in translation have a different length than in original, requiring to move the line breaks around. Also antiX Control Centre is challenging (some translations caused the script to fail coming up at all, I had to fix lots of entries before they were usable for antiX 26), as well as antiX 23/26 Desktop Files (here it is important to check whether translation doesn’t cause the antiX Main Menu to fail or look otherwise strange on all our supported window managers user can switch between, and also whether they work still in file managers like zzzFM and also in appSelect). Once translated to your language, you should carefully test the result in situ (in a running antiX live system or installed). Here in the translators corner live already some threads with detailed instructions how to do that. If questions, just ask, but since you said you are a DevOps engineer, I guess this testing will be an easy standard task for you, so I won’t bore you with all the details here other translators might need when trying.

                        Windows is like a submarine. Open a window and serious problems will start.

                        #204151
                        Robin
                        Member

                          E.g. I could ask Claude Code to see why antixscreenshot2 always creates a screenshots folder in HOME too, not only where I really need it. It can find such things in seconds. 😉 I attach what it said, but I didn’t examine. May be useful for you.

                          @Kempelen Thanks, your screenshots do look interesting. While this particular case is actually a simple one, which takes merely a couple of minutes to identify for a skilled human script author also when knowing the details about the conditions under which this issue occurs. The presented solution is actually trivial. But it is really interesting for me to see that the AI did actually identify the proper position for the needed fix, and also properly explains the background and logical reasoning. Do you happen to know whether this is a “next generation” AI already, equipped with logical circuitry, allowing stringent reasoning, or is this result still based on statistics merely, thus rendering its outcome more or less accidentally correct merely?

                          Windows is like a submarine. Open a window and serious problems will start.

                          #204155
                          alkaid
                          Member

                            The current performance is similar to reasoning, but in fact it is statistical reproduction, and the correct result is the inevitability of sample matching, not independent logical thinking

                            现在的表现:形似推理、实则统计复刻,结果正确是样本匹配的必然,不是自主逻辑思考

                            • This reply was modified 4 months, 2 weeks ago by alkaid.
                            #204174
                            alkaid
                            Member

                              antix-linux-community-contributions/antix-contribs/language/zh_CN/
                              antix-linux-community-contributions/antix-contribs-testing/language/zh_CN/
                              anticapitalista/antix-development/language/zh_CN/

                              我想知道三者的区别 和有没有一个wiki专门教新人 你们的翻译工作流程是怎样的
                              我目前已知从transifex获取po 翻译po 编译mo 到/usr/share/locale/zh_CN/LC_MESSAGES/
                              从开发角度看 环境一般分为dev stg uat prd, 我想或许你应该提供一个完整的工作流程

                              假设是这样
                              1. 新人先注册并加入antix-linux-community-contributions/antix-contribs/language/zh_CN/
                              2. 下载po翻译或直接用transifex编辑器翻译
                              3. 在antix-contribs-testing中严格测试好 提交到anticapitalista/antix-development
                              4. anticapitalista 集成到antiX linux 26.iso
                              从开源角度看 wiki很重要 如果不够完善 forum会存在大量的重复问题

                              I want to know the difference between the three and whether there is a wiki that teaches newcomers what your translation workflow is
                              I currently know to get the po translation from transifex and the po compile mo to /usr/share/locale/zh_CN/LC_MESSAGES/
                              From a development perspective, environments are generally divided into dev stg uat prd, and I think maybe you should provide a complete workflow

                              Maybe?
                              1. Newcomers sign up and join the antix-linux-community-contributions/antix-contribs/language/zh_CN/
                              2. Download the PO translation or translate directly with the transifex editor
                              3. Rigorously tested in antix-contribs-testing and submitted to anticapitalista/antix-development
                              4. Anticapitalista is integrated into the antiX linux 26.iso
                              From an open source point of view, wikis are very important, and if they are not perfect, there will be a lot of duplication problems in the forum

                              #204184
                              Robin
                              Member

                                Hi @Alkaid,

                                我想知道三者的区别 和有没有 …
                                I want to know the difference between the three

                                Pretty simple:
                                → The official antiX master translation area is anticapitalista/antix-development
                                Here you’ll find all translation resources needed for building current antiX editions and packages, but also all the MX editions are handled here.

                                → The community translation area for community driven uploads and projects in the antiX universe is antix-linux-community-contributions/antix-contribs
                                The Community space is meant as a reservoir for community translation projects, which may or may not be integrated into the official space some day, depending on whether these turn out to be considered as necessary or useful.

                                → And within the community translation area we have established an additional test bed, residing in antix-linux-community-contributions/antix-contribs-testing
                                Please consider all what is found in the test bed as subject of constant change and arbitrary removal, it is really meant for testing purposes merely. For full access to this area you’ll need an invitation, so you can upload and edit your resources for testing, this is why I had asked you above for your translators name at transifex, so I can add you there.

                                As a translator, it is recommended to join antix-development and antix-contribs both, and translate there using either the online translation editor or the donwload_for_translation option transifex provides, using e.g. poedit locally for translation and upload the result later back to transifex (caution, you may easily overwrite this way translations of other translators added while you have been working locally). While, if you plan above that (like you) contributing to and developing translation tools (so you need testing them), or if want to learn managing the transifex antiX translation resources (so you are ready some day to be invited to the antix-development space in the role of a maintainer), then you probably want to join antix-contribs-testing as well.

                                The general workflow is pretty precise described at transifex help pages, e.g. https://help.transifex.com/en/articles/6219670-introduction-to-file-formats and other content found there.

                                No need to rigorously testing in the community or community-test area when manually translating, and also when running automated translation tools which have been proven to work successfully, having been thoroughly tested in the community-test area fist, to avoid mass breakage at the productive space.

                                从开源角度看 wiki很重要 如果不够完善 forum会存在大量的重复问题 …
                                From an open source point of view, wikis are very important, and if they are not perfect, there will be a lot of duplication problems in the forum

                                Sure, but there is always lack of time, so there is no translation wiki still, unfortunately. But if you skim through the threads in the translations forum corner, you’ll find very detailed and precise recipes and instructions for new users who want to start translating at transifex, as I have mentioned above already.

                                Windows is like a submarine. Open a window and serious problems will start.

                                #204195
                                alkaid
                                Member

                                  我这边没翻译对,之前以为是你让我点申请。我这两天每天都点一次。哈哈哈哈哈
                                  My translation wasn’t correct; I initially thought you were asking me to click the application button. I’ve been clicking it every day for the past two days. Hahahaha

                                  alkaidhe

                                  我对于这个版本管理有点疑惑。
                                  antix-contribs-testing 里面内容可以全删,主要作为测试。那为什么还需要权限管理?
                                  antix-contribs 每个人都能加入,都能随意更改,那如何避免有人搞破坏或者小白不经意间的误操作。
                                  antix-development是stable 即prd

                                  就是前两者社区管理规则让我有点疑惑。我没有逻辑自洽

                                  I have some questions about this version control.

                                  The contents of antix-contribs-testing can be completely deleted; it’s mainly for testing. So why is access control still needed?

                                  Anyone can join antix-contribs and make changes freely. How do we prevent malicious activity or accidental misoperations by inexperienced users?

                                  antix-development is stable, i.e., a PRD.

                                  These are the community management rules for the first two sections that I’m confused about. I don’t find them logically consistent.

                                  • This reply was modified 4 months, 2 weeks ago by alkaid.
                                  • This reply was modified 4 months, 2 weeks ago by alkaid.
                                Viewing 15 posts - 1 through 15 (of 28 total)
                                • You must be logged in to reply to this topic.