Difference between revisions of "Translate"

From ويكي عربآيز
Jump to: navigation, search
m (استبدال النص - 'https://git.arabeyes.org/' ب'https://gitlab.com/')
 
Line 13: Line 13:
 
== Source ==
 
== Source ==
   
Translate is GPL and the source code is available in [https://git.arabeyes.org/arabeyes-i18n/technicaldictionary/tree/translate/ here].
+
Translate is GPL and the source code is available in [https://gitlab.com/arabeyes-i18n/technicaldictionary/tree/translate/ here].
   
 
Translate is written in C. It compiles successfuly on linux . Not tested on windows.
 
Translate is written in C. It compiles successfuly on linux . Not tested on windows.
 
 
 
=== Installation ===
 
=== Installation ===
git clone https://git.arabeyes.org/arabeyes-i18n/technicaldictionary.git
+
git clone https://gitlab.com/arabeyes-i18n/technicaldictionary.git
 
cd technicaldictionary/translate
 
cd technicaldictionary/translate
 
make
 
make

Latest revision as of 08:05, 21 February 2017

Translate is an IRC bot Afief created to be used on our IRC channel to allow fast queries to be made to the Technical Dictionary on the wiki. Translate currently can read the Technical Dictionary from the wiki but not write to it.

Usage

You have to go to our IRC channel #arabeyes on freenode network.

Then you can easily query it by writing its name and the term you want to find. i.e.:

<hydrated> Translate, Print
<Translate> hydrated, الاسم = طبع . 

Source

Translate is GPL and the source code is available in here.

Translate is written in C. It compiles successfuly on linux . Not tested on windows.

Installation

git clone https://gitlab.com/arabeyes-i18n/technicaldictionary.git
cd technicaldictionary/translate
make

Now you have a binary called 'bot' in the current directory.

Dependencies:

  • libwww
sudo apt-get install libwww0 libwww-dev build-essential

TODO

  • Remove more of the ugly C code and replace it with C++ that uses std::string
  • Make it write to the technical dictionary on the wiki.
    • details
    • details
  • Provide a link to the term on the wiki when using --url.
  • Provide a link when a term isn't found.