Page 1 of 2

Two questions: can't translate "Templates"? No file info?

Posted: 06.07.2022 21:13
by hexaae
Have two questions about this amazing editor:
1. I can't find translation string for "Templates"
2. is there a way to have some info on the file (Size in bytes, Total lines, Words, Total Characters excluding EOL chars)?
It would be also handy to always see the total number of lines, e.g. "Ln 450/39281, Col 14" at the bottom. And maybe the number of selected chars would be handy too (e.g. "Ln 450/39281, Col 14, Sel 143").

Posted: 07.07.2022 09:55
by main Alexey
1. This string is in the plugin cuda_new_file - you can look at the De/Austria translation how to translate it
https://sourceforge.net/projects/cudate ... anslation/

2. possible, yes, install the "Text Statistics" plugin. it gives command to show this.

2b.
>handy to always see the total number of lines

see docs: https://wiki.lazarus.freepascal.org/Cud ... _statusbar
{count}: total number of lines

Posted: 07.07.2022 23:07
by hexaae
1: uhm... can't find "Templates" window title in those translations...
2: perfect
2b: Amazing. I love how easily customizable is CudaText, thank you! :) https://i.ibb.co/w6TRV1L/image.png

Posted: 08.07.2022 11:19
by main Alexey
1. if you cannot find str 'Templates' in De/Autstria files, it means author missed this string. it is translatable for sure, see file py/cuda_new_file/__init__.py -
res = dlg_menu(DMENU_LIST, lexers, caption=_('Templates'))

function _() means it's localized.

Posted: 09.07.2022 23:15
by hexaae
Sorry I'm a newbie, in which ini file should I add the string (ITA)? And... what id= should I use?

Posted: 10.07.2022 07:15
by main Alexey
I don't know this - I never made .PO / .MO files. Some tools exists to support this for Python, they scan the .py files and make .PO / .MO files (you enter strings in GUI)
Maybe this? https://poedit.net/

Posted: 10.07.2022 16:29
by hexaae
main Alexey wrote:I don't know this - I never made .PO / .MO files. Some tools exists to support this for Python, they scan the .py files and make .PO / .MO files (you enter strings in GUI)
Maybe this? https://poedit.net/
Yes I know .PO/.MO files, I use them for Wordpress plugins for example...
Who's the author? Maybe I should ask him or he/she could release a small update including 'Templates' string in the ini files..

Posted: 10.07.2022 16:52
by main Alexey
1. string 'Templates' is not in .ini file, it must be in .MO file in De/Austria translation
2. I e-mailed to the author of De/Au translation and gave him link to this topic, maybe wait for reply

Posted: 10.07.2022 16:56
by main Alexey
In the De/Au files, in MO file, I found his email
PO-Revision-Date: 2020-08-18 16:25+0200
Last-Translator: Markus Feichtinger <mafei at gmx dot at>
Language-Team:
Language: de_AT

Posted: 10.07.2022 22:04
by hexaae
main Alexey wrote:1. string 'Templates' is not in .ini file, it must be in .MO file in De/Austria translation
2. I e-mailed to the author of De/Au translation and gave him link to this topic, maybe wait for reply
Thank you... let's see now...