dfint / df-translation-client Goto Github PK
View Code? Open in Web Editor NEWA GUI client intended to simplify usage of dfrus and other utils
License: MIT License
A GUI client intended to simplify usage of dfrus and other utils
License: MIT License
Currently, the client saves its config every 500ms, regardless of whether there were changes or not.
Improve the steps that one must follow to use this application.
The three dots as response to how install this app isn't very useful.
... by calculation of total file size and counting of loaded blocks inside downloaders.
This is not very relevant for the github downloader (as it downloads very fast), but could be nice if it would be implemented for transifex downloaders.
https://github.com/dfint/df-translation-client/tree/master/df_translation_client/downloaders
In Path Execute File tab, when I added .po file, the encode not show code table listings.
Originally posted by @klefo0 in #5 (comment)
Old apis (v.2 and v.2.5) will be discontinued after November 30th, 2022
https://www.transifex.com/blog/2020/transifex-api-version-3/
https://community.transifex.com/t/postponing-api-2-0-2-5-and-transifex-client-sunset-date/2759
https://community.transifex.com/t/reminder-deprecated-transifex-apis-and-transifex-client-to-be-discontinued-on-nov-30-2022/3079
Recently I've discovered a way to use async code with tkinter. I think it's worth it to rewrite some parts of code in async style (eg. downloading of translations).
If translation files from the new language are downloaded, this language does not appear on the "Translate external text files" (only after restarting the application).
It's currently disabled
This can reduce freezes on slow internet connections
Add possibility to download translations from https://github.com/dfint/translations-backup instead of transifex.com (without registration and SMS, as they say)
Hi,
Win 10 Pro.
pip 21.0.1 from c:\users\Gotrek\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
I got another error and I am not sure if it is program bug or I have somehow corrupted/broken python
cp852
e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop>python df-translate.pyw
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 189, in <lambda>
ttk.Button(self, text='Translate', command=lambda: self.bt_search(translate=True)).grid(row=5, column=1)
File "e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 129, in bt_search
for filename in func(po_file_path, cur_dir, self.combo_encoding.get()):
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\df_gettext_toolkit\translate_plain_text.py", line 34, in translate_plain_text
print(translation, file=dest)
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp852.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 61-62: character maps to <undefined>
Here is my cp852.py file. Just rename it. I couldn't upload directly python file:
cp852.txt
Same error for second available encoding
cp1250
e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop>python df-translate.pyw
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 189, in <lambda>
ttk.Button(self, text='Translate', command=lambda: self.bt_search(translate=True)).grid(row=5, column=1)
File "e:\NET\__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 129, in bt_search
for filename in func(po_file_path, cur_dir, self.combo_encoding.get()):
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\df_gettext_toolkit\translate_plain_text.py", line 34, in translate_plain_text
print(translation, file=dest)
File "C:\Users\Gotrek\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1250.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 61-62: character maps to <undefined>
My cp1250.py file, rename from txt to .py
cp1250.txt
The following code from frame_translate_external_files.py
We need to reuse the code from translate_raws_batch.py instead
Hey, maybe my friend and me are to stupid to translate the game correctly.
Some words are translated and most of it not.
Do you have any idea why that happens and how to fix that?
Steps we do.
We tried to use the 64 and 32Bit Version of the game V47_05 also tried older versions 43_05...
Run df-translate.pwy from python:
Traceback (most recent call last):
File ".\df-translate.pyw", line 76, in <module>
App(noconfig='--noconfig' in sys.argv, debug='--debug' in sys.argv).mainloop()
File ".\df-translate.pyw", line 66, in __init__
notebook.add(TranslateExternalFiles(notebook, self.config),
File "D:\Documents\DF\df-translation-client\frame_translate_external_files.py", line 156, in __init__
self.update_combo_encoding()
File "D:\Documents\DF\df-translation-client\frame_translate_external_files.py", line 72, in update_combo_encoding
self.combo_encoding.current(0)
File "C:\Users\User.ARX-MAD-D014\AppData\Local\Programs\Python\Python37-32\lib\tkinter\ttk.py", line 719, in current
return self.tk.call(self._w, "current", newindex)
_tkinter.TclError: Index 0 out of range
Win 10 Pro.
pip 21.0.1 from c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
Just start program. Set paths and press search or translate.
E:\NET_DwarfFotress_translate\translate_client\df-translation-client-develop>python df-translate.pyw
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\tkinter_init.py", line 1883, in call
return self.func(*args)
File "E:\NET__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 189, in
ttk.Button(self, text='Translate', command=lambda: self.bt_search(translate=True)).grid(row=5, column=1)
File "E:\NET__DwarfFotress_translate\translate_client\df-translation-client-develop\frames\frame_translate_external_files.py", line 108, in bt_search
if cur_dir.is_dir() and not cur_dir.is_relative_to(f'{base_path}/Lib'):
AttributeError: 'WindowsPath' object has no attribute 'is_relative_to'
error line:
if cur_dir.is_dir() and not cur_dir.is_relative_to(f'{base_path}/Lib'):
it was enough to delete and not cur_dir.is_relative_to(f'{base_path}/Lib')
for me but I don't think that it is correct fix :-)
... to reduce freezes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.