Skip to content

Instantly share code, notes, and snippets.

@vlad-timotei
Last active December 4, 2022 10:23
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 vlad-timotei/0a64b82348fa61df52468d9811a2382e to your computer and use it in GitHub Desktop.
Save vlad-timotei/0a64b82348fa61df52468d9811a2382e to your computer and use it in GitHub Desktop.
WPGPT Settings for Romanian WordPress translators

In order to have the best WPGPT settings when translating in Romanian

1. Copy this in your clipboard
if ( typeof WPGPT_VERSION !%3D%3D %27undefined%27 ) %7Bif ( confirm( %27Do you want to apply WPGPT Romanian recommended settings%3F%27 ) ) %7B  localStorage.setItem( %27wpgpt-user-settings%27, %27%7B"checks":"enabled","start_end_space":"warning","end_period":"warning","end_colon":"warning","end_question_exclamation":"notice","double_spaces":"warning","tag_spaces":"notice","warning_words":"plugin,browser,backend,frontend,widget,link,update,login,logout,backup,breadcrumb,post,download,feedback,review,homepage,hover,layout,slug,tag,switch.adăugați,stabiliți,identificați,dvs.,vă ,descoperiți,dumneavoastră,faceți,puteți,aveți,scanați,obțineți","match_words":"site,https","checks_labels":"enabled","custom_period":"","ro_checks":"enabled","ro_diacritics":"warning","ro_quotes":"warning","ro_ampersand":"warning","ro_slash":"warning","ro_dash":"warning","history_main":"disabled","history_count":"enabled","history_page":"enabled","search":"enabled","shortcuts":"enabled","prevent_unsaved":"disabled","bulk_consistency":"disabled","using_gd":"disabled"%7D%27 )%3B  alert( %27Settings applied!%27 )%3B  location.reload()%3B%7D  %7D else %7B   alert( %27To apply these WPGPT settings please be on a translate.w.org page with WPGPT active.%27 )%3B   %7D
2. Go to translate.w.org and type in the address bar javascript: followed by pasting what you have in clipboard.
3. Press Enter and then Ok when prompted. Done. WPGPT reccommended settings are now applied.

Alternative method

Copy and paste the following snippet in the Dev Tools Console while being on a translate.w.org page

if ( typeof WPGPT_VERSION !== 'undefined' ) {
  if ( confirm( 'Do you want to apply WPGPT Romanian recommended settings?' ) ) {
    localStorage.setItem( 'wpgpt-user-settings', '{"checks":"enabled","start_end_space":"warning","end_period":"warning","end_colon":"warning","end_question_exclamation":"notice","double_spaces":"warning","tag_spaces":"notice","warning_words":"plugin,browser,backend,frontend,widget,link,update,login,logout,backup,breadcrumb,post,download,feedback,review,homepage,hover,layout,slug,tag,switch.adăugați,stabiliți,identificați,dvs.,vă ,descoperiți,dumneavoastră,faceți,puteți,aveți,scanați,obțineți","match_words":"site,https","checks_labels":"enabled","custom_period":"","ro_checks":"enabled","ro_diacritics":"warning","ro_quotes":"warning","ro_ampersand":"warning","ro_slash":"warning","ro_dash":"warning","history_main":"disabled","history_count":"enabled","history_page":"enabled","search":"enabled","shortcuts":"enabled","prevent_unsaved":"disabled","bulk_consistency":"disabled","using_gd":"disabled"}' );
    alert( 'Settings applied!' );
    location.reload();
  }
} else { 
	alert( 'To apply these WPGPT settings please be on a translate.w.org page with WPGPT active.' ); 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment