Home | History | Annotate | Download | only in FileManager
      1 // PropertyName.cpp
      2 
      3 #include "StdAfx.h"
      4 
      5 #include "../../../Common/IntToString.h"
      6 
      7 #include "LangUtils.h"
      8 #include "PropertyName.h"
      9 
     10 UString GetNameOfProperty(PROPID propID, const wchar_t *name)
     11 {
     12   if (propID < 1000)
     13   {
     14     UString s = LangString(1000 + propID);
     15     if (!s.IsEmpty())
     16       return s;
     17   }
     18   if (name)
     19     return name;
     20   wchar_t temp[16];
     21   ConvertUInt32ToString(propID, temp);
     22   return temp;
     23 }
     24