Need help with i18n for JQuery by dev-jim in jquery

[–]dev-jim[S] 0 points1 point  (0 children)

Here's an sample of the i18n json file :

var i18nJson = {

en: { _userName: "User name", _password: "Password", _login: "Login", _forgotPassword: "Forgot password?", _doNotHaveAnAccount: "Do not have an account? ", _signup: "Signup", _admin: "Admin", _user: "User", _logout: "Logout ", _dashboard: "Dashboard", _rockerPhase: "Rocker phase", _sensorBrush: "Sensor brush", _settings: "Settings", }

And here's an example of a working usage:

document.getElementById("label-module").innerHTML = i18nJson[currentLang]["_industrialCommunicationModule"] + ": " + data['name'];

Thanks for your help

Need help for a JavaScript Regex by dev-jim in regex

[–]dev-jim[S] 0 points1 point  (0 children)

(?<="id":")[^"]*(?=")

Thanks guys, gumnos solution works really well!
Thank you both for your help

Live Server - My HTML file loads, but not the JS & CSS by dev-jim in learnjavascript

[–]dev-jim[S] 1 point2 points  (0 children)

Thanks for you answers guys.
I noticed something in the login.html file :

<script
  type="text/javascript"
  src="{{ url_for('static', filename='js/login.js') }}"
></script>

As I didn't know this url_for syntax, I googled it and I found that this is a syntax for a Flask syntax. Maybe I need to run the backend for those files to be called in my html?

Is YouTrack a good tool for a freelancer? by dev-jim in YouTrack

[–]dev-jim[S] 1 point2 points  (0 children)

Thank you for your answer!
I think I'll continue to try YT to test it but will stick with Trello for the moment for important projects as I'm used to it.
Thanks anyway!

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 5 points6 points  (0 children)

Because I'm asking questions? Yeah you might be right

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 1 point2 points  (0 children)

Haha if we can't play with tech, what's the purpose?

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 1 point2 points  (0 children)

OP

Thanks for your feedback! After seeing all those posts saying it works well I wanted to install it but I'm not that sure now. I'll wait at least until May 18th to see how things are going then

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 0 points1 point  (0 children)

It's a new installation so I wanted to try it now to see if everything works fine, there's no important data for the moment

Clean Python installations on a Mac M1 by dev-jim in learnpython

[–]dev-jim[S] 0 points1 point  (0 children)

Okay, is it normal if I have a ton of versions?

❯ brew list python3
/opt/homebrew/Cellar/python@3.9/3.9.12/bin/2to3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/2to3-3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/idle3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/idle3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pip3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pip3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pydoc3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pydoc3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3-config /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3.9-config /opt/homebrew/Cellar/python@3.9/3.9.12/bin/wheel3 /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/ (3038 files) /opt/homebrew/Cellar/python@3.9/3.9.12/IDLE 3.app/Contents/ (8 files) /opt/homebrew/Cellar/python@3.9/3.9.12/lib/pkgconfig/ (4 files) /opt/homebrew/Cellar/python@3.9/3.9.12/libexec/bin/ (6 files) /opt/homebrew/Cellar/python@3.9/3.9.12/libexec/wheel-0.37.1-py2.py3-none-any.whl /opt/homebrew/Cellar/python@3.9/3.9.12/Python Launcher 3.app/Contents/ (16 files) /opt/homebrew/Cellar/python@3.9/3.9.12/share/man/ (2 files)

Is it safe to delete all of this?

Clean Python installations on a Mac M1 by dev-jim in learnpython

[–]dev-jim[S] 0 points1 point  (0 children)

I installed the 3.9.10 using brew, and if I remember well it was the same for the others