| 687 | } |
| 688 | |
| 689 | bool Localization::SetValueItemLabel |
| 690 | ( |
| 691 | uint8 ccID, |
| 692 | uint16 indexId, |
| 693 | int32 pos, |
| 694 | int32 itemIndex, |
| 695 | string label, |
| 696 | string lang |
| 697 | ) |
| 698 | { |
| 699 | uint64 key = GetValueKey(ccID, indexId, pos); |
| 700 | if (m_valueLocalizationMap.find(key) == m_valueLocalizationMap.end()) { |
| 701 | m_valueLocalizationMap[key] = new ValueLocalizationEntry(ccID, indexId, pos); |
| 702 | } else if (m_valueLocalizationMap[key]->HasItemLabel(itemIndex, lang)) { |
| 703 | Log::Write( LogLevel_Warning, "Localization::SetValueItemLabel: Duplicate Item Entry for CommandClass %d, ValueID: %d (%d) itemIndex %d: %s (Lang: %s)", ccID, indexId, pos, itemIndex, label.c_str(), lang.c_str() ); |
| 704 | } |
| 705 | m_valueLocalizationMap[key]->AddItemLabel(label, itemIndex, lang); |
| 706 | return true; |
| 707 | } |
| 708 | |
| 709 | string const Localization::GetValueItemHelp |
| 710 | ( |
no test coverage detected