Comments (7)
Hello Átila.
Thank you for your effort to try helping but I should say we've no plans to keep translations of the installing instructions in other languages than English.
from mod-ui.
How about the UI itself, any plans to enable translation?
from mod-ui.
No plans as well. We probably should to use an internationalization framework/library before start doing translations. If you are interested to help, maybe you could validate or improve the text (in English) of the instructions. It would be very appreciated.
from mod-ui.
Great! I really miss some links and tips to help the install process.
from mod-ui.
It's quite easy to implement, no need for another lib. Use labels like
e.g.:
Setup language files (which can be loaded in whatever way) like e.g.:
languages/en.js
if (!dictionary)
dictionary = {}
dictionary["en"] = {
"whatever_expression" : "Whatever Expression"
}
And add a language selector in your application like e.g.:
this.default_language : "en";
this.set_language : function (lang) {
if (dictionary.hasOwnProperty(lang))
this.language = lang;
else
throw "Invalid language '" + lang + "'";
var def = this.default_language;
$("[lang]").each( function () {
var t = $(this);
var l = t.attr("lang");
t.text(dictionary[lang][l]
|| dictionary[def][l]
|| l);
});
}
Or: instead of throwing load the language asynchronously and call
this.set_language(lang) again.
To make things easy for translators:
Best, Markus.
Update: shall I add it to my branch these days?
from mod-ui.
There's a great lib for this called Jed.
Has a great documentation, it's similar to other known libraries (has _(value)
, support for plurals, etc).
I think it's worth to consider.
from mod-ui.
Hey Markus. Better to ask @brunogola and @falkTX they are working in the mod-ui code.
from mod-ui.
Related Issues (20)
- Unable to connect to output (no mod-monitor ports) HOT 6
- Mod-ui should visually update to reflect connections broken or made using Catia or QJackCtl HOT 3
- ERROR: Failed to open HMI serial port HOT 4
- No connection in "Hardware Capture"
- Filemanager: symlinks to files are created in saved pedalboard instead of providing correct path (e.g. as in snapshot.json) HOT 4
- Filemanager: mod-ui doesn't sync UI with plugin loaded state
- Python 3.10: Can't create a device key: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 5
- Can't load store plugins during local development / no API key HOT 1
- Abandonned and unmaintened pycrypto -> use pycryptodome instead. HOT 3
- MIDI device settings show channel option 0-15
- Midi Port not showing up in UI and web backend HOT 6
- module 'collections' has no attribute 'MutableMapping' HOT 4
- Ui does not refresh properly when load_bundle is called.
- [Bug] Saving on deleted snapshot
- No thumbnail for plugin
- Control values of knobs sent as integer HOT 2
- Outputs cannot be connected from Web UI HOT 6
- Couldn’t address parameter, not allowed HOT 5
- Mod-ui and MOD Duo firmware versions HOT 2
- Crash of mod-ui when moving from midi separated mode to midi aggregated mode HOT 2
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 mod-ui.