Git Product home page Git Product logo

Comments (35)

 avatar commented on May 22, 2024

Can you try to recreate the same issue using the latest release?

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Can you try to recreate the same issue using the latest release?

The new version is exactly the same.

from qv2ray.

 avatar commented on May 22, 2024

So let's say you are trying to build from the source right?

from qv2ray.

 avatar commented on May 22, 2024

If you build it from the source, you should not rename the .ts files in the translations folder to .qm but run lrelease ./Qv2ray.pro to let Qt generate the .qm-named the binary version of "translation files".

Then try to build again.

The docs are here. Unfortunately, it's written in Chinese, but the English version will come soon.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

If you build it from the source, you should not rename the .ts files in the translations folder to .qm but run lrelease ./Qv2ray.pro to let Qt generate the .qm-named the binary version of "translation files".

Then try to build again.

The docs are here. Unfortunately, it's written in Chinese, but the English version will come soon.

Yes, I know that I forgot command lrelease ./Qv2ray.pro last time.
The new version also gives an error. PIC

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Please add the field "Name" PIC

from qv2ray.

 avatar commented on May 22, 2024

Please add the field "Name" PIC

Sure, This will be available in a later version.

from qv2ray.

 avatar commented on May 22, 2024

Yes, I know that I forgot command lrelease ./Qv2ray.pro last time.
The new version also gives an error. PIC

I cannot figure out what's going wrong here... We only support Chinese and English currently.
It's more likely caused by a missing of Chinese Fonts(maybe?),

However...
I'd prefer to say that's a Qt Bug....
I'll try my best to find the cause of your issue at the moment

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Yes, I know that I forgot command lrelease ./Qv2ray.pro last time.
The new version also gives an error. PIC

I cannot figure out what's going wrong here... We only support Chinese and English currently.
It's more likely caused by a missing of Chinese Fonts(maybe?),

However...
I'd prefer to say that's a Qt Bug....
I'll try my best to find the cause of your issue at the moment

I can give access to the teamviewer if you need to.

from qv2ray.

 avatar commented on May 22, 2024

patch1.txt

Well, before that, can you try this patch please?
This patch changed the "just-in-time retranslation" function to another trigger.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

patch1.txt

Well, before that, can you try this patch please?
This patch changed the "just-in-time retranslation" function to another trigger.

I need instruction to patch1.txt

from qv2ray.

 avatar commented on May 22, 2024

Well it's not very difficult, download the patch file and then simply run
git apply patch1.txt
in the Qv2ray project directory


in this case, I put the patch1.txt at the root of my project folder

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024
sony@sony-desktop:~$ cd test/1/Qv2ray/
sony@sony-desktop:~/test/1/Qv2ray$ git apply patch1.txt
sony@sony-desktop:~/test/1/Qv2ray$ cd build/
sony@sony-desktop:~/test/1/Qv2ray/build$ ./Qv2ray 

To no avail.
I tried the same make application. Doesn't work either.

from qv2ray.

 avatar commented on May 22, 2024

Emmm after applying the patch, you need to rebuild the executable using make again.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Emmm after applying the patch, you need to rebuild the executable using make again.

That's exactly what I did

from qv2ray.

 avatar commented on May 22, 2024

Emmm after applying the patch, you need to rebuild the executable using make again.

That's exactly what I did

It seems to be unbelievably strange....
Which distro are you currently using, or can you try installing a Chinese Font? (Although I don't think that helps....)

  • Can you confirm that the latest AppImage has the same behavior?

from qv2ray.

 avatar commented on May 22, 2024

Another trail is to change the config file directly located at $HOME/.qv2ray/Qv2ray.conf
You may want to:

  • Close Qv2ray
  • Change the "language": "zh-CN", to "language": "en-US",
  • Start Qv2ray again and see if the English Translation loads correctly.

Updated: This helps me see if the issue is caused by the translation itself or the UI behavior

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

I think I have a Chinese font. I can’t switch from Chinese to English. BUT! If I rename the files en-US.ts <-> zh-CN.ts before installation and make the application, then it works in English.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Another trail is to change the config file directly located at $HOME/.qv2ray/Qv2ray.conf
You may want to:

  • Close Qv2ray
  • Change the "language": "zh-CN", to "language": "en-US",
  • Start Qv2ray again and see if the English Translation loads correctly.

Updated: This helps me see if the issue is caused by the translation itself or the UI behavior

The application started in English and works. But if you open the settings, then it freezes.

from qv2ray.

 avatar commented on May 22, 2024

I think I have a Chinese font. I can’t switch from Chinese to English. BUT! If I rename the files en-US.ts <-> zh-CN.ts before installation and make the application, then it works in English.

Emmm at least that tells us the cause is not from a language translation file......
One possible solution is disabling the "just-in-time retranslation" feature currently....

from qv2ray.

 avatar commented on May 22, 2024

I'll push a commit and see if that works for you soon.

NOTE: You may need to restart the application after changing the language from now on. (As a temporary solution for this strange bug)

from qv2ray.

 avatar commented on May 22, 2024

You may want to checkout the latest commit on the dev branch
using:
git reset master --hard <- to discard whatever you did in the current working directory
git pull <- pull out the latest update
git checkout dev <- and change to the dev branch.
run qmake and make to see if it's solved.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

You may want to checkout the latest commit on the dev branch
using:
git reset master --hard <- to discard whatever you did in the current working directory
git pull <- pull out the latest update
git checkout dev <- and change to the dev branch.
run qmake and make to see if it's solved.

It works! There is not any errors.

from qv2ray.

 avatar commented on May 22, 2024

OK, then this issue will be marked as solved and closed.

from qv2ray.

 avatar commented on May 22, 2024

For future refrence:
The problem was introduced by #20 , which firstly asked for the "just-in-time re-translation".
Due to the bugfix, this feature has been disabled.

from qv2ray.

 avatar commented on May 22, 2024

Hello sir Seems that you speak Russian
Could you contribute to translate the project in Crowdin Service here?
https://crowdin.com/project/qv2ray
It will be very helpful.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Hello sir Seems that you speak Russian
Could you contribute to translate the project in Crowdin Service here?
https://crowdin.com/project/qv2ray
It will be very helpful.

Im done

from qv2ray.

 avatar commented on May 22, 2024

Thanks, and can you please provide your name that I can mention the contributors?
is thebadgateway ok for that ?

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

Thanks, and can you please provide your name that I can mention the contributors?
is thebadgateway ok for that ?

Yes of course. The only thing you need will be to test the translation app. Some words can be long and me can pick up similar ones in meaning, but with a shorter length. And without a app, some words have two meanings. Only after testing can I give an accurate translation.

from qv2ray.

 avatar commented on May 22, 2024

Thanks really a lot for your contributions!
However, I didn't understand what you mean, do you want to have a translated Qv2ray application for testing?

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

I meant that I would need to see the translated application. And then I can correct some words because they can have two meanings. In general, nothing serious, I will write a issure if I see a mistake in my translation.

from qv2ray.

 avatar commented on May 22, 2024

There are two possible methods to get your translations.

Option 1

One is you can download the *.ts file in the Crowdin Platform
You can download the translations here:
image

  • For this, you may need to clone the Repo and manually replace the .ts file in the translations folder.
  • And then, build the Qv2ray.
  • It's fast, you can do whenever you want, but it's really quite complicated.

Option 2

  • There's another option, you can wait for the Crowdin Service writing a Pull Request HERE
  • The Automatic Build System will trigger a build containing your translations into an AppImage. Which you can download it and test.
    image
    Clicking 'details' leads you to the status page:
    image
    The binary can be obtained here
    The issues that the build system has, is: we currently cannot generate AppImage because it's not properly configured yet

Actually I, personally prefer to build myself, as even me myself can't estimate the time it takes for the Crowdin to sync translations into the Github PR

<I'll write a proper doc for this soon>

from qv2ray.

 avatar commented on May 22, 2024

Ah, I nearly forgot that You can try to use Qt Linguist to open that TS file and do some translations!
You may need to put the ts files in its proper place to see the UI preview
image
It's soooooo useful to test some UI translations, once you have done it, click save and upload the ts file to the Crowdin
image
The upload button is located where you download the ts files, select these checkboxes to make sure nothing is lost.

from qv2ray.

thebadgateway avatar thebadgateway commented on May 22, 2024

The new version does not work and dev too

`:~/test/2/Qv2ray/build$ ./Qv2ray
[LICENCE]:
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.

Qv2ray Current Developer Copyright (C) 2019 Leroy.H.Y (@lhy0403)
Hv2ray Initial Idea and Designs Copyright (C) 2019 Hork (@aliyuchang33)
Hv2ray/Qv2ray HTTP Request Helper (partial) Copyright 2019 (C) SOneWinstone (@SoneWinstone)
Qv2ray ArtWork Done By ArielAxionL (@axionl)

Qv2ray v2.0 running on Ubuntu 18.04.3 LTS x86_64

[UI]: FAILED to find any translations, THIS IS A BUILD ERROR.
QWidget: Must construct a QApplication before a QWidget`

from qv2ray.

 avatar commented on May 22, 2024

can you please open another issue and we can discuss there ?

from qv2ray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.