[Gambas-user] Tranlation to spanish

Martin mbelmonte at belmotek.net
Fri Jan 13 13:26:42 CET 2023


Hi,

I'm trying to update the translation of Gambas to Spanish since it's 1 
year since the last change. So I followed the tutorial, creating the 
fork etc.

First question (logistics)
I see that, in the case of Spanish there are about 4 users listed as 
translators, so the first question is: To update a translation, do I 
have to contact any of these translators? if so, which one? How are they 
working? or... Do I just translate the fork and make the merge request 
and that's it?

Second question (technical)
I find many text sentences that I think should not be among the 
translations (please see the code below as an example). I understand 
that by putting a "-" in the translation for a text string it will not 
be translated but I think wouldn't it be better if that string doesn't 
appear in the list of strings to translate? Of course, for this to be 
the case, small changes would have to be made in many places. What do 
you think about this?

Next topic, how to translate Gambas3 IDE, with the IDE or with a 
standalone program like PoEdit?

/Util.module (original)
Public Sub GetFileSize(iSize As Long) As String

   If iSize < 1000 Then
     Return Subst(("&1 B"), CStr(iSize))
   Else If iSize < 1000000 Then
     Return Subst(("&1 KiB"), Format(iSize / 1024, "0.#"))
   Else If iSize < 1000000000 Then
     Return Subst(("&1 MiB"), Format(iSize / 1048576, "0.#"))
   Else
     Return Subst(("&1 GiB"), Format(iSize / 1073741824, "0.#"))
   Endif

End

/Util.module (altered)
Public Sub GetFileSize(iSize As Long) As String

   If iSize < 1000 Then
     Return Subst("&1 B", CStr(iSize))
   Else If iSize < 1000000 Then
     Return Subst("&1 KiB", Format(iSize / 1024, "0.#"))
   Else If iSize < 1000000000 Then
     Return Subst("&1 MiB", Format(iSize / 1048576, "0.#"))
   Else
     Return Subst("&1 GiB", Format(iSize / 1073741824, "0.#"))
   Endif

End

Best regards
Martin.


More information about the User mailing list