But i know that the interface elements are translated in these languages. This means that these values can be extracted from FreeCAD and inserted into the wiki.
For example this script extracts translations from the FreeCAD interface and outputs them to the console. Then, if desired, they can be inserted as a translation to page https://wiki.freecadweb.org/Preferences_Editor
Script:
Code: Select all
#! python
# -*- coding: utf-8 -*-
# (c) 2021 <Evgeniy>
from FreeCAD import Qt
dict={
"Portuguese, Brazilian":"pt-br",
"Russian":"ru",
"German":"de",
"French":"fr",
"Polish":"pl",
"Spanish":"es",
"Italian":"it",
"Romanian":"ro",
"Croatian":"hr",
"Czech":"cs",
"Japanese":"ja",
"Korean":"ko",
"Portuguese":"pt",
"Turkish":"tr",
"Ukrainian":"uk",
"Chinese Simplified":"zh-cn",
"Swedish":"sv",
"Indonesian":"id"
}
header={
"Gui::Dialog::DlgGeneral":"General",
"Gui::Dialog::DlgSettingsDocument":"Document",
"Gui::Dialog::DlgSettingsSelection":"Selection",
"Gui::Dialog::DlgEditorSettings":"Editor",
"Gui::Dialog::DlgReportView":"Output window",
"Gui::Dialog::DlgSettingsMacro":"Macro",
"Gui::Dialog::DlgSettingsUnits":"Units",
"Gui::Dialog::DlgSettings3DView":"3D View",
"Gui::Dialog::DlgSettingsNavigation":"Navigation",
"Gui::Dialog::DlgSettingsViewColor":"Colors",
"MeshGui::DlgSettingsMeshView":"Mesh view",
}
#Save language
loc = App.Gui.getLocale()
for lang in dict :
# Print langage
print("\n\n\n"+ dict[lang] + "|" + lang +"\n\n\n")
# Set language
App.Gui.setLocale(lang)
for context in header :
print("==="+header[context]+"=== | ==="+Qt.translate(context,header[context])+"===")
# Restore language
App.Gui.setLocale(loc)
Code: Select all
pt-br|Portuguese, Brazilian
===General=== | ===Geral===
===Document=== | ===Documento===
===Selection=== | ===Seleção===
===Editor=== | ===Editor===
===Output window=== | ===Janela de Saída===
===Macro=== | ===Macro===
===Units=== | ===Unidades===
===3D View=== | ===Vista 3D===
===Navigation=== | ===Navegação===
===Colors=== | ===Cores===
===Mesh view=== | ===Vista de malhas===
ru|Russian
===General=== | ===Основные===
===Document=== | ===Документ===
===Selection=== | ===Выделение===
===Editor=== | ===Редактор кода===
===Output window=== | ===Просмотр отчёта===
===Macro=== | ===Макрос===
===Units=== | ===Единицы измерения===
===3D View=== | ===3D Вид===
===Navigation=== | ===Навигация===
===Colors=== | ===Цвета===
===Mesh view=== | ===Просмотр в виде полигональной сетки===
de|German
===General=== | ===Allgemein===
===Document=== | ===Dokument===
===Selection=== | ===Auswahl===
===Editor=== | ===Editor===
===Output window=== | ===Ausgabefenster===
===Macro=== | ===Makro===
===Units=== | ===Einheiten===
===3D View=== | ===3D-Viewer===
===Navigation=== | ===Navigation===
===Colors=== | ===Farben===
===Mesh view=== | ===Netz===
fr|French
===General=== | ===Général===
===Document=== | ===Document===
===Selection=== | ===Sélection===
===Editor=== | ===Éditeur===
===Output window=== | ===Fenêtre de sortie===
===Macro=== | ===Macro===
===Units=== | ===Unités===
===3D View=== | ===Vue 3D===
===Navigation=== | ===Navigation===
===Colors=== | ===Couleurs===
===Mesh view=== | ===Vue du maillage===
pl|Polish
===General=== | ===Ogólne===
===Document=== | ===Dokument===
===Selection=== | ===Zaznaczanie===
===Editor=== | ===Edytor===
===Output window=== | ===Okno raportów===
===Macro=== | ===Makrodefinicje===
===Units=== | ===Jednostki===
===3D View=== | ===Widok 3D===
===Navigation=== | ===Nawigacja===
===Colors=== | ===Kolory===
===Mesh view=== | ===Widok siatki===
es|Spanish
===General=== | ===General===
===Document=== | ===Documento===
===Selection=== | ===Selección===
===Editor=== | ===Editor===
===Output window=== | ===Ventana de salida===
===Macro=== | ===Macro===
===Units=== | ===Unidades===
===3D View=== | ===Vista 3D===
===Navigation=== | ===Navegación===
===Colors=== | ===Colores===
===Mesh view=== | ===Vista de la malla===
it|Italian
===General=== | ===Generale===
===Document=== | ===Documento===
===Selection=== | ===Selezione===
===Editor=== | ===Editor===
===Output window=== | ===Finestra di Output===
===Macro=== | ===Macro===
===Units=== | ===Unità===
===3D View=== | ===Vista 3D===
===Navigation=== | ===Navigazione===
===Colors=== | ===Colori===
===Mesh view=== | ===Visualizzazione Mesh===
ro|Romanian
===General=== | ===General===
===Document=== | ===Documentul===
===Selection=== | ===Selecţie===
===Editor=== | ===Editor===
===Output window=== | ===Fereastra de ieşire===
===Macro=== | ===Macrocomandă===
===Units=== | ===unitati===
===3D View=== | ===Vizualizare 3D===
===Navigation=== | ===Navigare===
===Colors=== | ===Culori===
===Mesh view=== | ===Vizualizare plasei===
hr|Croatian
===General=== | ===Općenito===
===Document=== | ===Dokument===
===Selection=== | ===Izbor===
===Editor=== | ===Urednik===
===Output window=== | ===Izlazni prozor===
===Macro=== | ===Makro===
===Units=== | ===Mjerne jedinice===
===3D View=== | ===3D Prikaz===
===Navigation=== | ===Navigacija===
===Colors=== | ===Boje===
===Mesh view=== | ===Pregled mreže===
cs|Czech
===General=== | ===Obecné===
===Document=== | ===Dokument===
===Selection=== | ===Výběr===
===Editor=== | ===Editor===
===Output window=== | ===Výstupní okno===
===Macro=== | ===Makro===
===Units=== | ===Jednotky===
===3D View=== | ===3D pohled===
===Navigation=== | ===Navigace===
===Colors=== | ===Barvy===
===Mesh view=== | ===Náhled sítě===
ja|Japanese
===General=== | ===標準===
===Document=== | ===ドキュメント===
===Selection=== | ===選択範囲===
===Editor=== | ===エディタ===
===Output window=== | ===出力ウィンドウ===
===Macro=== | ===マクロ===
===Units=== | ===単位===
===3D View=== | ===3D ビュー===
===Navigation=== | ===ナビゲーション===
===Colors=== | ===色===
===Mesh view=== | ===メッシュ表示===
ko|Korean
===General=== | ===일반===
===Document=== | ===문서===
===Selection=== | ===선택===
===Editor=== | ===편집기===
===Output window=== | ===출력 창===
===Macro=== | ===매크로===
===Units=== | ===단위===
===3D View=== | ===3D 보기===
===Navigation=== | ===탐색===
===Colors=== | ===색상===
===Mesh view=== | ===메시 보기===
pt|Portuguese
===General=== | === Geral ===
===Document=== | === Documento ===
===Selection=== | ===Seleção===
===Editor=== | ===Editor===
===Output window=== | ===Janela mensagens===
===Macro=== | ===Macro===
===Units=== | ===Unidades===
===3D View=== | ===Vista 3D===
===Navigation=== | ===Navegação===
===Colors=== | === Cores ===
===Mesh view=== | ===Vista de malha===
tr|Turkish
===General=== | ===Genel===
===Document=== | ===Döküman===
===Selection=== | ===seçim===
===Editor=== | ===Düzenleyici===
===Output window=== | ===Çıktı penceresi===
===Macro=== | ===Makro===
===Units=== | ===Birimler===
===3D View=== | ===3D Görünüm===
===Navigation=== | ===Gezinme===
===Colors=== | ===Renkler===
===Mesh view=== | ===Kafes görüntüsü===
uk|Ukrainian
===General=== | ===Загальне===
===Document=== | ===Документ===
===Selection=== | ===Вибір===
===Editor=== | ===Редактор===
===Output window=== | ===Вікно виводу===
===Macro=== | ===Макрос===
===Units=== | ===Одиниці===
===3D View=== | ===3D вигляд===
===Navigation=== | ===Навігація===
===Colors=== | ===Кольори===
===Mesh view=== | ===Вигляд сітки===
zh-cn|Chinese Simplified
===General=== | ===常规===
===Document=== | ===文档===
===Selection=== | ===选择===
===Editor=== | ===编辑器===
===Output window=== | ===输出窗口===
===Macro=== | ===宏===
===Units=== | ===单位===
===3D View=== | ===三维视图===
===Navigation=== | ===导航栏===
===Colors=== | ===颜色===
===Mesh view=== | ===网格视图===
sv|Swedish
===General=== | ===Allmänt===
===Document=== | ===Dokument===
===Selection=== | ===Markering===
===Editor=== | ===Redigerare===
===Output window=== | ===Utmatningsfönster===
===Macro=== | ===Makro===
===Units=== | ===Enheter===
===3D View=== | ===3D Vy===
===Navigation=== | ===Navigering===
===Colors=== | ===Färger===
===Mesh view=== | ===Nätvy===
id|Indonesian
===General=== | ===Umum===
===Document=== | ===Dokumen===
===Selection=== | ===Pilihan===
===Editor=== | ===Editor===
===Output window=== | ===Jendela output===
===Macro=== | ===Makro===
===Units=== | ===Unit===
===3D View=== | ===Tampilan 3D===
===Navigation=== | ===Navigasi===
===Colors=== | ===Warna===
===Mesh view=== | ===Mesh tampilan===
zh-tw|Chinese Traditional
===General=== | ===一般===
===Document=== | ===文件===
===Selection=== | ===選擇===
===Editor=== | ===編輯器===
===Output window=== | ===輸出視窗===
===Macro=== | ===巨集===
===Units=== | ===單位===
===3D View=== | ===3D視圖===
===Navigation=== | ===導覽===
===Colors=== | ===顏色===
===Mesh view=== | ===網格視圖===