5 Feb 2021 |
Nice Micro | but won't pybabel add those to the whatever list that crowdin uses? | 15:49:23 |
Nice Micro | and when we translate in crowdin, it will make a pullrequest to the repo? | 15:49:45 |
GrbavaCigla | Yes, i don't know how to talk :). pybabel takes all functions and text and adds it to a file (pot file), crowdin takes those strings. User translates that and crowdin make pr. | 15:52:22 |
GrbavaCigla | In reply to @grbavacigla:matrix.org yes Actually no, string as in pot file string... | 15:52:38 |
Nice Micro | it's too complicate for me lol | 16:10:19 |
Nice Micro | is it gonna be enough if I start adding the tr() function in the character customization screen to get the stuff automaticaly? | 16:10:53 |
GrbavaCigla | In reply to @nicemicro:matrix.org it's too complicate for me lol Because i don't know how to explain.... | 16:11:54 |
GrbavaCigla | In reply to @nicemicro:matrix.org is it gonna be enough if I start adding the tr() function in the character customization screen to get the stuff automaticaly? Of course | 16:12:27 |
GrbavaCigla | Looks like I didn't understand you quite well too :) | 16:12:38 |
Nice Micro | I just want to make it as simple as possible haha | 16:13:14 |
Nice Micro | so anything that works automatically is good for you | 16:13:25 |
GrbavaCigla | Yes, for UI things, I don't know if it works automaticaly or checkbox is needed | 16:14:02 |
Nice Micro | what I was thinking to do is just make a Dictionary for filenames and just add the text from code | 16:14:21 |
GrbavaCigla | In reply to @nicemicro:matrix.org what I was thinking to do is just make a Dictionary for filenames and just add the text from code I wanted to do the same for problem I mentioned above (manualy adding to pot file), but it isn't quite elegant solution | 16:15:20 |
Nice Micro | but I think if I add it directly in the source code with the tr() function, the pybabel update will find it and add it to the pot file automatically | 16:16:18 |
GrbavaCigla | Yes | 16:16:52 |
GrbavaCigla | Problem is when you don't want translations in your code and you have to add it manualy, you cant (yet) | 16:17:32 |
Nice Micro | yeah | 16:19:14 |
Nice Micro | I think it's fine doing it in the code | 16:19:23 |
GrbavaCigla | Of course, but sometimes you cant have translations in code or else it will become ugly (problem with my settings) | 16:20:00 |
Nice Micro | I haven't checked how that's done | 16:20:47 |
Nice Micro | I just checked | 16:23:19 |
Nice Micro | how is the translation achieved for the main menu though? | 16:25:07 |
GrbavaCigla | -k text | 16:33:20 |
GrbavaCigla | Yeah, you don't have to check any checkboxes, UI works out of the box | 16:34:07 |
21 Feb 2021 |
Nice Micro | GrbavaCigla: after adding a lot of tr() functions in my code, do I have to run the script by myself? | 07:11:36 |
Nice Micro | GrbavaCigla: I have ran the script called update.sh in the locale directory but it just screws up everything lol | 14:18:30 |
Nice Micro | This is the error message I get: | 14:25:12 |
Nice Micro | Traceback (most recent call last):
File "/usr/bin/pybabel", line 33, in <module>
sys.exit(load_entry_point('Babel==2.9.0', 'console_scripts', 'pybabel')())
File "/usr/lib/python3.9/site-packages/babel/messages/frontend.py", line 929, in main
return CommandLineInterface().run(sys.argv)
File "/usr/lib/python3.9/site-packages/babel/messages/frontend.py", line 853, in run
return cmdinst.run()
File "/usr/lib/python3.9/site-packages/babel/messages/frontend.py", line 481, in run
for filename, lineno, message, comments, context in extracted:
File "/usr/lib/python3.9/site-packages/babel/messages/extract.py", line 149, in extract_from_dir
for message_tuple in check_and_call_extract_file(
File "/usr/lib/python3.9/site-packages/babel/messages/extract.py", line 207, in check_and_call_extract_file
for message_tuple in extract_from_file(
File "/usr/lib/python3.9/site-packages/babel/messages/extract.py", line 243, in extract_from_file
return list(extract(method, fileobj, keywords, comment_tags,
File "/usr/lib/python3.9/site-packages/babel/messages/extract.py", line 320, in extract
raise ValueError('Unknown extraction method %r' % method)
ValueError: Unknown extraction method 'godot_scene'
| 14:25:17 |
Nice Micro | so I'd guess I'm missing something on my system? | 14:25:33 |