How regularly is the archive with translations in crowdin updates?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Evgeniy
Posts: 241
Joined: Thu Jul 15, 2021 6:10 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Evgeniy » Sat Aug 21, 2021 4:43 pm

sgrogan wrote: Fri Aug 20, 2021 3:49 pm Does the wiki have Bulgarian?
Yes
https://wiki.freecadweb.org/Main_Page/bg

In Crowdin too...
https://crowdin.com/project/freecad/bg

But in application language list not.
User avatar
sgrogan
Posts: 6428
Joined: Wed Oct 22, 2014 5:02 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby sgrogan » Sat Aug 21, 2021 8:55 pm

Evgeniy wrote: Sat Aug 21, 2021 4:43 pm Yes
https://wiki.freecadweb.org/Main_Page/bg

In Crowdin too...
https://crowdin.com/project/freecad/bg

But in application language list not.
Thanks, we need to see why it is not added in the program.
"fight the good fight"
User avatar
Kunda1
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Kunda1 » Sun Aug 22, 2021 3:13 pm

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Kunda1 » Sun Aug 22, 2021 4:04 pm

Code: Select all

$ ./updatecrowdin.py status
27  languages with status > 50%:
    
language: frt
  translation progress: 100%
  approval progress:    28%
language: plt
  translation progress: 100%
  approval progress:    59%
language: det
  translation progress: 99%
  approval progress:    9%
language: es-ESt
  translation progress: 99%
  approval progress:    0%
language: slt
  translation progress: 99%
  approval progress:    0%
language: trt
  translation progress: 99%
  approval progress:    0%
language: eut
  translation progress: 98%
  approval progress:    7%
language: itt
  translation progress: 98%
  approval progress:    3%
language: pt-BRt
  translation progress: 98%
  approval progress:    1%
language: cat
  translation progress: 96%
  approval progress:    0%
language: hut
  translation progress: 96%
  approval progress:    91%
language: nlt
  translation progress: 96%
  approval progress:    0%
language: jat
  translation progress: 91%
  approval progress:    2%
language: rut
  translation progress: 88%
  approval progress:    1%
language: ent
  translation progress: 85%
  approval progress:    76%
language: hrt
  translation progress: 85%
  approval progress:    0%
language: sv-SEt
  translation progress: 80%
  approval progress:    11%
language: pt-PTt
  translation progress: 72%
  approval progress:    14%
language: val-ESt
  translation progress: 72%
  approval progress:    0%
language: fit
  translation progress: 65%
  approval progress:    5%
language: zh-CNt
  translation progress: 65%
  approval progress:    0%
language: cst
  translation progress: 64%
  approval progress:    0%
language: rot
  translation progress: 63%
  approval progress:    0%
language: glt
  translation progress: 56%
  approval progress:    12%
language: elt
  translation progress: 55%
  approval progress:    0%
language: es-ARt
  translation progress: 53%
  approval progress:    0%
language: ukt
  translation progress: 52%
  approval progress:    0%
    
Other languages:
    
language: vit
  translation progress: 47%
  approval progress:    0%
language: idt
  translation progress: 45%
  approval progress:    0%
language: filt
  translation progress: 41%
  approval progress:    0%
language: ltt
  translation progress: 34%
  approval progress:    4%
language: zh-TWt
  translation progress: 32%
  approval progress:    0%
language: bgt
  translation progress: 29%
  approval progress:    0%
language: art
  translation progress: 28%
  approval progress:    0%
language: skt
  translation progress: 25%
  approval progress:    0%
language: kot
  translation progress: 24%
  approval progress:    0%
language: kabt
  translation progress: 22%
  approval progress:    0%
language: srt
  translation progress: 20%
  approval progress:    0%
language: ett
  translation progress: 17%
  approval progress:    0%
language: not
  translation progress: 16%
  approval progress:    1%
language: dat
  translation progress: 14%
  approval progress:    0%
language: hy-AMt
  translation progress: 14%
  approval progress:    0%
language: fat
  translation progress: 13%
  approval progress:    0%
language: aft
  translation progress: 11%
  approval progress:    0%
language: es-COt
  translation progress: 8%
  approval progress:    0%
language: hit
  translation progress: 8%
  approval progress:    0%
language: mst
  translation progress: 7%
  approval progress:    0%
language: tht
  translation progress: 7%
  approval progress:    0%
language: eot
  translation progress: 5%
  approval progress:    0%
language: azt
  translation progress: 4%
  approval progress:    0%
language: mkt
  translation progress: 4%
  approval progress:    0%
language: es-VEt
  translation progress: 3%
  approval progress:    0%
language: het
  translation progress: 3%
  approval progress:    1%
language: ur-PKt
  translation progress: 2%
  approval progress:    0%
language: tat
  translation progress: 1%
  approval progress:    0%
language: yot
  translation progress: 1%
  approval progress:    0%


Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
kisolre
Posts: 3340
Joined: Wed Nov 21, 2018 1:13 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby kisolre » Sun Aug 22, 2021 5:32 pm

So the threshold is 50%? Is there a way for locally activating and using it for testing purposes?
User avatar
Kunda1
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Kunda1 » Sun Aug 22, 2021 6:45 pm

kisolre wrote: Sun Aug 22, 2021 5:32 pm So the threshold is 50%? Is there a way for locally activating and using it for testing purposes?
Yes, let me see where that is documented on the wiki...

Edit: can't find it ATM but basically
1. Create a crowdin account
2. Choose the language you want to test
3. Download the .ts (and .qm file?)
Screenshot_20210822_144725.png
Screenshot_20210822_144725.png (36.81 KiB) Viewed 483 times
4. Create a ~/.FreeCAD/translations/ sub-directory
5. Move said .ts and .qm files in to it
6. Start FreeCAD

Result: The updated language should be available in the Preferences
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
kisolre
Posts: 3340
Joined: Wed Nov 21, 2018 1:13 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby kisolre » Mon Aug 23, 2021 9:41 am

Kunda1 wrote: Sun Aug 22, 2021 6:45 pm Edit: can't find it ATM but basically
Does not work like that :(
Download create a ZIP file with all the .ts/.po files (no .qm files). Extracting that in the preexisting "translations" folder and running FreeCAD results in FreeCAD still showing in the default/selected "English" language. Checking some translated strings still shows them in English.

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.25531 (Git)
Build type: Release
Branch: master
Hash: bf3d86e8b0cc9ade5e5f4f34f1b179f46cf0a425
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Bulgarian/Bulgaria (bg_BG)
Evgeniy
Posts: 241
Joined: Thu Jul 15, 2021 6:10 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Evgeniy » Mon Aug 23, 2021 9:57 am

Kunda1 wrote: Sun Aug 22, 2021 6:45 pm Yes, let me see where that is documented on the wiki...
Maybe there:
https://wiki.freecadweb.org/Crowdin_Scripts

I can't find a way to test translations too.

I recently created a topic on this issue and did not find an answer.
https://forum.freecadweb.org/viewtopic.php?f=10&t=61350

I download fresh build for Windows OS from
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
and folders of applications not contain /translate folder and not contain translate files (*.ts or *.qm) in /Resources folders.
/Resources folder only contain icons, fonts etc...

For example:

1) I create folder translations in:
FreeCAD_0.20.25541_Win-LPv12.5.4_vc17.x-x86-64\data\Mod\TechDraw\Resources
2) I download fresh TechDraw.ts and rename it to TechDraw_ru.ts
3) Place TechDraw_ru.ts file to
FreeCAD_0.20.25541_Win-LPv12.5.4_vc17.x-x86-64\data\Mod\TechDraw\Resources\translations
4) Convert TechDraw_ru.ts to TechDraw_ru.qm with Qt Linguist
5) Run FreeCAD and re-select ru language

And... it didn't have any effect

6) I copy that files into
FreeCAD_0.20.25541_Win-LPv12.5.4_vc17.x-x86-64\translations

And it didn't have any effect too.

7) I copy that files into
FreeCAD_0.20.25541_Win-LPv12.5.4_vc17.x-x86-64\Mod\TechDraw\Gui\Resources\translations
8) and to
FreeCAD_0.20.25541_Win-LPv12.5.4_vc17.x-x86-64\data\Mod\TechDraw\Gui\Resources\translations

And it didn't have any effect too.

I come to the conclusion that there is no such possibility.
And i think this script is only for integration of translation to source code but not for integration to compiled application:
https://github.com/FreeCAD/FreeCAD/blob ... crowdin.py

Compile of FreeCAD is takes several hours. This is inconvenient. And high qualifications are required.
Last edited by Evgeniy on Mon Aug 23, 2021 10:52 am, edited 1 time in total.
User avatar
Kunda1
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Kunda1 » Mon Aug 23, 2021 10:48 am

kaktus wrote:ping
yo @kaktus where did we recently discuss how to test translations locally?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Evgeniy
Posts: 241
Joined: Thu Jul 15, 2021 6:10 pm

Re: How regularly is the archive with translations in crowdin updates?

Postby Evgeniy » Mon Aug 23, 2021 10:50 am

kisolre wrote: Sun Aug 22, 2021 5:32 pm So the threshold is 50%? Is there a way for locally activating and using it for testing purposes?
Probably this rule was introduced recently

ko - Korean 24%
zh_TW - Chinese Traditional 32%
af - Afrikaans 11%
lt - Lithuanian 34%
etc...

But this languages added in FreeCAD.
https://github.com/FreeCAD/FreeCAD/blob ... slator.cpp