| 605 | inline StringTable& GetStringTable() |
| 606 | { |
| 607 | static StringTable instance; |
| 608 | return instance; |
| 609 | } |
| 610 | |
| 611 | #pragma clang diagnostic pop |
| 612 | |
| 613 | // API compatibility macro (GLanguage comes from Stringtable.hpp) |
| 614 | #define GStringTable GetStringTable() |
| 615 | |
| 616 | void LoadStringtable(RString type, RString filename, float priority, bool init) |
| 617 | { |
| 618 | GStringTable.Load(type, filename, priority, init); |
| 619 | ++GLanguageGeneration; |
| 620 | } |
| 621 | |
| 622 | int RegisterString(RString name) |
| 623 | { |
| 624 | return GStringTable.Register(name); |
| 625 | } |
| 626 | |
| 627 | RString LocalizeString(int ids) |
| 628 | { |
no test coverage detected