bichlepa / lang Goto Github PK
View Code? Open in Web Editor NEWMake your AutoHotkey scripts multilingual!
License: MIT License
Make your AutoHotkey scripts multilingual!
License: MIT License
Es scheint Probleme zu geben wenn man bestimmte Sonderzeichen mit übersetzt, in meinem Beispiel unten soll &Save`tCtrg+S
in &Speichern`tStrg+S
übersetzt werden, scheint aber nicht zu funktionieren.
Test.ahk
#SingleInstance force
#NoEnv
#Include language.ahk
_language:=Object()
_language.dir:=A_ScriptDir "\"
lang_init()
Menu, File, Add, % lang("&Open"), GuiClose
Menu, File, Add, % lang("Save`tCtrg+S"), GuiClose
Menu, File, Add, % lang("&Exit"), GuiClose
Menu, TopBar, Add, % lang("File"), :File
Gui, Menu, TopBar
Gui, Show, w200 h200, HELP
OnExit, Exit
return
GuiClose:
Exit:
ExitApp
en.ini
[language_info]
enname=English
name=English
[translations]
&Open=&Open
&Exit=&Exit
File=&File
Save`tCtrg+S=&Save`tCtrg+S
de.ini
[language_info]
enname=German
name=Deutsch
[translations]
&Open=&Öffnen
&Exit=&Beenden
File=&Datei
Save`tCtrg+S=&Speichern`tStrg+S
Eine super Idee die man noch hinzufügen könnte wäre das man mehre Übersetzungen für ein Wort hat und dann zBs. mit: lang("&Save",2)
aufrufen könnte.
Dann wäre: lang("&Save")
= &Speichern
Und das zweite lang("&Save",2)
= &Sparen
Ansonsten super tolle Funktion.
LG Skiper
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.