French DSL

Bug #1801497 reported by hilaire on 2018-11-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo II
Wishlist
Unassigned

Bug Description

The DrGeoSketch class is extended with method names in French to write DSL Smaltalk Sketch in French.

What about definining a DrGeoFigure subclass of DrGeoSketch and put there the methods with French names?

Related to ​#1621397

Related branches

Hannes Hirzel (hannes-hirzel) wrote :

What about a 'Data objec' or 'Spec object' which indicates which English method name corresponds to which french method name. This could be done by suppyling a sourceString which contains a CSV version of the method equivalences.

Then the DrGeoFigure may be generated by a simple script as

Object subclass: #DrGeoFigure
 instanceVariableNames: 'drgeo'
 classVariableNames: ''
 poolDictionaries: ''
 category: 'DrGeoII-Core-Script'

A generated method of a DrGeoFigureg object then sends the English method equivalent to a DrGeoSketch object.

This will allow to easily extend the number of translations by having translators to come up with a CSV list of method equivalents only. Translators do not need to be Smalltalk programmers.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers