Multilanguage support in AppDesigner GUI
4 次查看(过去 30 天)
显示 更早的评论
I am wondering if there is a standard way to implement the multilanguage suppport for the AppDesigner-based GUI. I need to write the program that will allow user to switch between the languages in the GUI menu.
0 个评论
采纳的回答
Eric Delgado
2022-10-23
Hey @Nikolay, you could use an excel file as a dictionary (or a json file) and you should fill "Tag" property of each object subject to language change... see app attached!
% Main part
for ii = 1:height(app.Dictionary)
h = findall(groot, 'Tag', app.Dictionary.TAG{ii});
switch app.Dictionary.PROPERTY{ii}
case "Text"
set(h, app.Dictionary.PROPERTY{ii}, textArray{ii});
case "Items"
set(h, app.Dictionary.PROPERTY{ii}, strsplit(textArray{ii}, ';'));
h.Value = h.Items{idx};
end
end
The result...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!