diff --git a/afce_en_US.ts b/afce_en_US.ts
index ee7ab2d..7c31096 100644
--- a/afce_en_US.ts
+++ b/afce_en_US.ts
@@ -15,13 +15,13 @@
-
+
Input
-
+
Output
@@ -177,30 +177,30 @@
-
+
&Select programming language:
-
-
-
+
+
+
%1 - Algorithm Flowchart Editor
-
+
Afce
-
+
Select a file to open
-
-
+
+
Algorithm flowcharts (*.afc)
@@ -226,18 +226,18 @@
-
+
Help window
-
+
Zoom: %1 %
-
+
Process
@@ -248,7 +248,7 @@
-
+
FOR loop
@@ -288,28 +288,28 @@
-
+
Algorithm Flowchart Editor
-
-
+
+
&OK
-
+
&Cancel
-
+
%1 image (*.%2)
-
+
&Content:
@@ -429,92 +429,92 @@
-
+
There are unsaved changes. Do you really want to close afce?
-
+
Unsaved changes
-
+
You are about to open another document. It will discard all unsaved changes in the current document.
-
+
Select a file to save
-
-
+
+
Select a file to export
-
+
<html><h1>AFCE</h1><p>Algorithm Flowchart Editor</p><p>Copyright 2008-2014 Viktor Zinkevich. All rights reserved.</p> <p>Contributors: Sergey Ryabenko, Alexey Loginov</p> <p>The program is provided AS IS with NO WARRANTY OF ANY KIND,<br> INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND<br> FITNESS FOR A PARTICULAR PURPOSE.</p></html>
-
+
Branching
-
-
-
+
+
+
&Condition:
-
+
WHILE loop
-
+
Post-condition loop
-
+
&Variable:
-
+
&Start value:
-
+
&End value:
-
+
Specify the names of the variables (each per line):
Specify variable names to input (each per line):
-
+
Assign
-
+
&Source:
-
+
&Destination:
diff --git a/afce_ru_RU.ts b/afce_ru_RU.ts
index 0554624..fe33139 100644
--- a/afce_ru_RU.ts
+++ b/afce_ru_RU.ts
@@ -15,20 +15,20 @@
-
+
Process
Process / Assign
Процесс
-
+
Input
Ввод
-
+
Output
Вывод
@@ -194,25 +194,25 @@
Алгоритмический язык Ершова
-
+
&Select programming language:
&Выберите язык программирования:
-
-
-
+
+
+
%1 - Algorithm Flowchart Editor
%1 - Редактор блок-схем алгоритмов
-
+
Select a file to open
Выберите файл для открытия
-
-
+
+
Algorithm flowcharts (*.afc)
Блок-схемы алгоритмов (*.afc)
@@ -238,17 +238,17 @@
-
+
Help window
Окно помощи
-
+
Afce
-
+
Zoom: %1 %
Масштаб: %1 %
@@ -269,7 +269,7 @@
-
+
FOR loop
Цикл FOR
@@ -309,49 +309,49 @@
-
+
Algorithm Flowchart Editor
Редактор блок-схем алгоритмов
-
+
Unsaved changes
Несохранённые изменения
-
+
You are about to open another document. It will discard all unsaved changes in the current document.
Вы собираетесь открыть другой документ. Это приведёт к потере несохранённых изменений в текущем документе.
-
-
+
+
&OK
&ОК
-
+
<html><h1>AFCE</h1><p>Algorithm Flowchart Editor</p><p>Copyright 2008-2014 Viktor Zinkevich. All rights reserved.</p> <p>Contributors: Sergey Ryabenko, Alexey Loginov</p> <p>The program is provided AS IS with NO WARRANTY OF ANY KIND,<br> INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND<br> FITNESS FOR A PARTICULAR PURPOSE.</p></html>
<html><h1>AFCE</h1><p>Редактор блок-схем алгоритмов</p><p>Copyright 2008-2014 Виктор Зинкевич. Все права защищены.</p> <p>Соавторы: Сергей Рябенко, Алексей Логинов</p> <p>Программа предоставляется КАК ЕСТЬ БЕЗ ГАРАНТИЙ ЛЮБОГО РОДА,<br> ВКЛЮЧАЯ ГАРАНТИЮ ДИЗАЙНА, КОММЕРЧЕСКОЙ ЦЕННОСТИ И<br> ПРИГОДНОСТИ ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ.</p></html>
-
+
&Cancel
Отме&нить
-
+
Specify the names of the variables (each per line):
Specify variable names to input (each per line):
Укажите имена переменных (по одной на строку):
-
+
%1 image (*.%2)
Изображение %1 (*.%2)
-
+
&Content:
&Содержимое:
@@ -451,71 +451,71 @@
&Вид
-
+
There are unsaved changes. Do you really want to close afce?
Имеются несохранённые изменения. Вы действительно хотите закрыть afce?
-
+
Select a file to save
Выберите файл для сохранения
-
-
+
+
Select a file to export
Выберите файл для экспорта
-
+
Branching
Ветвление
-
-
-
+
+
+
&Condition:
&Условие:
-
+
WHILE loop
Цикл ПОКА
-
+
Post-condition loop
Цикл с постусловием
-
+
&Variable:
&Переменная:
-
+
&Start value:
&Начальное значение:
-
+
&End value:
&Конечное значение:
-
+
Assign
Присваивание
-
+
&Source:
&Источник:
-
+
&Destination:
&Назначение:
diff --git a/generators/freebasic.json b/generators/freebasic.json
new file mode 100644
index 0000000..9fb8358
--- /dev/null
+++ b/generators/freebasic.json
@@ -0,0 +1,39 @@
+{
+ "algorithm" : {
+ "template" : "%branch1%\n"
+ },
+ "if": {
+ "template":"If %cond% Then%branch1%\nElse%branch2%\nEnd If"
+ },
+ "for": {
+ "template":"For %var% = %from% To %to%%branch1%\nNext %var%"
+ },
+ "pre": {
+ "template":"While %cond%%branch1%\nWend"
+ },
+ "post": {
+ "template":"Do%branch1%\nLoop While %cond%"
+ },
+ "assign": {
+ "template":"%dest% = %src%"
+ },
+ "process": {
+ "template": "%text%"
+ },
+ "io": {
+ "template": "%vars%",
+ "list": ["vars"],
+ "separator": ",",
+ "glue": "\n",
+ "prefix" : "Input "
+ },
+
+ "ou": {
+ "template": "%vars%",
+ "list": ["vars"],
+ "separator": ",",
+ "glue": "\n",
+ "prefix" : "Print "
+
+ }
+}
\ No newline at end of file
diff --git a/mainwindow.cpp b/mainwindow.cpp
index a631f32..81994e3 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -366,6 +366,7 @@ void MainWindow::retranslateUi()
codeLanguage->addItem("Python", "py");
codeLanguage->addItem("VBScript", "vbs");
codeLanguage->addItem("BASIC-256", "bas256");
+ codeLanguage->addItem("FreeBASIC", "freebasic");
codeLanguage->addItem("Perl", "perl");
if (i!=-1)