Rev 136 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 136 | Rev 161 | ||
|---|---|---|---|
| Line 114... | Line 114... | ||
| 114 | { |
114 | { |
| 115 | // this function returns the localized text corresponding to a given id string |
115 | // this function returns the localized text corresponding to a given id string |
| 116 | 116 | ||
| 117 | language_t *language; |
117 | language_t *language; |
| 118 | int text_index; |
118 | int text_index; |
| - | 119 | ||
| - | 120 | if ((language_id < 0) || (language_id > language_count)) |
|
| - | 121 | return (L""); // FIXME: something is really fucked up here |
|
| 119 | 122 | ||
| 120 | language = &languages[language_id]; // quick access to language |
123 | language = &languages[language_id]; // quick access to language |
| 121 | 124 | ||
| 122 | // cycle through all the localized texts and find the one we want |
125 | // cycle through all the localized texts and find the one we want |
| 123 | // NOTE: case-insensitive comparison mandatory, for dictionary entries are lowercase. |
126 | // NOTE: case-insensitive comparison mandatory, for dictionary entries are lowercase. |