i18n

  • Thread starter Thread starter sbrothy
  • Start date Start date
S

sbrothy

Guest
I'm trying to load a bunch of strings rrom the String Table to pre-load the language.

It's set to UNICODE


Still, wont workj

[vode]

Severity Code Description Project File Line Suppression State
Error C2238 unexpected token(s) preceding ';' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error (active) E2474 user-defined literal operator not found Hermes D:\KISS3\Hermes\Hermes\PropertiesWnd.cpp 376
Error (active) E2474 user-defined literal operator not found Hermes D:\KISS3\Hermes\Hermes\PropertiesWnd.cpp 398
Error C2059 syntax error: 'constant' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2059 syntax error: 'constant' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2238 unexpected token(s) preceding ';' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2059 syntax error: 'constant' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2238 unexpected token(s) preceding ';' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2059 syntax error: 'constant' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C2238 unexpected token(s) preceding ';' Hermes d:\kiss3\hermes\hermes\propertieswnd.h 53
Error C3688 invalid literal suffix 'LoadStringW'; literal operator or literal operator template 'operator ""LoadStringW' not found Hermes d:\kiss3\hermes\hermes\propertieswnd.cpp 376
Error C3688 invalid literal suffix 'LoadStringW'; literal operator or literal operator template 'operator ""LoadStringW' not found Hermes d:\kiss3\hermes\hermes\propertieswnd.cpp 398

[/code]



Code:
void CPropertiesWnd::LoadI18NPropNames()
{
/* DEBUG */ TRACE("void CPropertiesWnd::LoadI18NPropNames() >> \n");

// Apperance 

ASSERT(m_strI18NPropNameAppearence.LoadString(IDS_I18N_PROP_NAME_APPEARENCE));
ASSERT(m_strI18NPropNameAppearence.LoadString(IDS_I18N_PROP_NAME_APPEARENCE));

ASSERT(m_strI18NPropName3DLook.LoadString(IDS_I18N_PROP_NAME_3DLOOK));
ASSERT(m_strI18NPropName3DLookComment.LoadString(IDS_I18N_PROP_NAME_APPEARENCE_COMMENT));

ASSERT(m_strI18NPropNameBorder.LoadString(IDS_I18N_PROP_NAME_BORDER));
ASSERT(m_strI18NPropNameBorderComment.LoadString(IDS_I18N_PROP_NAME_BORDER_COMMENT));
ASSERT(m_strI18NBorderOptions[0].LoadString(IDS_I18N_PROP_NAME_BORDER_NONE));
ASSERT(m_strI18NBorderOptions[1].LoadString(IDS_I18N_PROP_NAME_BORDER_THIN));
ASSERT(m_strI18NBorderOptions[2].LoadString(IDS_I18N_PROP_NAME_BORDER_RESIZABLE));
ASSERT(m_strI18NBorderOptions[3].LoadString(IDS_I18N_PROP_NAME_BORDER_DIALOGFRAME));

ASSERT(m_strI18NPropNameCaption.LoadString(IDS_I18N_PROP_NAME_CAPTION));
ASSERT(m_strI18NPropNameWindowsSize.LoadString(IDS_I18N_PROP_NAME_WINDOWHEIGHT));
ASSERT(m_strI18NPropNameWidth.LoadString(IDS_I18N_PROP_NAME_WIDTH));
ASSERT(m_strI18NPropNameWidthComment.LoadString(IDS_I18N_PROP_NAME_WIDTH_COMMENT));
ASSERT(m_strI18NPropNameHeight.LoadString(IDS_I18N_PROP_NAME_HEIGHT));
ASSERT(m_strI18NPropNameHeightComment.LoadString(IDS_I18N_PROP_NAME_HEIGHT_COMMENT));


// Misc
ASSERT(m_strI18NPropNameMisc.LoadString(IDS_I18N_PROP_NAME_MISC));
ASSERT(m_strI18NPropNameAppName.LoadString(IDS_I18N_PROP_NAME_APPNAME));
ASSERT(m_strI18NPropNameWindowColor.LoadString(IDS_I18N_PROP_NAME_WINDOWCOLOR));
ASSERT(m_strI18NPropNameWindowColorComment.LoadString(IDS_I18N_PROP_NAME_WINDOWCOLOR_COMMENT));
ASSERT(m_strI18NPropNameOther.LoadString(IDS_I18N_PROP_NAME_OTHER));
ASSERT(m_strI18NPropNameDefault.LoadString(IDS_I18N_PROP_NAME_DEFAULT));

ASSERT(m_strI18NPropNameCaption.LoadString(IDS_I18N_PROP_NAME_CAPTION));
ASSERT(m_strI18NPropNameMisc.LoadString(IDS_I18N_PROP_NAME_MISC));
ASSERT(m_strI18NPropNameIcon.LoadString(IDS_I18N_PROP_NAME_ICON));
ASSERT(m_strI18NPropNameIconComment.LoadString(IDS_I18N_PROP_NAME_ICON_COMMENT));
ASSERT(m_strI18NPropNameFolder.LoadString(IDS_I18N_PROP_NAME_FOLDER));

// Font

ASSERT(m_strI18NPropNameFont.LoadString(IDS_I18N_PROP_NAME_FONT));
ASSERT(m_strI18NPropNameFontComment.LoadString(IDS_I18N_PROP_NAME_FONT_COMMENT));
ASSERT(m_strI18NPropNameUserSystemFont.LoadString(IDS_I18N_PROP_NAME_USERSYSTEMFONT));


// Checking Mail

ASSERT(m_strI18NPropNameMailServer.LoadString(IDS_I18N_PROP_NAME_MAILSEVER));
ASSERT(m_strI18NPropNameUserName1.LoadString(IDS_I18N_PROP_NAME_USERNAME1));
//ASSERT(IDS_I18N_PROP_GROUPNAME

ASSERT(m_strI18NPropNameOther.LoadString(IDS_I18N_PROP_NAME_OTHER));
ASSERT(m_strI18NPropNameDefault.LoadString(IDS_I18N_PROP_NAME_DEFAULT));
ASSERT(m_strI18NPropNameCheckInterval.LoadString(IDS_I18N_PROP_NAME_CHECKINTERVAL));

ASSERT(m_strI18NPropNameCheckWithoutNetworkConnection.LoadString(IDS_I18N_PROP_NAME_CHECKWITHOUTNETWORKCONNECTION));
ASSERT(m_strI18NPropNameCheckWhenUsingOnlyBattery.LoadString(IDS_I18N_PROP_NAME_CHECKWHENUSINGONLYBATTERY));

// General 

ASSERT(m_strI18NPropNameReaName.LoadString(IDS_I18N_PROP_NAME_REALNAME));
ASSERT(m_strI18NPropNameEmail.LoadString(IDS_I18N_PROP_NAME_EMAIL));
ASSERT(m_strI18NPropNameSMTPServer.LoadString(IDS_I18N_PROP_NAME_SMTPSERVER));
ASSERT(m_strI18NPropNameAllowAuth.LoadString(IDS_I18N_PROP_NAME_ALLOWAUTH));


// ASSERT(m_strI18NPropNameHierachy.LoadString(IDS_I18N_PROP_NAME_HIERACHY));
// ASSERT(m_strI18NPropNameFirstSubLevel.LoadString(IDS_I18N_PROP_NAME_FIRSTSUBLEVEL));
// ASSERT(m_strI18NPropNameSecondSubLevel.LoadString(IDS_I18N_PROP_NAME_SECONDSUBLEVEL));
// ASSERT(m_strI18NPropNameThirdSubLevel.LoadString(IDS_I18N_PROP_NAME_THIRDSUBLEVEL));


ASSERT(m_strI18NPropNameCheckingMail.LoadString(IDS_I18N_PROP_NAME_CHECKINGMAIL));

ASSERT(m_strI18NPropNameUserName2.LoadString(IDS_I18N_PROP_NAME_USERNAME2));


ASSERT(m_strI18NPropNameSendOnCheck.LoadString(IDS_I18N_PROP_NAME_SENDONCHECK));
ASSERT(m_strI18NPropNameSecureSocketsWhenReceiving.LoadString(IDS_I18N_PROP_NAME_SECURESOCKETSWHENRECEIVING));

ASSERT(m_strI18NPropNameIncomingMail.LoadString(IDS_I18N_PROP_NAME_INCOMINGMAIL));
ASSERT(m_strI18NPropNameIncomingMailLeaveMailOnServer.LoadString(IDS_I18N_PROP_NAME_LEAVEMAILONSERVER));
ASSERT(m_strI18NPropNameIncomingMailServerConfig.LoadString(IDS_I18N_PROP_NAME_CONFIGSERVER));

/* DEBUG */ TRACE("void CPropertiesWnd::LoadI18NPropNames() << \n");
}

Continue reading...
 
Back
Top