Translate offsetpage.glade.h - dont work

More
30 Jun 2022 20:26 #246305 by zz912
I work on translate to czech, but I cant translate stuff in offset page: 

src/po/gmoccapy/cs.po - it looks good, but it is not working too
#: ../lib/python/gladevcp/offsetpage.glade.h:27
msgid "Offset Name"
msgstr "Pojmenování"
 

I tried espanol:
src/po/gmoccapy/es.po - it is wierd "../../../"
#: ../../../../lib/python/gladevcp/offsetpage.glade.h:27
msgid "Offset Name"
msgstr "Nombre offset"
 
Attachments:

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 01:24 #246408 by andypugh
github.com/LinuxCNC/linuxcnc/blob/master...ffsetpage.glade#L416

It claims to be translatable. Offset doesn't get translated, so I would assume that nothing else in that file is either. (Maybe you could look?)

Possibly the file needs adding to the "files to translate" list. I am rather fuzzy on how that works.

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 12:11 #246434 by zz912

Maybe you could look?
 

I don't know what to look at.
This?
cs.po
#: ../lib/python/gladevcp/offsetpage.glade.h:26
msgid "Offset"
msgstr ""
"Souřadný\n"
"systém"

​​​​​​​I'd do anything to fix LCNC, but I'm not a programmer. I couldn't find anywhere how translations with *.po work. There are a bunch of articles about translating *.po files. But nowhere is it explained how pot files are created, and what the compiled *.mo files do.

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 18:52 #246456 by andypugh
It's rather odd as it seems that other things are being translated, just not the column headers.

Are you rebuilding LinuxCNC after making your changes? I think you need to?

If you are translating LinuxCNC, it might be best to do it in Weblate. (Or is that how you are doing it?)

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 20:24 #246465 by andypugh
Something that I am puzzled by is the offsetpage.glade.h thing? That .h looks wrong. (but don't see it in the files that I have)

Incidentally, are you working in Weblate or manually editing the .po?

hosted.weblate.org/projects/linuxcnc/linuxcnc/

I assume the former, as Czech is not on the list.

I suggest making a pull-request and then switching to Weblate, it's a better interface and is generally a case of just running your eyes over an automatic translation.

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 20:33 - 03 Jul 2022 10:39 #246466 by zz912
It's rather odd as it seems that other things are being translated, just not the column headers.
looks like you are right
 
Edit: This picture is wrong. Gmoccapy has own Zero G92 button.  offsetpage.glade.h has own Zero G92 button. 


Are you rebuilding LinuxCNC after making your changes? I think you need to?
Yes

If you are translating LinuxCNC, it might be best to do it in Weblate. (Or is that how you are doing it?)
Can weblate be used for version 2.8?
I use Poedit
Attachments:
Last edit: 03 Jul 2022 10:39 by zz912.

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 20:57 #246468 by zz912

Something that I am puzzled by is the offsetpage.glade.h thing? That .h looks wrong. (but don't see it in the files that I have)
 

header and *.pot file is made by "make" ,

look at:
github.com/LinuxCNC/linuxcnc/blob/2.8/src/po/Submakefile

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 21:06 #246469 by andypugh

Can weblate be used for version 2.8?

Good point. Probably not at the moment. 

Please Log in or Create an account to join the conversation.

More
02 Jul 2022 21:22 #246470 by andypugh

Something that I am puzzled by is the offsetpage.glade.h thing? That .h looks wrong. (but don't see it in the files that I have)
 
header and *.pot file is made by "make" ,

look at:
github.com/LinuxCNC/linuxcnc/blob/2.8/src/po/Submakefile

I see reference to offsetpage.glade.h in 2.8:
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...gmoccapy/es.po#L1965

But in 2.9 the reference is not there. 

Are you editing src/po/gmoccapy/cs.po or src/po/cs.po?

Looking again at the es.po example, we have (in src/po/es.po, in the master branch)
github.com/LinuxCNC/linuxcnc/blob/master/src/po/es.po#L20012

So my guess is that the references in gmoccapy/po to generic glade (rather than gmoccapy) files are wrong, 

Perhaps try copying them in to src/po and removing the .h and seeing what happens? 


 

Please Log in or Create an account to join the conversation.

More
03 Jul 2022 06:39 #246479 by zz912

Are you editing src/po/gmoccapy/cs.po or src/po/cs.po?


I have only src/po/gmoccapy/cs.po
src/po/cs.pro dont exist now

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.183 seconds
Powered by Kunena Forum