Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngUse File - Gambas translation of you application

Translate a Gambas project.



traduction.jpg

Do you want to trasnlate a gambas application?
Select in first in your project properties this option : traslation is available.
After, select your new language.
And translate every sentence in your application
When you have finished, save your file.

Your new file will be in the application path and .lang folder.

If you want to translate some text in your code, write your text like this beetween () symbol :

Public Sub Button2_Click()
Label2.Text = ("You click on this button")
End


Your text will be in the translation form.

To finish, here you find a small demonstration to list language file from your translations in your .lang folder.
Here the code :

Public Sub _new()
End

Public Sub Form_Open()
End

Sub AfficheRepertoire(Repertoire As String)
Dim Fichier As String
For Each Fichier In Dir(Repertoire, "*.po").Sort()
TextArea1.Insert(Fichier & Chr$(10))
Next
End

Public Sub Button2_Click()
Label2.Text = ("You click on this button")
End

Public Sub Button1_Click()
AfficheRepertoire(Application.Path & "/.lang/")
End



Thanks.

Creation date : 26/05/2014 @ 21:16
Last update : 26/05/2014 @ 21:16
Category : Use File
Page read 3915 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^