Issu with space and how to deal with this prolem

37 views
Skip to first unread message

ADEL KASSAH

unread,
Aug 31, 2015, 4:03:09 PM8/31/15
to App Inventor Open Source Development
Hello
I did the French translation of AI. Unlike, the other translation, I choose to make spaces into the name of Components, properties and methods (this choice is to make AI more close to normal syntax for a non computer science users, it will make AI more friendly) . I found an issue with 2 things:

1)  For the name of the components, when they are in the pallet,  there is no problem with their spaces. When creating a component, the name on the new component contain spaces. This will make the project impossible to compile. But, when you rename them, even if the user let spaces (and does not change any thing), there is a procedure that replace spaces automatically by underscore.

I see 2 solutions:
=> When the user creates the components with a name containing spacing, a function will be called to replace spaces. By this solution, We will keep spaces and App Inventor always friendly. In Arabic and some languages, there is the need of spaces to separate words (uppercase caracters does not exist)
=> Removing spaces from the name of the components, but in some languages, they should put underscore between words.

2)  In some event, there is variable related to the event  that might contain spaces (the total number of this case is not big). For example with the texting component, there is a variable called Text received. If the user uses that variable, there is no possibility to rename them. So the only solution during the workshop I had was to switch to English (a very SAD moment for me!)
I see 2 solutions:
=> Removing spaces in my translation (but some other languages might have problems or will need underscores)
=> Making a function that make spaces inside the code without being seen by the users.

We have a workshop for teachers this Saturday. It will be their first contact with AI. So, I hope that we can make before that.

Best wishes

ADEL

Jeffrey Schiller

unread,
Sep 1, 2015, 9:01:15 AM9/1/15
to App Inventor Open Source Development
Can you identify the edits that are needed. You can either update them on the Pootle server (which I would then have to extract the updates from, which is a pain) or better, submit a pull request that updates the french properties file. If this can be done before tomorrow night (U.S. East Coast time, I can deploy a release with the updates).

This upcoming weekend is a holiday weekend here in the U.S. and also the last weekend before many schools return to session (some are already in session) so making the necessary changes as early in this week as possible would be helpful. Thanks.

-Jeff

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Abraham Getzler

unread,
Sep 2, 2015, 12:34:44 PM9/2/15
to app-inventor-o...@googlegroups.com
A word of caution here ...

A while back, I encountered a new user who had no concept of computer language syntax conventions, who had managed to embed special characters into his screen and component names.  The user experienced a loss of blocks in the Blocks Editor, because the underlying text based structures were broken. 

I posted the lack of name cleaning as a bug, subsequently fixed.
(Sorry, I can't find the thread.)

So if you go through with these changes, I recommend checking for block loss through a project export/import cycle as part of you testing.

ABG



Jeffrey Schiller

unread,
Sep 2, 2015, 12:49:39 PM9/2/15
to app-inventor-o...@googlegroups.com
I have taken your changes from the Pootle server and found a few other places that needed fixing as well. When you get a chance, please check over the changes. You can find them at this Pull Request on GitHub:

     https://github.com/mit-cml/appinventor-sources/pull/550

I would like to get this released this evening.

-Jeff
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.


--
_______________________________________________________________________
Jeffrey I. Schiller
Information Systems and Technology – MIT App Inventor
Massachusetts Institute of Technology
77 Massachusetts Avenue  Room 32-386
Cambridge, MA 02139-4307
617.910.0259 - Voice
_______________________________________________________________________


Jeffrey Schiller

unread,
Sep 2, 2015, 10:33:53 PM9/2/15
to ADEL KASSAH, app-inventor-o...@googlegroups.com
I'll be deploying App Inventor verion nb145g in a few minutes. It includes the translation fix. Let me know if things work better now.

-Jeff

ADEL KASSAH

unread,
Sep 3, 2015, 6:09:28 PM9/3/15
to App Inventor Open Source Development, adelk...@gmail.com
I am really sorry for my late answer. I was not connected.
Yes, I started deleting spaces but did not continue because I wanted to get an answer.
Everything works fine except for:
- Interfaceutilisateur (it should be InterfaceUtilisateur to see that we have 2 words)
- Capteur Position (space)
- Sélectionneur numéro de téléphone (space)
- Capteur NXT Couleur (space)
- Nxt Commandes directes (space)

Please, could you check the first bloc of text category, there is a problem with that.

Thank you so much for the Update. I am really happy!




Le mercredi 2 septembre 2015 19:33:53 UTC-7, j...@mit.edu a écrit :
I'll be deploying App Inventor verion nb145g in a few minutes. It includes the translation fix. Let me know if things work better now.

-Jeff

On Wednesday, September 2, 2015, Jeffrey Schiller <j...@mit.edu> wrote:
I have taken your changes from the Pootle server and found a few other places that needed fixing as well. When you get a chance, please check over the changes. You can find them at this Pull Request on GitHub:

     https://github.com/mit-cml/appinventor-sources/pull/550

I would like to get this released this evening.

-Jeff

On Monday, August 31, 2015, ADEL KASSAH <adelk...@gmail.com> wrote:
Hello
I did the French translation of AI. Unlike, the other translation, I choose to make spaces into the name of Components, properties and methods (this choice is to make AI more close to normal syntax for a non computer science users, it will make AI more friendly) . I found an issue with 2 things:

1)  For the name of the components, when they are in the pallet,  there is no problem with their spaces. When creating a component, the name on the new component contain spaces. This will make the project impossible to compile. But, when you rename them, even if the user let spaces (and does not change any thing), there is a procedure that replace spaces automatically by underscore.

I see 2 solutions:
=> When the user creates the components with a name containing spacing, a function will be called to replace spaces. By this solution, We will keep spaces and App Inventor always friendly. In Arabic and some languages, there is the need of spaces to separate words (uppercase caracters does not exist)
=> Removing spaces from the name of the components, but in some languages, they should put underscore between words.

2)  In some event, there is variable related to the event  that might contain spaces (the total number of this case is not big). For example with the texting component, there is a variable called Text received. If the user uses that variable, there is no possibility to rename them. So the only solution during the workshop I had was to switch to English (a very SAD moment for me!)
I see 2 solutions:
=> Removing spaces in my translation (but some other languages might have problems or will need underscores)
=> Making a function that make spaces inside the code without being seen by the users.

We have a workshop for teachers this Saturday. It will be their first contact with AI. So, I hope that we can make before that.

Best wishes

ADEL

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To post to this group, send email to app-inventor-open-source-dev@googlegroups.com.

Jeffrey Schiller

unread,
Sep 4, 2015, 8:46:17 PM9/4/15
to app-inventor-o...@googlegroups.com, ADEL KASSAH
I just deployed nb145h which fixes these...

-Jeff

-Jeff
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages