/panyi

🌏 Translate Baidu Wangpan (Netdisk) for Windows to other languages

Primary LanguageC#OtherNOASSERTION

panyi

Translate Baidu Wangpan (Netdisk) for Windows to other languages.

How to use

If you simply want to translate Baidu Netdisk to English, just download and run panyi.exe.

Otherwise, refer to the Arguments section below.

How it works

Baidu Netdisk reads its strings from %AppData%\baidu\BaiduNetdisk\resource.db:StringTable.xml, a Compound File Binary Format stream.

panyi simply replaces these strings with their translated counterparts from panyi.ini.

Build

  1. Download and install [Microsoft Visual Studio]: https://visualstudio.microsoft.com/vs/community/
  2. Open the panyi.sln
  3. From the top menu select Build -> Build Solution
  4. The resulting executable will be under panyi/bin/Debug subfolder

Arguments

Argument Description
-update Downloads the latest panyi.ini from this repository. Your old copy will be backed up.
-file [path] Optional path to resource.db. If unspecified, panyi will use the registry to find resource.db.
-lang [lang] Optional language from panyi.ini that you want to translate to. Defaults to en.
-x Extracts StringTable.xml strings to your panyi.ini's cn section.

Contributing

Pull requests with translation improvements or new languages are welcome!

Just fork this repository and commit your changes to panyi.ini, then submit a pull request. Keep in mind that strings over 500 chars are not always processed well, consider truncating the long lines in your panyi.ini.

Acknowledgements

Project Version Copyright License
OpenMcdf 2.1 Copyright © 2010-2018, Federico Blaseotto MPL-2.0