Hello, @bastien-allouard, @peterjones and All,
I’ve got a solution which needs the installation of the excellent BetterMultiSelection plugin, from @dail ! So :
Open the menu option Plugins > Plugins Admin...
Select the BetterMultiSelection plugin
Click on the Install button
Click on the Close button
For security, close and restart Notepad++
Now, assuming that you have this INPUT text :
Hyping "Hyping" Fulfillingcontract "Fulfilling contract" Time-limit "Time-limit" Requiredquality "Required quality" Upfront "Upfront" Whendone "When done" Penalty "Penalty" Costperbug "Cost per bug" Bugpenalty "Bug penalty" Latepenalty "Late penalty" Qualitypenalty "Quality penalty" Cancelpenalty "Cancel penalty" Netprofit "Net profit" Delivered "Delivered" Maxbandwidth "Max bandwidth" Lookagain "Look again" LookAgainPrompt "Are you sure you want to look again? It will cost {0}" Hyping "Popularité" Fulfillingcontract "Contrat rempli" Time-limit "Limite de temps" Requiredquality "Qualité requise" Upfront "Avance" Whendone "A la livraison" Penalty "Penalté" Costperbug "Coût par bug" Bugpenalty "Pénalité des bugs" Latepenalty "Pénalité de retard" Qualitypenalty "Pénalité de Qualité" Cancelpenalty "Pénalité d'annulation" Netprofit "Profit net" Delivered "Livré" Maxbandwidth "Bande passante Max" Lookagain "Actualiser" LookAgainPrompt "Êtes-vous sûr de vouloir actualiser ? Cela vous coûtera {0}"First, let’s change any tab char by the corresponding space chars with the menu option Edit > Blank Operations > TAB to Space
Select all the lines, English and French
Open the Replace dialog ( Ctrl + H )
SEARCH (?-s)^(\h*).+?"
REPLACE \1"
Tick the Wrap around and In selection options
Select the Regular expression search mode
Click on the Replace All button
You should obtain the OUTPUT text below :
"Hyping" "Fulfilling contract" "Time-limit" "Required quality" "Upfront" "When done" "Penalty" "Cost per bug" "Bug penalty" "Late penalty" "Quality penalty" "Cancel penalty" "Net profit" "Delivered" "Max bandwidth" "Look again" "Are you sure you want to look again? It will cost {0}" "Popularité" "Contrat rempli" "Limite de temps" "Qualité requise" "Avance" "A la livraison" "Penalté" "Coût par bug" "Pénalité des bugs" "Pénalité de retard" "Pénalité de Qualité" "Pénalité d'annulation" "Profit net" "Livré" "Bande passante Max" "Actualiser" "Êtes-vous sûr de vouloir actualiser ? Cela vous coûtera {0}"Enable, if necessary, the BetterMultiSelection plugin
Do a zero-length rectangular selection of all the lines ( Hit, simultaneously the Alt and Shift keys and press the Down key, several times )
Release all the keys, then hit the End ( or Fin ) key
=> All the cursors should be at the end of lines
Hit the Enter key to insert blank lines, in between
Hit the Backspace key to delete the tabulations ( IMPORTANT )
Hit the Esc key to disable your rectangular selection
You’ll get this OUTPUT :
"Hyping" "Fulfilling contract" "Time-limit" "Required quality" "Upfront" "When done" "Penalty" "Cost per bug" "Bug penalty" "Late penalty" "Quality penalty" "Cancel penalty" "Net profit" "Delivered" "Max bandwidth" "Look again" "Are you sure you want to look again? It will cost {0}" "Popularité" "Contrat rempli" "Limite de temps" "Qualité requise" "Avance" "A la livraison" "Penalté" "Coût par bug" "Pénalité des bugs" "Pénalité de retard" "Pénalité de Qualité" "Pénalité d'annulation" "Profit net" "Livré" "Bande passante Max" "Actualiser" "Êtes-vous sûr de vouloir actualiser ? Cela vous coûtera {0}"Now, redo a zero lengh rectangular selection of the french lines only, including the blank ones
While keeping pressed the Alt and Shift keys, hit the End ( or Fin ) key to include all text
Press the Ctrl + X shortcut, to move that text in the clipboard
Hit the Esc key to disable the rectangular selection
Now, move the caret at the very beginning of the first blank line, under the line "Hyping"
Hit the Ctrl + V shortcut
=> Wow ! you should get this OUTPUT text, below :
"Hyping" "Popularité" "Fulfilling contract" "Contrat rempli" "Time-limit" "Limite de temps" "Required quality" "Qualité requise" "Upfront" "Avance" "When done" "A la livraison" "Penalty" "Penalté" "Cost per bug" "Coût par bug" "Bug penalty" "Pénalité des bugs" "Late penalty" "Pénalité de retard" "Quality penalty" "Pénalité de Qualité" "Cancel penalty" "Pénalité d'annulation" "Net profit" "Profit net" "Delivered" "Livré" "Max bandwidth" "Bande passante Max" "Look again" "Actualiser" "Are you sure you want to look again? It will cost {0}" "Êtes-vous sûr de vouloir actualiser ? Cela vous coûtera {0}"Finally, do the last regex S/R, below :
SEARCH (?-s)^(\h*)"(.+)"\R\h*(.+)
REPLACE \1\2\x20\3
This regex selects two lines and rewrites all chars of the first line, but the double quote chars. Then, changes the EOL, between the two lines, with a space char and, finally, rewrites the contents of the second line
So, you should get your expected OUTPUT text :
Hyping "Popularité" Fulfilling contract "Contrat rempli" Time-limit "Limite de temps" Required quality "Qualité requise" Upfront "Avance" When done "A la livraison" Penalty "Penalté" Cost per bug "Coût par bug" Bug penalty "Pénalité des bugs" Late penalty "Pénalité de retard" Quality penalty "Pénalité de Qualité" Cancel penalty "Pénalité d'annulation" Net profit "Profit net" Delivered "Livré" Max bandwidth "Bande passante Max" Look again "Actualiser" Are you sure you want to look again? It will cost {0} "Êtes-vous sûr de vouloir actualiser ? Cela vous coûtera {0}"Best Regards,
guy038