Code Monkey home page Code Monkey logo

Comments (11)

stefankueng avatar stefankueng commented on August 15, 2024

The real problem here is not the language files but the detection of whether an instance of BP is portable or not.
Right now, the detection is done by reading a registry key: if it exists, BP assumes that it was installed, otherwise it assumes it is portable.
So with this detection mechanism, you can't have an installed and a portable version at the same time on the same machine.

Suggestions for other detection mechanisms are welcome...

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

The installation was really problematic. If the portable version check for updates, after downloading and installing the new version, the portable version becomes an installed version. Thus I suggest you not use the registry detection.

Typical detection of portable version mechanism places a file into the installation directory. Someone uses an empty file named portable.ini (or another name), someone just places the settings file there (when the application finds the settings file there, it assumes that it is running in portable mode).

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

Thank you for taking time working with this issue.

I was running BowPad under portable mode (no entry in registry).
While I launched the latest compiled build, it searched for the lang file on the web (I cancelled it since I wanted to use my own lang file) and it removed my localized lang file in the BowPad folder after my cancellation.

Where will the lang file are supposed to be located if BowPad is running in portable mode?

from bowpad.

stefankueng avatar stefankueng commented on August 15, 2024

the lang file is downloaded to the bin folder in portable mode.

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

I tried to place the BowPad_zh-CN.lang file into the following positions, but BowPad still insisted to load lang file from the web.

(.\ stands for the BowPad dir)

.\BowPad_zh-CN.lang
.\bin\BowPad_zh-CN.lang
.\BowPad\bin\BowPad_zh-CN.lang

My connection was slow, it had not yet finished the download...

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

I checked the behavior of BowPad. The lang file was expected to be placed at .\BowPad_zh-CN.lang for Chinese language.

My compiled binary BowPad.exe was versioned 2.6.5.0 (I did not used nant to increment the version number), and the lang file had the same version number.
It seemed that BowPad somehow thought the file was not good and attempted to download it from the web.

from bowpad.

stefankueng avatar stefankueng commented on August 15, 2024

it if had the same version: maybe the reason it failed the check was that the lang file and the BP are not the same bitness (e.g. BP is 64-bit exe and the lang file a 32-bit version or vice versa).

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

Both BowPad and the lang file were 64bit.
It had been OK for years before this commit.

from bowpad.

stefankueng avatar stefankueng commented on August 15, 2024

and when you let it download from the web, does it do that repeatedly or does it accept the downloaded version?

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

I tried to copy some previous versions that I copied to my servers to my computer which was previously good, the recently built BowPad removed them and insisted downloading from the web and accepted the downloaded version.

from bowpad.

wmjordan avatar wmjordan commented on August 15, 2024

I debugged the compilation and found the problem.

I've gotten a .\BowPad_zh-CN.lang in my BowPad folder which was using the 64 bit layout but with an I386 header.
It was the problem of my localization tool.

I changed to use another localization tool and the problem was solved.

from bowpad.

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.