Skip to content

TheDcoder/_Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

_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