Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
快速拒絕 Drupal LDO 建議

主要針對錯誤匯入 PO

  1. 將 Limit 設為 50

  2. 將 Submitted by 為匯入者,例 "Multiple contributors"

  3. 將 Status 設為 "Has suggestion"

  4. DEMO: https://localize.drupal.org/translate/languages/zh-hant/translate?project=drupal&status=9&release=454938&search=&author=Multiple%20contributors&context=all&limit=50&sid=0

  5. 執行:

    jQuery('.actions li.declined .form-checkbox').show()
    jQuery('.translation.is-selectable.is-declinable').each(function(){
    	var foundAuthor = jQuery(this).find('.author .l10n-more-link').text().indexOf('Multiple contributors');
    	if(foundAuthor !== -1) {
    		jQuery(this).find('.declined [type="checkbox"]').click()
    	}
    })
  6. 人肉快速 SCAN 確保沒出錯

  7. Save changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.