Mercurial > projects > mde
comparison mde/lookup/Translation.d @ 128:41582439a42b
Added support for dynamic EnumContent loading and saving, with translation loading.
WMScreen.init removed; code moved to this() since class is now created by main() instead of a static this().
Fix for SwitchWidget not passing events. Still some resizing bugs evident in SwitchWidget :-(
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 14 Jan 2009 20:24:14 +0000 |
parents | 3328c6fb77ca |
children | 7ababdf97748 |
comparison
equal
deleted
inserted
replaced
127:3328c6fb77ca | 128:41582439a42b |
---|---|
154 Entry getStruct (char[] id) { | 154 Entry getStruct (char[] id) { |
155 Entry* p = id in entries; | 155 Entry* p = id in entries; |
156 if (p) { | 156 if (p) { |
157 return *p; | 157 return *p; |
158 } else { | 158 } else { |
159 logger.warn ("Unable to find translation for {} in {}", id, section); | |
159 Entry ret; | 160 Entry ret; |
160 ret.name = id; | 161 ret.name = id; |
161 return ret; | 162 return ret; |
162 } | 163 } |
163 } | 164 } |