Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@KayLeung
Last active November 20, 2015 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KayLeung/9b70662b2905c5bccf4f to your computer and use it in GitHub Desktop.
Save KayLeung/9b70662b2905c5bccf4f to your computer and use it in GitHub Desktop.
快速拒絕 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