3 Feb 2021 |
GrbavaCigla | https://github.com/pybpc/bpc | 19:19:27 |
GrbavaCigla | main file was updated year ago, builds are failing.... | 19:20:02 |
Nice Micro | Hmmm | 23:55:34 |
Nice Micro | Isn't there a still maintained fork or something compatible? | 23:56:10 |
Nice Micro | If we need to switch to something we should switch as soon as possible | 23:56:43 |
5 Feb 2021 |
GrbavaCigla | https://github.com/mrombout/gdgettext ? | 14:35:31 |
GrbavaCigla | But i cant find the documentation. Also I cant find a way to manually add new strings | 14:37:27 |
Nice Micro | GrbavaCigla: I was just looking at the update.sh in the src/locale directory of OpenSuspect | 15:25:16 |
Nice Micro | pybabel extract -F "${DIR}/../../babelrc" -k text -k LineEdit/placeholder_text -k tr -o "${DIR}/en.po" "${DIR}/../../" | 15:25:52 |
Nice Micro | there is that line | 15:25:55 |
Nice Micro | it contains a -k tr switch | 15:26:05 |
Nice Micro | which might or might not be the thing? | 15:26:24 |
Nice Micro | in godot the tr() function translates the string that it recieves as an argument | 15:26:46 |
GrbavaCigla | Yes, but how do we give it predefined strings? | 15:28:25 |
Nice Micro | what do you mean? | 15:29:19 |
Nice Micro | if instead of a "string" we always use tr("string") in the code, then this update.sh should automatically extract the strings I'd guess | 15:30:03 |
Nice Micro | at least that's how I understand what's happening right now, too | 15:30:27 |
GrbavaCigla | When I say string, I mean translated string (like in crowdin), not "" string :D. You are right, but the problem is that we cannot add translatable strings to pot file directly because pybabel will comment it out. | 15:44:19 |
Nice Micro | ohh okay | 15:46:00 |
Nice Micro | so you mean the string that it is translated TO, not the string to translate | 15:46:22 |
GrbavaCigla | yes | 15:46:38 |
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 |