Coder Social home page Coder Social logo

Comments (9)

 avatar commented on September 26, 2024

I did my part, added danish translation. Merged it into your branch: #56

from braindanceprotocol.

Nats-ji avatar Nats-ji commented on September 26, 2024

I did my part, added danish translation. Merged it into your branch: #56

Thank you.

from braindanceprotocol.

Nats-ji avatar Nats-ji commented on September 26, 2024

#60 (comment)

I added a button in the language menu for updating the existing language files.
You need to add { "debug": true } in config.json for it to show up.
Imgur

This is how it works:

  1. It will scan init.lua for strings inside i18n("some_string"), and strings from protocols.lua.
  2. Then it will read and compare with the old language files.
  3. If the translation of this string exists in the old language files, it will copy it over.
  4. If the translation doesn't exist in the old language files, but exists in en.lua, it will copy it over from en.lua and comment it.
  5. Else it will leave it blank and comment. (e.g. -- window_title = "")
  6. Save into a new file with "_update" as the suffix. (e.g. en_update.lua)

from braindanceprotocol.

 avatar commented on September 26, 2024

So, after merging my new-features-v2 branch, the menu is empty. Probably because of missing strings I suppose.
Adding the debug = true in config.json doesn't seem to work for me at least.
The menu won't load, if I add debug = true in config.json. It loads fine with the default value {"lang":"en"}, but the menu is just empty.

from braindanceprotocol.

Nats-ji avatar Nats-ji commented on September 26, 2024

So, after merging my new-features-v2 branch, the menu is empty. Probably because of missing strings I suppose.

I don't think protocols.lua got merged properly. #63

The menu won't load, if I add debug = true in config.json. It loads fine with the default value {"lang":"en"}, but the menu is just empty.

Actually, it should be "debug" : true, I confused the json format with lua table.

{"lang":"en", "debug":true}

from braindanceprotocol.

 avatar commented on September 26, 2024

Ah, damn. That's my bad, I totally overlooked the item_, _name, _tip and _btn.

I'll not be able to fix it for now, since I'm going to bed. Will fix it whenever tomorrow hopefully.

from braindanceprotocol.

Nats-ji avatar Nats-ji commented on September 26, 2024

Ah, damn. That's my bad, I totally overlooked the item_, _name, _tip and _btn.

I'll not be able to fix it for now, since I'm going to bed. Will fix it whenever tomorrow hopefully.

Don't worry. I fixed it #67

from braindanceprotocol.

 avatar commented on September 26, 2024

Haha god damnit, I just fixed all that haha. It should be easily mergeable
Nevermind, I'll just remove my PR lol. It's essentially the same.

from braindanceprotocol.

Nats-ji avatar Nats-ji commented on September 26, 2024

oop, sorry. Didn't know you were already working on that. I wrote a script for this before, so I thought I'll do it and save you some trouble. xD

from braindanceprotocol.

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.