- Index: Rds/CoRds/FormatListExport.cpp
- ===================================================================
- --- Rds/CoRds/FormatListExport.cpp (revision 9291)
- +++ Rds/CoRds/FormatListExport.cpp (working copy)
- @@ -144,8 +144,32 @@
- formatListsDirectoryLocation );
- const auto* formatListDirParent = formatListsDir->getParent();
- - const auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
- + auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
- + T_NodeID flttid1 = 0;
- + rds.nodeExists(formatListsDirectoryLocation, "FormatListTitleTextID1", flttid1, 0);
- + if (flttid1 != 0)
- + {
- + T_Bool success = false;
- + T_Int32 path_textid;
- + std::string path_textid_str;
- +
- + rds.getInt32(flttid1, NULL, success, path_textid, nullptr);
- + if (success)
- + {
- + path_textid_str = langResolver.getText(path_textid);
- + path = path_textid_str;
- + }
- + else
- + {
- + std::cerr << "getFormatLists("
- + "flttid1=" << flttid1 <<
- + ", NULL, success=" << success <<
- + ", path_textid=" << path_textid <<
- + "): rds.getInt32() failed." << std::endl;
- + }
- + }
- +
- if( !formatListsDir->isDirectory() )
- continue;
- Index: Rds/CoRds/LanguageResolver.h
- ===================================================================
- --- Rds/CoRds/LanguageResolver.h (revision 9291)
- +++ Rds/CoRds/LanguageResolver.h (working copy)
- @@ -60,12 +60,26 @@
- }
- catch( const std::exception& ex )
- {
- - std::cerr << "Unable to convert textId '" << textId << "': " << ex.what() << std::endl;
- + std::cerr << __func__ << ": Unable to convert textId '" << textId << "': " << ex.what() << std::endl;
- }
- }
- return textId;
- }
- + std::string getText( const T_Int32 textIdNumeric ) const
- + {
- + try
- + {
- + return m_textSource->getText(textIdNumeric, m_currentLangCode.c_str());
- + }
- + catch( const std::exception& ex )
- + {
- + std::cerr << __func__ << ": Unable to convert textIdNumeric " << textIdNumeric << ": " << ex.what() << std::endl;
- + }
- +
- + return(C_Language::defaultText);
- + }
- +
- const std::string getLangugeCode()
- {
- if( ! m_currentLangCode.empty())
cords bug #157 diff #001
Posted by Anonymous on Thu 23rd Sep 2021 12:16
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.