- Index: Rds/CoRds/FormatListExport.cpp
- ===================================================================
- --- Rds/CoRds/FormatListExport.cpp (revision 9291)
- +++ Rds/CoRds/FormatListExport.cpp (working copy)
- @@ -144,8 +144,29 @@
- formatListsDirectoryLocation );
- const auto* formatListDirParent = formatListsDir->getParent();
- - const auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
- + auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
- +#if 1
- + 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;
- + }
- + }
- +#endif
- if( !formatListsDir->isDirectory() )
- continue;
- Index: Rds/CoRds/LanguageResolver.h
- ===================================================================
- --- Rds/CoRds/LanguageResolver.h (revision 9291)
- +++ Rds/CoRds/LanguageResolver.h (working copy)
- @@ -66,6 +66,20 @@
- 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 << "Unable to convert textIdNumeric '" << textIdNumeric << "': " << ex.what() << std::endl;
- + }
- +
- + return std::string("not found");
- + }
- +
- const std::string getLangugeCode()
- {
- if( ! m_currentLangCode.empty())
cords bug #157 diff #001
Posted by Anonymous on Wed 22nd Sep 2021 15:53
raw | new post
view followups (newest first): cords bug #157 diff #001 by Anonymous
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.