TheDcoder / _Translate

Simple translation library/UDF for AutoIt

Home Page:https://www.autoitscript.com/forum/topic/203997-_translate-simple-translation-udf-for-autoit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_Translate

Simple translation library/UDF for AutoIt

Inspired by gettext and AU3Text.

Usage

Extractor

  1. Place compiled eci.exe binary under eci\build folder
  2. Run Extract.au3 script to interactively extract all translatable strings from your script

NOTE: The extractor will only extract translatable strings from your code (i.e strings wrapped in the _ function):

#include "_.au3"

ConsoleWrite("This string will NOT be extracted")
ConsoleWrite(_("This string will be extracted"))

UDF

  1. Include _.au3 in your script
  2. Call _Translate_LoadTable with path of your translation table
  3. Use _ to wrap all of your strings which need to be translated

About

Simple translation library/UDF for AutoIt

https://www.autoitscript.com/forum/topic/203997-_translate-simple-translation-udf-for-autoit

License:MIT License


Languages

Language:C 76.1%Language:AutoIt 22.5%Language:CMake 1.4%