Giter VIP home page Giter VIP logo

Comments (12)

dpeddi avatar dpeddi commented on July 28, 2024 1

Are you sure about it?

./zh-check_translation.py -i zh-cn2en.txt.0.0.8.74
OK!

try to start the tool with:
./zh-cn2en.py -i zh-cn2pl.txt.0.0.8.74 -l pl -t

the original file will be rewritten with "#" in front of translation fo fix.
On screen you'll see the lenght in bytes of original string and the lenght in bytes of your translation
EG:
#E9 95 B7 E6 8C 89 E6 8C 89 E9 8D B5 => 長按按鍵(12) = Długie przyc.(14)
#E9 95 BF E6 8C 89 E6 8C 89 E9 94 AE => 长按按键(12) = Długie przyc.(14)
#E9 96 8B E5 95 9F E6 96 B9 E5 BC 8F => 開啟方式(12) = Jak otworzyć?(14)

As you can see you need to short your translation

from tools.

dpeddi avatar dpeddi commented on July 28, 2024

And so? Thy to short that line.

On your file you should see some line with # simbol.

You should make them shorter.

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

Ok, I found what is the problem ;)
In Chinese word "Bike" is "騎行" = 2 characters. That why 99% of our translation will be too long.

from tools.

dpeddi avatar dpeddi commented on July 28, 2024

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

@dpeddi so how should you suggest to solve this? :)
Checking "騎行" = 6 bytes ;)

from tools.

dpeddi avatar dpeddi commented on July 28, 2024

1 ZH-CN SYMBOL = 3 BYTES

from tools.

winni159 avatar winni159 commented on July 28, 2024

@Tymcio Hi, the problem is that you use special polish characters, like ł in "Długie przyc". ł = 2 BYTES and the lenght of string "Długie przyc" is 13 BYTES but the length of chinese "長按按鍵" is 12 BYTES. Try to replace this characters ł -> l

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

@winni159 the problem still appears :) As the code isn't checking the bytes, but characters:

  • Bike = 4
  • 騎行 = 2

from tools.

dpeddi avatar dpeddi commented on July 28, 2024

The problem isn't in the code but in your translation:
1- It seems the Bip doesn't support special character so probably ł will become [?] on your watch .
2- Due to binary patching your translation MUST fit the width of the original chinese string

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

Ok :) I did 2nd code and now rewriting translation, thanks! :)

from tools.

Tymcio avatar Tymcio commented on July 28, 2024

And now all is working ok :)

from tools.

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.