How to change text of label depending on language AND chosen PopupMenu?

I have a PopupMenu that lets me choose the MediaType.

If the MediaType is a disk then a label should read “Number of disks” on English systems and “Anzahl Disks” on German ones etc

If the MediaType is a book then a label should read “Number of pages” on English systems and “Anzahl Seiten” on German ones etc

I could do it with a long Select case statement for all the languages, but is there a more elegant way of doing this?

TiA

Markus

Isn’t this what Dynamic Constants are made for?

You create a Dyn.Const. and give it an English and German String/Text and when the User selects an entry from the PopUpMenu, you will change the label.Text using the Dyn.Const. for “books” or “disks”?

http://developer.xojo.com/localization

Found my problem. Overlooked a # and wrote

if me.text = “CD” OR me.text = “DVD” OR me.text = “Blu-Ray” then lblNumberOfDisksOrPages.text = #kNumberOfDisks

instead of

if me.text = “CD” OR me.text = “DVD” OR me.text = “Blu-Ray” then lblNumberOfDisksOrPages.text = kNumberOfDisks

Thanks.