Mercurial > projects > mde
comparison mde/content/ContentLoader.d @ 170:e45226d3deae
Context menu services not applicable to the current type can now be hidden.
Added files missing from previous commits.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 21:20:16 +0200 |
parents | 42fb97d9ff9e |
children |
comparison
equal
deleted
inserted
replaced
169:bc1cf73dc835 | 170:e45226d3deae |
---|---|
93 } | 93 } |
94 | 94 |
95 private: | 95 private: |
96 /* Load translations for all content. | 96 /* Load translations for all content. |
97 * Hooked as a change callback for l10n. */ | 97 * Hooked as a change callback for l10n. */ |
98 void translate (Content) { | 98 void translate (IContent) { |
99 logger.info ("loading translations..."); | 99 logger.info ("loading translations..."); |
100 Translation trl = Translation.get (l10n()); | 100 Translation trl = Translation.get (l10n()); |
101 | 101 |
102 // Translate existing content: | 102 // Translate existing content: |
103 foreach (symb, cont; Content.allContent) { | 103 foreach (symb, cont; Content.allContent) { |