Share this post

Link to post

Share on other sites

The Kandie Man 5

The Kandie Man 5

Yes, you could make each one an ini file and have them with a .lng extension. It wouldn't matter since autoit doesn't care about the file extension of an ini file. You could arrange the ini file into sections. For example, one section could be menus, one could be buttons, and one could be labels. Each label, button, and menu control would get its own key. You would then read the ini file with the .lng file extension and then set the text values of those controls to whatever it read they were in the ini file(that happened to have a .lng extension).

This is just one way you could do it, there are many other ways. I see this one as a pretty straight forward way to do it though.

EDIT

After examining the .lng file you posted a link to, i would like to inform you that the .lng file is nothing but an ini file with a .lng file extension, just as i suggested to do above.

Edited December 10, 2006 by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post

Link to post

Share on other sites

Noobster24 0

Noobster24 0

Yes, you could make each one an ini file and have them with a .lng extension. It wouldn't matter since autoit doesn't care about the file extension of an ini file. You could arrange the ini file into sections. For example, one section could be menus, one could be buttons, and one could be labels. Each label, button, and menu control would get its own key. You would then read the ini file with the .lng file extension and then set the text values of those controls to whatever it read they were in the ini file(that happened to have a .lng extension).

This is just one way you could do it, there are many other ways. I see this one as a pretty straight forward way to do it though.

EDIT

After examining the .lng file you posted a link to, i would like to inform you that the .lng file is nothing but an ini file with a .lng file extension, just as i suggested to do above.

That means that the variable $trans has not been used anywhere previously in the script and autoit has no idea what its value is. So declare it and fill its array with values and it won't give you an error anymore.

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post

Link to post

Share on other sites

Noobster24 0

Noobster24 0

That means that the variable $trans has not been used anywhere previously in the script and autoit has no idea what its value is. So declare it and fill its array with values and it won't give you an error anymore.