Start writer: 1. Tools / Macros / Organize Dialogs 1.5 select "Untitled 1", the brand new file 2. New Dialog 3. Edit dialog 4. Press 'Manage Language' toolbar (may need to enable Language toolbar in Views) 5. Add a language No language is added. This is because there is no localization for this dialog, and we get to: basctl/source/dlged/managelang.cxx: IMPL_LINK_NOARG(ManageLanguageDialog, AddHdl) { ScopedVclPtrInstance< SetDefaultLanguageDialog > aDlg( this, m_xLocalizationMgr ); if ( RET_OK == aDlg->Execute() ) { if (!m_xLocalizationMgr->isLibraryLocalized()) { SAL_WARN("basctl.basicide", "Adding langs to non-localized library tdf#93077"); This code-path =) We need to have enough information at this point to do something intelligent like: // XStringResourceSupplier Reference< resource::XStringResourceResolver > SAL_CALL SfxDialogLibrary::getStringResource( ) throw (RuntimeException, std::exception) { if( !m_xStringResourcePersistence.is() ) m_xStringResourcePersistence = m_pParent->implCreateStringResource( this ); Reference< resource::XStringResourceResolver > xRet( m_xStringResourcePersistence, UNO_QUERY ); return xRet; } Which creates the thing if it is not there =) cf. the related UNO API for that. But this will need more information passing into the dialog from the IDE code - in order to manage that; it'll ultimately be something like: Reference< XStringResourceWithLocation > xStringResourceWithLocation = StringResourceWithLocation::create( xContext, aURL, bReadOnly, xStringResourceResolver->getDefaultLocale(), aDialogName, aComment, xDummyHandler ); Thanks ! =)
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyInteresting SkillCpp TopicCleanup) [NinjaEdit]
JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC) [NinjaEdit]
Niklas Johansson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1453bc4ab3d42c34c32a7da63ed6f7bdbe513c2d tdf#93592 Make it possible to add default language resource to dialogeditor It will be available in 5.4.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Niklas Johansson committed a patch related to this issue. It has been pushed to "libreoffice-5-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fd292de8250d54fbf8035d252f1b25a4ca4500aa&h=libreoffice-5-3 tdf#93592 Make it possible to add default language resource to dialogeditor It will be available in 5.3.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Niklas Johansson committed a patch related to this issue. It has been pushed to "libreoffice-5-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f4cdf96b43db7c39ae8f23896d44368807f5f500&h=libreoffice-5-2 tdf#93592 Make it possible to add default language resource to dialogeditor It will be available in 5.2.5. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.