nomic-ai / gpt4all

GPT4All: Chat with Local LLMs on Any Device
https://gpt4all.io
MIT License
67.67k stars 7.44k forks source link

[Feature] to add Chinese simplified translation based on v3.0 #2550

Open wuodoo opened 2 weeks ago

wuodoo commented 2 weeks ago

Feature Request

I want to add Chinese simplified translation based on v3.0

but not found the way to add ,cmake file without translation link

If the application provides base translation like i18n files even like empty files ,maybe many contributors want to add the localization .

AndriyMulyar commented 2 weeks ago

@manyoso what could we do to enable folks to hit the localization goals in the roadmap? Instructions?

supersonictw commented 2 weeks ago

Screenshot

I would like to help the traditional chinese one. We need the i18n file (ts or something likes) to translate the texts on the new UI.

Maybe you can use Weblate?

https://doc.qt.io/qt-6/i18n-source-translation.html https://docs.weblate.org/en/latest/formats/qt.html

The TS file example:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="es_ES">
<context>
    <name>QObject</name>
    <message>
        <location filename="main.cpp" line="52"/>
        <source>about...</source>
        <translation>acerca de...</translation>
    </message>
    <message>
        <location filename="main.cpp" line="53"/>
        <source>Hello world!
Live long and prosper!</source>
        <translation>¡Hola mundo!
¡Larga vida y prosperidad!</translation>
    </message>
</context>
</TS>
wuodoo commented 2 weeks ago

I have translated base v2.8 with ts file and trans to qm files,but when I  put it on the translations folder ,it does not work,so I want to know how to add i18n file and reload the views 

------------------ Original ------------------ From: 不知火 Shiranui @.> Date: Thu,Jul 4,2024 5:51 PM To: nomic-ai/gpt4all @.> Cc: wuhanodoo @.>, Author @.> Subject: Re: [nomic-ai/gpt4all] [Feature] to add Chinese simplifiedtranslation based on v3.0 (Issue #2550)

default.png (view on web)

I would like to help the traditional chinese one. We need the i18n file (ts or something likes) to translate the texts on the new UI.

Maybe you can use Weblate?

https://doc.qt.io/qt-6/i18n-source-translation.html https://docs.weblate.org/en/latest/formats/qt.html

The TS file example: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="es_ES"> <context> <name>QObject</name> <message> <location filename="main.cpp" line="52"/> <source>about...</source> <translation>acerca de...</translation> </message> <message> <location filename="main.cpp" line="53"/> <source>Hello world! Live long and prosper!</source> <translation>¡Hola mundo! ¡Larga vida y prosperidad!</translation> </message> </context> </TS>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

manyoso commented 1 week ago

Can you see this PR: https://github.com/nomic-ai/gpt4all/pull/2612

Do you have a ts file that includes your translations please? I'll be pushing that change and the subsequent TS files into the main github repository shortly as soon as I have a document outlining how users can add translations.

manyoso commented 1 week ago

This PR has now landed. You can see here how to contribute translations for chinese which will be our first target for a foreign language support: https://github.com/nomic-ai/gpt4all/blob/main/gpt4all-chat/contributing_translations.md

Also, you can coordinate with other contributors who might be working on this translation as well through discord. The link to discord is https://discord.gg/4M2QFmTt2k

manyoso commented 1 week ago

A chinese translation file has now landed in main and people are working to improve it. Closing.

manyoso commented 3 days ago

Hello @wuodoo,

We are in need of a maintainer for our zh_CN.ts file - https://github.com/nomic-ai/gpt4all/blob/main/MAINTAINERS.md - would you be able to maintain it?

If so can you respond to my email address in that file and let me know?

wuodoo commented 1 day ago

ok,I will have a try to help translations

wuodoo commented 1 day ago

reopen , find some words was not translated,please let me maintain it

wuodoo commented 1 day ago

ok, I would like to help maintain the project ,please let join the project to be a contributor.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年7月20日(星期六) 凌晨3:12 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [nomic-ai/gpt4all] [Feature] to add Chinese simplified translation based on v3.0 (Issue #2550)

Hello @wuodoo,

We are in need of a maintainer for our zh_CN.ts file - https://github.com/nomic-ai/gpt4all/blob/main/MAINTAINERS.md - would you be able to maintain it?

If so can you respond to my email address in that file and let me know?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

manyoso commented 22 hours ago

Hello @wuodoo , I very much welcome your volunteering for maintaining this, but the current rule is that you have to email me from your own email account and not through github. Let me know your name and your email. If you don't wish these to be listed in the Maintainers file that can be okay. Let me know please! You can email me at 'adam@nomic.ai'