     return if before == text
     elem.textContent = text
     elem.setAttribute('title', before)
+    elem.setAttribute('data-localized', 'true')
 
 module.exports = window.JapaneseMenu = new JapaneseMenu()


    # Keybindings
    info = sv.querySelector('.keybinding-panel>div:nth-child(2)')
    info.querySelector('span:nth-child(2)').textContent = "これらのキーバインドは　"
    info.querySelector('span:nth-child(4)').textContent = "をクリック（コピー）して"
    info.querySelector('a.link').textContent = " キーマップファイル "
    span = document.createElement('span')
    span.textContent = "に貼り付けると上書きできます。"
    info.appendChild(span)

    # Themes panel
    info = sv.querySelector('.themes-panel>div>div:nth-child(2)')

  applySectionHeadings = (area) ->
    for sh in window.JapaneseMenu.defS.Settings.sectionHeadings
      el = getTextMatchElement(area, '.section-heading', sh.label)
      continue unless el
      applyTextWithOrg(el, sh.value)
    for sh in window.JapaneseMenu.defS.Settings.subSectionHeadings
      el = getTextMatchElement(area, '.sub-section-heading', sh.label)
      continue unless el
      applyTextWithOrg(el, sh.value)

  getTextMatchElement = (area, query, text) ->
    elems = area.querySelectorAll(query)
    result
    for el in elems
      if el.textContent.includes(text)
        result = el
        break
    if isAlreadyLocalized(result)
      return null
    else
      return result

  isAlreadyLocalized = (elem) ->
    localized = elem.getAttribute('data-localized') if elem
    return localized == 'true'

  applyTextContentBySettingsId = (data) ->
    el = document.querySelector("[id='#{data.id}']")
