D
D
Daeamon2017-02-21 20:47:55
ASP.NET
Daeamon, 2017-02-21 20:47:55

How to get all translation options for one word from resources?

Hello.
There is a file with resources in three languages ​​(there may be more in the future) It is
necessary to pull out an array of options for all elements.
For example, there is a Category element. You need to get the array ["Category","Category","Categorie"] given that all these translations are in the resource files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Null, 2017-02-21
@MaDestro

string[] lang = { "Русский", "Japan", "German" };
(Here you will add your language selection function yourself.)
Some selection function = lang.ElementAt(0 - 3); //Languages ​​from 0 to
3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question