CINXE.COM
Saving a project that has lost its content - Dictionary App Builder - SIL Language Software Community
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Saving a project that has lost its content - Dictionary App Builder - SIL Language Software Community</title> <meta name="description" content="You will see on the community that people have lost the content of their dictionary after *Update From Other Source… When you build the app it has no entries. And if you look at the Languages &gt; xxx &gt; Characters you see &hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5177aef37d87ea694053ecd9ddea41b471184dd4"> <link rel="icon" type="image/png" href="https://community.software.sil.org/uploads/default/optimized/2X/5/5f6b6cdfc52887a89db2e2d67fee1915a44ae53f_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://community.software.sil.org/uploads/default/optimized/2X/a/ab2c98ffee8e8d75bc36c67abcb683f05518925b_2_180x180.png"> <meta name="theme-color" media="all" content="#800493"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051" /> <link rel="search" type="application/opensearchdescription+xml" href="https://community.software.sil.org/opensearch.xml" title="SIL Language Software Community Search"> <link href="/stylesheets/color_definitions_software-sil-org_2_2_55468f8b1ac7a62d9880724bb67e11d6002e3c28.css?__ws=community.software.sil.org" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-details_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-feature-voting_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-feature-voting" /> <link href="/stylesheets/discourse-lazy-videos_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/docker_manager_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="docker_manager" /> <link href="/stylesheets/footnote_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/discourse-feature-voting_desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-feature-voting_desktop" /> <link href="/stylesheets/poll_desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_2_e5008d28eac06ba4ea3e0301cb42cb5f3ae5a20e.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="sil"/> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Saving a project that has lost its content'" href="https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051.rss" /> <meta property="og:site_name" content="SIL Language Software Community" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://community.software.sil.org/uploads/default/original/2X/a/ab2c98ffee8e8d75bc36c67abcb683f05518925b.png" /> <meta property="og:image" content="https://community.software.sil.org/uploads/default/original/2X/a/ab2c98ffee8e8d75bc36c67abcb683f05518925b.png" /> <meta property="og:url" content="https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051" /> <meta name="twitter:url" content="https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051" /> <meta property="og:title" content="Saving a project that has lost its content" /> <meta name="twitter:title" content="Saving a project that has lost its content" /> <meta property="og:description" content="You will see on the community that people have lost the content of their dictionary after *Update From Other Source… When you build the app it has no entries. And if you look at the Languages > xxx > Characters you see there are none. How to fix this without starting a new project. You need to do the following. Shut down DAB Edit the .appdef file for the project. Copy the new file into the project. Editing the .appdef file. I have found that the file in the lexicon-db does not match the na..." /> <meta name="twitter:description" content="You will see on the community that people have lost the content of their dictionary after *Update From Other Source… When you build the app it has no entries. And if you look at the Languages > xxx > Characters you see there are none. How to fix this without starting a new project. You need to do the following. Shut down DAB Edit the .appdef file for the project. Copy the new file into the project. Editing the .appdef file. I have found that the file in the lexicon-db does not match the na..." /> <meta property="og:article:section" content="Dictionary App Builder" /> <meta property="og:article:section:color" content="FFFFFF" /> <meta property="article:published_time" content="2024-08-16T07:57:57+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <nav id="bar"> <a id="softwareSiteLink" href="http://software.sil.org"> <img src="/uploads/default/original/2X/e/ef582ee150167aae331b77366d9b8774585dd95d.png" alt="SIL Language Software"> </a> <ul> <li><a href="http://software.sil.org/news/">News</a></li> <li><a href="http://software.sil.org/products/">Products</a></li> <li><a href="http://software.sil.org/about/">Contact</a></li> </ul> </nav> <header> <a href="/"> SIL Language Software Community </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/saving-a-project-that-has-lost-its-content/9051">Saving a project that has lost its content</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/dab/18" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #FFFFFF'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Dictionary App Builder</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Saving a project that has lost its content'> <link itemprop='url' href='https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051'> <meta itemprop='datePublished' content='2024-08-16T07:57:57Z'> <meta itemprop='articleSection' content='Dictionary App Builder'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='SIL International'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://community.software.sil.org/uploads/default/original/1X/43507a8a0b20553fc8d5ff0c509b36326aff3dbf.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.software.sil.org/u/Ian_McQuay'><span itemprop='name'>Ian_McQuay</span></a> </span> <link itemprop="mainEntityOfPage" href="https://community.software.sil.org/t/saving-a-project-that-has-lost-its-content/9051"> <span class="crawler-post-infos"> <time datetime='2024-08-16T07:57:57Z' class='post-time'> August 16, 2024, 7:57am </time> <meta itemprop='dateModified' content='2024-08-16T07:57:57Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>You will see on the community that people have lost the content of their dictionary after *<em>Update From Other Source…</em></p> <p>When you build the app it has no entries. And if you look at the <strong>Languages > xxx > Characters</strong> you see there are none.</p> <p>How to fix this without starting a new project.</p> <p>You need to do the following.</p> <ol> <li>Shut down DAB</li> <li>Edit the .appdef file for the project.</li> <li>Copy the new file into the project.</li> </ol> <h2><a name="p-29404-editing-the-appdef-file-1" class="anchor" href="#p-29404-editing-the-appdef-file-1"></a>Editing the .appdef file.</h2> <p>I have found that the file in the lexicon-db does not match the name of the file in the following line. Like shown below. This must be fixed. by directly editing the .appdef file.<br><br> Then update the path if it needs updating to a new path in the three places, in the source and in the stylesheet.</p> <pre><code class="lang-auto"> <lexicon-db type="flex-xhtml">new-dict.xhtml</lexicon-db> <source>C:\Dictionary\xxx-eng\xxx-eng-dict.xhtml</source> <stylesheets> <stylesheet checksum="C5B3A40092A9CBB797BDFF3697BB3662">C:\Dictionary\xxx-eng\xxx-eng-dict.css</stylesheet> <stylesheet checksum="13926E487FD3D280E580F3B1BD77A4A0">C:\Dictionary\xxx-eng\ProjectDictionaryOverrides.css</stylesheet> </stylesheets> </code></pre> <h2><a name="p-29404-update-the-files-in-the-project-2" class="anchor" href="#p-29404-update-the-files-in-the-project-2"></a>Update the files in the Project.</h2> <p>I have found the new file is missing from the <strong>lexicon</strong> folder in the project.<br> Copy the new file into the <strong>lexicon</strong> folder in your project.</p> <ul> <li>Restart DAB.</li> <li>Check that <strong>Languages > xxx > Characters</strong> has a list of characters.</li> <li>Build your app and all your entries should be back.</li> </ul> <p>So it seems the <strong>Update From Other Source</strong> button at times fails to update the .appdef file and also fails to import the updated file into the project’s <strong>lexicon</strong> folder.</p> <p>If you are worried about damaging your project then make a copy of your project and do the above on that copy.</p> <p>If the css does not update then delete the checksum attribute then press <strong>Update From Source…</strong></p> <p>So happy to have found a workaround for this long standing problem.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://community.software.sil.org/t/lexicon-source-update-changes-layout-in-dab/9048/2">Lexicon Source Update changes layout in DAB</a> <meta itemprop='position' content='1'> </div> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='http://software.sil.org/terms-of-use/' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='http://software.sil.org/privacy-policy/' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>