- This topic has 16 replies, 3 voices, and was last updated Sep 16-9:47 am by vitforlinux.
-
AuthorPosts
-
September 6, 2022 at 11:40 am #88157Member
vitforlinux
I have build a little soft with bash & yad for remove old superflous Kernels without study versions in Synaptic, not are a new idea, is inspired a similar soft in SparkyLinux, but works better in Antix, and works in normal Debian and Ubuntu, MX, Pardus…
TODO
support for more teminals
functions for remove also source and headers- This topic was modified 8 months ago by vitforlinux.
- This topic was modified 8 months ago by vitforlinux.
- This topic was modified 8 months ago by vitforlinux.
Attachments:
Sorry for my spaghetti english, i'm italian.
September 6, 2022 at 11:05 pm #88199Member
marcelocripe
::Hello VitForlinux.
I thank you for your initiative and collaborate as I can, including the translation features I was able to do and with tests.
After applying the translation features, I created the .pot, .po e .mo. Unfortunately, I couldn’t make the translation of the texts “_Pick” and “_Description” to work, I’m still learning to adapt the scripts to receive the translation features.
In the test I did, with the PT-BR translation, the program worked and in this monet Liveusb has only one kernel installed. The “image-4.9.0” was successfully removed, with only Antix 21-bits’ “Headers-4.9.0” “Headers-4.9.0”.Thanks.
– – – – –
Olá vitforlinux.
Eu agradeço por sua iniciativa e colaboro como posso, incluindo os recursos de tradução que eu consegui fazer e com testes.
Após aplicar os recursos de tradução, eu criei o arquivo .pot, .po e .mo. Infelizmente, eu não consegui fazer funcionar a tradução dos textos “_Pick” e “_Description”, eu ainda estou aprendendo a adaptar os scripts para receberem os recursos de tradução.
No teste que eu fiz, com a tradução pt-BR, o programa funcionou e neste monento o LiveUSB possui apenas um kernel instalado. A “image-4.9.0” foi removida com sucesso, ficando apenas o “headers-4.9.0” do antiX 21 full de 64 bits.Obrigado.
Attachments:
September 7, 2022 at 9:08 am #88221Member
vitforlinux
::A great Thanks!
I have see other kernels remover, i think possible remove also Headers with better code, but I need more concentration to understand how.
I like Brazilian translation, now need Italian translation for me. 🙂Now an adventure begins.
Sorry for my spaghetti english, i'm italian.
September 7, 2022 at 3:26 pm #88236Member
marcelocripe
::I like Brazilian translation, now need Italian translation for me.
I changed the file “old_linux_kernel_remover.po” in “pt-BR” to “it”, now you just need to replace the texts in “pt-BR” with your texts in “it”. Then you will need to create the “old_linux_kernel_remover.mo” file from the “old_linux_kernel_remover.po” file.
Use the command in the terminal to create the .mo file:
$ msgfmt old_linux_kernel_remover.po -o old_linux_kernel_remover.mo
Use the command in the terminal to copy the .mo file to the Italian translation folder:
$ sudo cp old_old_linux_kernel_remover.mo /usr/share/locale/it/LC_MESSAGES
Now run your program and check how your translation turned out. Every time you make changes to “old_linux_kernel_remover.po” you will need to create another “old_linux_kernel_remover.mo” and copy it to folder “/usr/share/locale/it/LC_MESSAGES” and rerun “old_linux_kernel_remover.sh”.
Please also see the topicInternationalisation of antiX community scripts.
If you want and can, come and join our team of volunteer translators from the antiX community. The Italian team has the largest number, but it’s always great to have more people to share the difficulties and volunteer translation work. Even the Italian team has a Telegram group in which I participate.Please also see the topic antiX and antiX Application Program Translation Platforms so you know how to join our team of volunteer translators from the antiX community.
All people are very welcome to join the antiX community’s volunteer translator team.
– – – – –
Mi piace la traduzione brasiliana, ora ho bisogno della traduzione italiana per me.
Ho cambiato il file “old_linux_kernel_remover.po” in “pt-BR” in “it”, ora devi solo sostituire i testi in “pt-BR” con i tuoi testi in “it”. Quindi dovrai creare il file “old_linux_kernel_remover.mo” dal file “old_linux_kernel_remover.po”.
Utilizzare il comando nel terminale per creare il file .mo:
$ msgfmt old_linux_kernel_remover.po -o old_linux_kernel_remover.mo
Usa il comando nel terminale per copiare il file .mo nella cartella di traduzione italiana:
$ sudo cp old_old_linux_kernel_remover.mo /usr/share/locale/it/LC_MESSAGES
Ora esegui il tuo programma e controlla come è risultata la tua traduzione. Ogni volta che apporti modifiche a “old_linux_kernel_remover.po” dovrai creare un altro “old_linux_kernel_remover.mo” e copiarlo nella cartella “/usr/share/locale/it/LC_MESSAGES” ed eseguire nuovamente “old_linux_kernel_remover.sh” .
Consulta anche l’argomento Internationalisation of antiX community scripts.
Se vuoi e puoi, vieni e unisciti al nostro team di traduttori volontari della comunità antiX. Il team italiano è quello più numeroso, ma è sempre bello avere più persone con cui condividere le difficoltà e fare volontariato di traduzione. Anche la squadra italiana ha un gruppo Telegram a cui partecipo.Consulta anche l’argomento antiX and antiX Application Program Translation Platforms così sai come entrare a far parte del nostro team di traduttori volontari della comunità antiX.
Tutte le persone sono benvenute a far parte del team di traduttori volontari della comunità antiX.
– – – – –
I like Brazilian translation, now need Italian translation for me.
Eu alterei o arquivo “old_linux_kernel_remover.po” em “pt-BR” para “it”, agora você só precisará substituir os textos em “pt-BR” por seus textos em “it”. Depois você precisará criar o arquivo “old_linux_kernel_remover.mo” a partir do arquivo “old_linux_kernel_remover.po”.
Utilize o comando no terminal para criar o arquivo .mo:
$ msgfmt old_linux_kernel_remover.po -o old_linux_kernel_remover.mo
Utilize o comando no terminal para copiar o arquivo .mo para a pasta de tradução Italiana:
$ sudo cp old_old_linux_kernel_remover.mo /usr/share/locale/it/LC_MESSAGES
Agora execute o seu programa e verifique como ficou a sua tradução. Toda vez que você fizer alterações no “old_linux_kernel_remover.po”, você precisará criar outro “old_linux_kernel_remover.mo” e copiá-lo para a pasta “/usr/share/locale/it/LC_MESSAGES” e executar novamente o “old_linux_kernel_remover.sh”.
Por favor, consulte também o tópico Internationalisation of antiX community scripts.
Se você quiser e puder, venha fazer parte da nossa equipe de tradutores voluntários da comunidade antiX. A equipe italiana é a que está em maior número, mas sempre é muito bom ter mais pessoas para compartilhar as dificuldades e os trabalhos voluntários de tradução. Inclusive a equipe italiana possui um grupo de Telegram no qual eu participo.Por favor, consulte também o tópico antiX and antiX Application Program Translation Platforms para você saber como fazer parte da nossa equipe de tradutores voluntários da comunidade antiX.
Todas as pessoas são muito bem-vindas na equipe de tradutores voluntários da comunidade antiX.
September 7, 2022 at 3:28 pm #88237Member
marcelocripe
::Please remove the “.txt” from the “old_linux_kernel_remover.txt” file and rename it to “old_linux_kernel_remover.po”, as the forum prevented the upload of the “old_linux_kernel_remover.po” file.
After several attempts to send “old_linux_kernel_remover.po”, I am sending a “.zip”.
– – – – –
Rimuovere il “.txt” dal file “old_linux_kernel_remover.txt” e rinominarlo in “old_linux_kernel_remover.po”, poiché il forum ha impedito il caricamento del file “old_linux_kernel_remover.po”.
Dopo diversi tentativi di inviare “old_linux_kernel_remover.po”, sto inviando un “.zip”.
– – – – –
Por favor, remova o “.txt” do arquivo “old_linux_kernel_remover.txt” e renomeie para “old_linux_kernel_remover.po”, pois o fórum impediu o envio do arquivo “old_linux_kernel_remover.po”.
Após várias tentativas de envio do “old_linux_kernel_remover.po”, estou enviando um “.zip”.
Attachments:
September 8, 2022 at 9:04 am #88299Member
vitforlinux
::I made some changes and saw the first list of images and automatically corresponding headers ready to be removed, but it’s not ready yet… I have seen headers without a corresponding kernel and I would like to put them on the list to remove them, in the next few days I should succeed.
After made Italian translation.
- This reply was modified 7 months, 4 weeks ago by vitforlinux.
Sorry for my spaghetti english, i'm italian.
September 8, 2022 at 11:53 am #88302Member
marcelocripe
::Vitforlinux, don’t be in a hurry to finish the program.
Test the program a lot, after everything is working, take care of the appearance of the program and how the texts are distributed in the graphical interface. When the aesthetic part is done, I help again with what I can do in the translation part. When all the tests are done on the pt-BR and it translation part, we can ask Robin to send the .pot file to Transifex Contribs and then we will have more translations for your program.– – – – –
Vitforlinux, não tenha pressa em finalizar o programa.
Teste bastante o programa, após estar tudo funcionando, cuide da aparência do programa e de como os textos são distribuídos na interface gráfica. Quando a parte estética estiver pronta, eu ajudo novamente com o que eu consigo fazer na parte da tradução. Quando todos os testes forem feitos na parte da tradução em pt-BR e it, nós poderemos pedir ao Robin para enviar o arquivo .pot para o Transifex Contribs e assim teremos mais traduções para o seu programa.September 9, 2022 at 9:02 am #88379Member
vitforlinux
::Thank you. I thought I’d do it this way, because otherwise you have to do the translations all the time and it’s a waste of time.
When we have finished someone will have to do the deb, because I do not know how to do them.Sorry for my spaghetti english, i'm italian.
September 9, 2022 at 3:22 pm #88412Member
marcelocripe
::When we have finished someone will have to do the deb, because I do not know how to do them.
I’m starting to learn to build .deb with Robin’s teachings. But before building the .deb, we’ll need the .desktop file so your program can be displayed in the menu, and we’ll collect translations with our fellow volunteer translators and friends from the antiX community.
– – – – –
When we have finished someone will have to do the deb, because I do not know how to do them.
Eu estou começando a aprender a construir .deb com os ensinamentos do Robin. Mas antes de construir o .deb, precisaremos do arquivo .desktop para o seu programa poder ser exibido no menu, além de colhermos as traduções com os nossos colegas e amigos tradutores voluntários da comunidade antiX.
September 10, 2022 at 9:25 am #88457Member
vitforlinux
::Yesterday I added a window for help, one for confirming the selected kernels, one to indicate no kernel selected, and finally the list of kernels / headers is removed… I promise Sunday I will not deal with it.
Sorry for my spaghetti english, i'm italian.
September 10, 2022 at 2:10 pm #88475Member
marcelocripe
::Sorry for my spaghetti english, i’m italian.
I’m laughing a lot, this joke turned out really good, even with the automatic translation. That is, I am not able to write in English and I use an automatic translation service to post texts that are not in my language. I always post my original text to ensure there is no misunderstanding. I can understand some words in Italian, but in English, it’s much more difficult, because an English word can have more than 30 different ways of being translated into pt-BR.
The rest is also very good for when you go back to looking at the programming code, the look becomes much more accurate, this happens to me when translating antiX programs.(This text is an automatic translation.)
– – – – –
Sorry for my spaghetti english, i’m italian.
Eu estou rindo muito, esta piada ficou muito boa, mesmo com a tradução automática. Ou seja, eu não sou capaz de escrever em Inglês e utilizo um serviço de tradução automática para postar os textos que não estão em meu idioma. Eu sempre posto o meu texto original para garantir que não haja mal entendido. Eu sou capaz de perceber algumas palavras em italiano, mas em Inglês, é muito mais difícil, pois uma palavra em Inglês pode ter mais de 30 formas diferentes de ser traduzida para pt-BR.
O descanso também faz muito bem para quando você voltar a olhar para o código de programação o olhar ficar muito mais apurado, isso acontece comigo na tradução dos programas do antiX.September 11, 2022 at 6:46 am #88559Member
sybok
::Hi, a comment: it happened to me once I did not want to remove a header to a specific kernel on Fedora (!) because new headers were not available yet.
Never seen this on Debian.
Just wanted to point out that auto-removal of headers allowing for deselecting those to be removed could be better.September 12, 2022 at 8:57 am #88626Member
vitforlinux
::Hi, a comment: it happened to me once I did not want to remove a header to a specific kernel on Fedora (!) because new headers were not available yet.
Never seen this on Debian.
Just wanted to point out that auto-removal of headers allowing for deselecting those to be removed could be better.I try to get a good result, my program only looks for the installed debs, the complicated part is to establish the relationship between the packages to be removed.
Sorry for my spaghetti english, i'm italian.
September 12, 2022 at 9:06 am #88627Member
vitforlinux
::I’m laughing a lot,
I think machine translations should be banned to force people like me who don’t know languages well to learn them properly…. before diplomatic incidents happen.
(translated with duckduckgo translator)I have discovered headers are in two packages… today study relationship.
Sorry for my spaghetti english, i'm italian.
September 12, 2022 at 11:00 am #88630Member
sybok
::the complicated part is to establish the relationship between the packages to be removed.
Relationship between 3 packages corresponding to the same kernel?
The simplest I can think of are ‘linux-<image|firmware|headers>-<whatever>’ where the relation is straightforward.
Consider e.g. the currently latest in the 4.19 series.kernel='linux-image-4.19.0-256-antix.1-amd64-smp'; others="${kernel/linux-image-/linux-.*-}"; # Use '.*' because of NOT envoking regex-grep. listed="$(dpkg -l | grep -- "^ii[ ]*${others}" | awk ' { print $2 } ')" # List of the installed ones related to the kernel, incl. kernel.Did you mean something else?
-
AuthorPosts
- You must be logged in to reply to this topic.
[/url]