Jump to content

Multilingual Suport


Libre
 Share

Recommended Posts

Multilingual support. (translation tool for your scripts)

Totaly freeware.

Only you have to add a little text in the credits of your program like Translations done with help of Libres multilingual support.

Enjoy it. :think:

Version 0.1 --- NOW WITH PREVIEW MODE !!! :(

Version 0.2 --- 11/4/2006 23:58--- Spacing Bug Fixed

Version 0.3 --- 12/4/2006 14:48--- Beautifulling and listview "|" char problem fixed.

Version 0.4 --- 14/4/2006 13:22--- Addings 10 variables more at the final of each script in the lang.lng for manual use in emergency case ,showing the name of the script in each portion of the file. look at the example file -> lang.lng

known bugs:

-Double quotes ""hi"" ----> someday i´ll fix it.

Notes:

-Copy your scripts to the translator folder and then run it.

-Dont use ¨ character in your scripts, i use it to make stringsplits, normaly nobody uses it, but u must to know.

translator.au3trans.au3

Example Result Lang.lng File:

[Data]
1=¨new.au3¨
2=¨Lang.lng¨
3=¨on¨
4=¨Multilingual Support By Libre¨
5=¨Choose a File to Tanslate                            - thanks. Valuater;)¨
6=¨New File¨
7=¨New.au3¨
8=¨&Add Script¨
9=¨&Translate¨
10=¨au3 to translate¨
11=¨Scripts (*.au3)¨
12=¨.au3¨
13=¨on¨
14=¨off¨
15=¨Data¨
16=¨Data¨
17=¨on¨
18=¨Great!¨
19=¨Translation Complete   ¨
20=¨Sorry!¨
21=¨Please choose an Au3 File First   ¨
22=¨on¨
23=¨tmp.txt¨
24=¨tmp.au3¨
25=¨Lang.lng¨
26=¨Data¨
27=¨#include <trans.au3>¨
28=¨Global $LANG = GetLangArray('¨
29=¨')¨
30=¨ini file exists¨
31=¨Add to var from line ¨
32=¨?   ¨
33=¨HotKeySet¨
34=¨Opt(¨
35=¨Call(¨
36=¨on¨
37=¨-   -¨
38=¨$LANG[¨
39=¨Data¨
40=¨Deselect the variables you dont want to be changed¨
41=¨Variable      |Text¨
42=¨Add Variables¨
43=¨$LANG¨
44=¨¨
45=¨¨
46=¨¨
47=¨¨
48=¨¨
49=¨¨
50=¨¨
51=¨¨
52=¨¨
53=¨¨
54=¨>------------------------------/ Here Ends /---------->translator.au3¨
55=¨Data¨
56=¨e_r_r_0_r¨
57=¨e_r_r_0_r¨
58=¨¨
59=¨¨
60=¨¨
61=¨¨
62=¨¨
63=¨¨
64=¨¨
65=¨¨
66=¨¨
67=¨¨
68=¨>------------------------------/ Here Ends /---------->trans.au3¨
Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

Not bad...

I played with it a little ( i have more ideas also... if you like the direction )

LIBRE UPDATED ABOVE... see first post

*** Fixed problem with HotKeySet()

Fixed problem with Opt()

Choice to add to previous file

and not write the #include again in the add

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Nice interface and additions, this is getting live.

Thanks valuater.

i think i will fix these bugs this evening and add a list of checkboxes box to show the changes if onebyone is not marked.

i will post this evening, i think, i can play this only for the evenings. now im working.

KNOWN BUGS

1 Double Quotes ----> yes, this is a bug.

2 Spacing... example " This Text ".... shows as "This Text" ----> i dont think so, the programa respect the spaces.

" hi"

in the ini file save as for example

1= hi

Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

nice work, it works very well

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
Share on other sites

I have to tell you this, because i have worked hard at it

I wrote a script *XPClean Menu* and it has 2400 lines of code. It also has external files that are ran as "skins" for the upper menu. There are internet, windows, and many, many more functions. I have a website for this program and have been wanting to add languages to the program for a long time. if you click on my post below xpclean-forums you will see that there is a translate #include and a button on the gui for language

peethebee wrote a similar program... it kept erroring out on my *XPCleanMenu*, i tried many times to fix his.... and finally gave up

Yours only had one... thats "1" error.. out of all the program and everything, including the skins, it worked fantastically!!!!

heres where the 1 problem was

MsgBox(64, $LANG[358], $LANG[359]$LANG[360]$LANG[361], 5);      MsgBox(64, "Sorry! ", "Please ""Create"" a Restore Point First  ", 5)

the only other questionable part was this spacing

$tab1 = GUICtrlCreateTabItem($LANG[37]);    $tab1 = GUICtrlCreateTabItem("  My Favorites    ")

8)

NEWHeader1.png

Link to comment
Share on other sites

I have to tell you this, because i have worked hard at it

I wrote a script *XPClean Menu* and it has 2400 lines of code. It also has external files that are ran as "skins" for the upper menu. There are internet, windows, and many, many more functions. I have a website for this program and have been wanting to add languages to the program for a long time. if you click on my post below xpclean-forums you will see that there is a translate #include and a button on the gui for language

peethebee wrote a similar program... it kept erroring out on my *XPCleanMenu*, i tried many times to fix his.... and finally gave up

Yours only had one... thats "1" error.. out of all the program and everything, including the skins, it worked fantastically!!!!

heres where the 1 problem was

MsgBox(64, $LANG[358], $LANG[359]$LANG[360]$LANG[361], 5);      MsgBox(64, "Sorry! ", "Please ""Create"" a Restore Point First  ", 5)

the only other questionable part was this spacing

$tab1 = GUICtrlCreateTabItem($LANG[37]);    $tab1 = GUICtrlCreateTabItem("  My Favorites    ")

8)

i think in the last version i fixed the spacing problem,can u check it ?

but i dont understand the first error did u explain. can u make a little program how show me the error.

thanks. :think:

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

EDIT***

it crashed, the listview was empty, i pressed add variables, then it said the file exists, then it eroored at

(139) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

If $aPreview[$ContPreview]= $TextLine[$i] Then

If ^ ERROR

+>AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 54.198

8)

NEWHeader1.png

Link to comment
Share on other sites

EDIT***

it crashed, the listview was empty, i pressed add variables, then it said the file exists, then it eroored at

8)

try it now, i made some changes to fix the spacing problems. i think now works better, but the doblle "" is another harder question . :think:

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

the listview is empty

the message box asks if i want to add to the ini file at line 129

the file name i gave it was empty ( headers only)

8)

can u post here the file do u want to translate it ? i will check it, i have done a lot of test with my scripts and no many errors like that. let me see it ..

Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

i just realized that the menu.au3 is in another folder

it has

tmp.txt

tmp.au3

my-new.au3

it rights there but its no reading there

definately a folder issue

8)

edit the file is in my sig... i will test in the same folder now

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

i just realized that the menu.au3 is in another folder

it has

tmp.txt

tmp.au3

my-new.au3

it rights there but its no reading there

definately a folder issue

8)

tmp.txt and tmp.au3 deletes automatly when u close the program or in each translation loop.

"Copy your scripts to the translator folder and then run it." in the top :think:

then works fine ?

Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

tmp.txt and tmp.au3 deletes automatly when u close the program or in each translation loop.

"Copy your scripts to the translator folder and then run it." in the top :think:

then works fine ?

yes... works great

idea

to be able to change the info in the listview... in other words input the new language line by line

example

label = "here is the old text"

input = "Type the new text here"

???

8)

NEWHeader1.png

Link to comment
Share on other sites

I did this program because i was needing to translate some own scripts freewarely.

For me works fine.

If u want, u can upgrade this program to do it better.

Thanks to Valuater for his additions and RazerM for their opinion , looks like nobody else interest this program.

Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

  • 1 year later...

Hi,

Some time ago, peethebee wrote a script called PowerTranslate, but sadly, this script is no longer available online, and I can't contact the author.

I think you took a look at the code at the time. Do you still have a copy ? And if so, could you post it somewere ( original topic : http://www.autoitscript.com/forum/index.ph...=powertranslate ) or send it by mail ( my mail : aldoniel@hotmail.com ).

Thank you very much in advance.

Aldoniel, France.

I recomend this one over peethebee's !!!

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...