mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 16:07:10 -06:00
Initialer Commit
This commit is contained in:
23
CPP/7zip/UI/FileManager/PropertyName.cpp
Normal file
23
CPP/7zip/UI/FileManager/PropertyName.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// PropertyName.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "../../../Common/IntToString.h"
|
||||
|
||||
#include "LangUtils.h"
|
||||
#include "PropertyName.h"
|
||||
|
||||
UString GetNameOfProperty(PROPID propID, const wchar_t *name)
|
||||
{
|
||||
if (propID < 1000)
|
||||
{
|
||||
UString s = LangString(1000 + propID);
|
||||
if (!s.IsEmpty())
|
||||
return s;
|
||||
}
|
||||
if (name)
|
||||
return name;
|
||||
wchar_t temp[16];
|
||||
ConvertUInt32ToString(propID, temp);
|
||||
return temp;
|
||||
}
|
||||
Reference in New Issue
Block a user