terminal-finances icon indicating copy to clipboard operation
terminal-finances copied to clipboard

OS2

Open TeLLie opened this issue 5 years ago • 21 comments

Hello, I compiled it for good old OS/2 All seems to work, the only culprit i see so far, is that it wont take the EN languages It keeps stating on the BR language and thats not something i understand :) i made also a debug version but that I use Qt5 v5.13.1 and Gcc v9.2.0

TeLLie avatar Feb 27 '21 18:02 TeLLie

Owww, how nice to know that it worked on OS/2. I don't think the translations worked because I saved the files in a /usr/share/locale directory. But check the directory: /etc/xdg/terminalfinances if the translations are there!

terroo avatar Feb 27 '21 19:02 terroo

Hi, I have the .qm files in etc/xdg/terminalfinances Also tried to copy them to /usr/share/locale/terminalfinances But also no go Any idea further?

TeLLie avatar Feb 27 '21 19:02 TeLLie

@TeLLie Yes, let's solve this! Now tell me what the value of the variable lang is in your user's configuration file in the path: ~/.config/terminalfinances/config.ini .

terroo avatar Feb 28 '21 19:02 terroo

@Terroo Hihi, yes please lets solve this :) I have this in config.ini

--------------------------------

Terminal Finances 1.0.0

Developed by Marcos Oliveira

https://terminalroot.com.br/

--------------------------------

lang = en theme = light currency = R$

TeLLie avatar Feb 28 '21 19:02 TeLLie

Ah yes! It is modifying the files correctly, but it is not changing the language. Well, to make sure it's not a problem with it, I would recommend you to recompile it, but before compiling, change this file:

https://github.com/terroo/terminal-finances/blob/main/src/initial.h

And change the members m_lang and m_currency to the data that suits you, example for English with dollar:

    QString m_content, m_lang = "en", m_theme = "light",
            m_get_lang = qgetenv("LANG"), m_currency = "USD";

Then just recompile and check if it worked!

terroo avatar Mar 01 '21 01:03 terroo

Hello, Im sorry to say but it still gives me "no English"

In config.ini lang = en theme = light currency = USD

Only thing that worked for me is changing from dark to light

If it's working for you, when you changes the languages?

TeLLie avatar Mar 01 '21 16:03 TeLLie

@TeLLie Yes, for me it works normally. Other people using it have also not reported this problem. But did you make the changes that I had reported? One problem I received from a person was that the database was corrupted. Your translation file may also be corrupted.

terroo avatar Mar 01 '21 23:03 terroo

Hi, Yes i made the changes.. I see that the database is 0bytes It seems that all the database i save are 0bytes

TeLLie avatar Mar 02 '21 19:03 TeLLie

If you have wget installed, just do this:

wget https://git.io/terfindb -O ~/.config/terminalfinances/terminalfinances.db
chmod +rw ~/.config/terminalfinances/terminalfinances.db

If not, just download it via the browser and save to that directory with that name and assign read and write permission.

Also check the translation files, they may be corrupted. I used C++ libraries for this and Qt leaves it up to the system and some systems do not understand these paths and end up copying from the wrong memory location.

terroo avatar Mar 02 '21 20:03 terroo

Hi I download the .db but still no go Also did a lrelease on the ts files, still no go I have no idea how this can happen. Im no debug expert and have no idea how to do this unfortunately But could you not make some debug lines where we could see why its not load the English language??

TeLLie avatar Mar 02 '21 21:03 TeLLie

Do you have this command: lrelease ?

terroo avatar Mar 03 '21 13:03 terroo

Yes, sure [D:\Test\terminal-finances\src\terminalfinances]lrelease -version lrelease version 5.13.1

TeLLie avatar Mar 03 '21 18:03 TeLLie

I'm going to do some tests here to try to understand why the translation didn't work on OS/2, as soon as I have a new idea, I'll get back to you.

terroo avatar Mar 04 '21 12:03 terroo

Hello, @TeLLie ! Sorry for the delay, but I was installing a few different operating systems and all in English. I compiled from scratch at all and the translation worked correctly. The only thing I had to see was addiction. I updated the README including some dependencies at compile time. I think the problem may be on OS/2.

terroo avatar May 14 '21 03:05 terroo

Hello, I found the solution... I have to add for OS2 in initial.h this: m_en = "/etc/xdg/terminalfinances/TerminalFinances_en_US.qm", to m_en = "/@unixroot/etc/xdg/terminalfinances/TerminalFinances_en_US.qm", And now i get the English translation :) Thankz for the help :P

TeLLie avatar May 14 '21 19:05 TeLLie

Hi, I translate it to Dutch if you like i can send to the .ts file..

TeLLie avatar May 14 '21 22:05 TeLLie

Hi, I translate it to Dutch if you like i can send to the .ts file..

Yes, you can send it to me! I will try to add as a new language option!

terroo avatar May 14 '21 23:05 terroo

Marcos Oliveira wrote:

Hi,
I translate it to Dutch if you like i can send to the .ts file..

Yes, you can send it to me! I will try to add as a new language option!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/terroo/terminal-finances/issues/4#issuecomment-841551835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYTRCMKXMT6A7XP2UCFNTTNWX4BANCNFSM4YKGNCAQ.

Hi I attach

-- With kind Regards from the Netherlands, Elbert & Nicole Pol

TeLLie avatar May 15 '21 08:05 TeLLie

Hmmm Where to send to

TeLLie avatar May 15 '21 08:05 TeLLie

@TeLLie Create a repository, add the file and put the link here

terroo avatar May 16 '21 12:05 terroo

Hi

https://boomfinefood.stack.storage/s/Jrau3UijgmEmIe71

Op zo 16 mei 2021 14:19 schreef Marcos Oliveira @.***>:

@TeLLie https://github.com/TeLLie Create a repository, add the file and put the link here

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/terroo/terminal-finances/issues/4#issuecomment-841809653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYTRFCYXXAJZMDAMYAJC3TN6Z4RANCNFSM4YKGNCAQ .

TeLLie avatar May 18 '21 14:05 TeLLie