Comments (11)
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.
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.
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.
the lang file is downloaded to the bin folder in portable mode.
from bowpad.
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.
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.
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.
Both BowPad and the lang file were 64bit.
It had been OK for years before this commit.
from bowpad.
and when you let it download from the web, does it do that repeatedly or does it accept the downloaded version?
from bowpad.
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.
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)
- 使用 Configure Styles 时 BowPad 崩溃退出 HOT 2
- Dark Theme Visibility Issue On "Other" Tab In Certain Sections HOT 1
- Click the right scrollbar to pagdown/up the page HOT 2
- Load last session restores a previously closed window HOT 1
- Spell Check Failure
- Add To Dictionary Failure
- Needless Duplication of Tabs Drop-Down Lists
- French translation for "BowPad64-2.9.0"
- Suggestion: Add thousandth division
- Suggestion : Convert Tabs to Spaces HOT 1
- Issues: Wordrap not persistent, StyleConf not saving, no AHK, Horiz scroll, etc.. HOT 5
- 2.90 looks not stable as 2.8.9, HOT 3
- Feature Request: Auto Dark Mode
- Syntax highlighting for Dart HOT 1
- Question: can directories be excluded on finding files HOT 4
- word-wrap setting should be stored by filetype
- autohotkey lexer
- hide horizontal scroll bar if there is no text overflow
- tab size and monospace font problems HOT 10
- Save Button Remains Inactive Post File Modification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bowpad.