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

Solved bugs are moved into this topic...
hexaae
Posts: 70
Joined: 25.02.2019 20:47

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

Post 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").
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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
hexaae
Posts: 70
Joined: 25.02.2019 20:47

Post 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
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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.
hexaae
Posts: 70
Joined: 25.02.2019 20:47

Post by hexaae »

Sorry I'm a newbie, in which ini file should I add the string (ITA)? And... what id= should I use?
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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/
hexaae
Posts: 70
Joined: 25.02.2019 20:47

Post 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..
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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
Last edited by main Alexey on 10.07.2022 16:57, edited 1 time in total.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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
hexaae
Posts: 70
Joined: 25.02.2019 20:47

Post 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...
Last edited by hexaae on 13.07.2022 10:26, edited 2 times in total.
Post Reply