| 123456789101112131415161718192021222324 |
- #include <cstddef>
- #include "strings.hpp"
- namespace cx_light {
- const char* strings::all_texts[] = {
- "cx-light",
- "Your lights",
- "Add light",
- "<b>Welcome in cx-light!</b>\n\n\
- Select light from list on the left, or create it, if it not already \
- exists in Your system. Remember to use same network, Your computer \
- must could ping Your light!\n"
- };
- const char* strings::get(unsigned int target) {
- size_t list_size = sizeof(strings::all_texts) / sizeof(char *);
- target = target % list_size;
- return strings::all_texts[target];
- }
- }
|