grep -R -I 'format_add("' * | cut -d: -f2- | perl -ne '/format_add\("(.*?)".+"(.*)".*/; print $1." ".$2."\n"' | sort >grep_cut_perl.theme find . -name '*.c' -type f | xargs sed '/^[ \t]*format_add("/!d;s///;s/"[^"]*"\(.*\)".*/ \1/' | sort >sed.theme --- grep_cut_perl.theme 2011-08-29 13:25:18.000000000 +0200 +++ sed.theme 2011-08-29 13:26:28.000000000 +0200 @@ -1,5 +1,3 @@ - - IRC_CHANNEL_SYNCED %> Join to %W%2%n was synced in %W%3.%4%n secs IRC_CONN_ESTAB %> (%1) Connection to %W%3%n estabilished IRC_ERR_CANNOTSENDTOCHAN %! %2: %1\n @@ -60,7 +58,6 @@ RPL_WHOISSERVER %G||%n %|server : %3 (%4)\n RPL_WHOISUSER %G.+===%g-----\n%G||%n (%T%2%n) (%3@%4)\n RPL_WHOREPLY %g|| %c%3 %W%7 %n%8 %6 %4@%5 %W%9\n -RPL_WHOREPLY %g|| %c%3 %W%7 %n%8 %6 %4@%5 %W%9\n RPL_WHOWASUSER %G.+===%g-----\n%G||%n (%T%2%n) (%3@%4)\n ack_delivered %> Message to %1 delivered\n ack_filtered %! %|Message to %1 encountered permament delivery failure (e.g. forbidden content). Before retrying, try to fix the problem yourself (e.g. ask second side to add us to userlist).\n @@ -356,7 +353,7 @@ iconv_list_bad %! %R%[-10]1%n %r<==> %R%[-10]2%n %b[%rINIT ERROR: %5%b] %b(%nIn use: %W%3, %4%b) icq_auth_decline %> (%1) %2 decline your authorization: %3\n icq_auth_grant %> (%1) %2 grant your authorization: %3\n -icq_auth_subscribe to refuse. Reason: %T%3%n +icq_auth_subscribe %> (%1) %T%2%n asks for authorisation. Use \"/auth -a %2\" to accept, \"/auth -d %2 [reason]\" to refuse. Reason: %T%3%n icq_rates %>%n%[-2]1 %K|%n%[-5]7 %K|%n%[-5]4 %K|%n%[-5]5 %K|%n%[-6]3 %K|%n%[-5]6 %K|%n%[-5]8 %K|%n%[-3]2 %K|%n\n icq_rates_header %>%n # %K|%n Curr %K|%n Alrt %K|%n Limt %K|%n Clear %K|%n Dscn %K|%n Max %K|%nwin %K|%n\n icq_user_info_generic %K| %n%1: %T%2%n\n @@ -380,7 +377,7 @@ ignored_list %> %1 %2\n ignored_list_empty %! Ignore list ist empty\n ignored_modified %> Modified ignore level of %T%1%n\n -inet_addr_failed .%n\n +inet_addr_failed %! (%1) Invalid \"server\".%n\n invalid_local_ip %! (%1) Invalid local address. I'm clearing %Tlocal_ip%n session variable\n invalid_nick %! Invalid username\n invalid_params %! Invalid parameters. Try %Thelp %1%n\n @@ -420,19 +417,15 @@ irc_kicked_you %> You have been kicked out by %R%3%n from %5 (%6)\n irc_left %> %g%2%n has left %4 (%5)\n irc_left_you %> %RYou%n have left %4 (%5)\n -irc_msg_f_chan %B<%w%{2@%+gcp}X%2%3/%5%B>%n %6 irc_msg_f_chan_n %B%7<%w%{2*!@%+yrgcp}X%2%3%B>%n %6 irc_msg_f_chan_nh %B%7<%W%{2*!@%+YRGCP}X%2%3%B>%n %6 -irc_msg_f_chanh %B<%W%{2@%+GCP}X%2%3/%5%B>%n %6 irc_msg_f_some %b<%n%3%b>%n %6 irc_msg_sent %P<%n%3/%5%P>%n %6 irc_msg_sent_chan %P%7<%w%{2*!@%+yrgcp}X%2%3%P>%n %6 irc_msg_sent_chanh %P%7<%W%{2*!@%+YRGCP}X%2%3%P>%n %6 irc_msg_sent_n %P<%n%3%P>%n %6 -irc_not_f_chan %B(%w%{2@%+gcp}X%2%3/%5%B)%n %6 irc_not_f_chan_n %B(%w%{2*!@%+yrgcp}X%2%3%B)%n %6 irc_not_f_chan_nh %B(%W%{2*!@%+YRGCP}X%2%3%B)%n %6 -irc_not_f_chanh %B(%W%{2@%+GCP}X%2%3/%5%B)%n %6 irc_not_f_server %g!%3%n %6 irc_not_f_some %b(%n%3%b)%n %6 irc_not_sent %P(%n%3/%5%P)%n %6 @@ -451,10 +444,10 @@ jabber_auth_list_req %> (%1) Pending authorization requests:\n jabber_auth_list_unreq %> (%1) Pending removal requests:\n jabber_auth_probe %> (%2) Sent presence probe to %T%1%n.\n -jabber_auth_rejectnoreq to force unauth.\n +jabber_auth_rejectnoreq %! (%2) No pending authorization request from %T%1%n. Use \"/auth -d %1\" to force unauth.\n jabber_auth_request %> (%2) Sent authorisation request to %T%1%n.\n -jabber_auth_subscribe to refuse.%n\n -jabber_auth_unsubscribe to delete.%n\n +jabber_auth_subscribe %> (%2) %T%1%n asks for authorisation. Use \"/auth -a %1\" to accept, \"/auth -d %1\" to refuse.%n\n +jabber_auth_unsubscribe %> (%2) %T%1%n asks for removal. Use \"/auth -d %1\" to delete.%n\n jabber_auth_unsubscribed %> (%2) Asked %T%1%n to remove authorisation.\n jabber_bookmark_conf %g|| %n MUC: %W%3%n (%2) jabber_bookmark_url %g|| %n URL: %W%3%n (%2) @@ -493,8 +486,8 @@ jabber_muc_me %y*%X%5%3%B%n %4 jabber_muc_me_sent %Y*%X%5%3%B%n %4 jabber_muc_notice %n-%P%2%n- %3 -jabber_muc_notice", "%n jabber_muc_recv %B<%w%X%5%3%B>%n %4 +jabber_muc_room_created", jabber_muc_send %B<%n%X%5%W%3%B>%n %4 jabber_privacy_error %! (%1) Error in getting/setting %gprivacy list%n from %W%2%n: %r%3 jabber_privacy_item %g||%n %[-44]4 \t%K|%n %[2]5 %K|%n %[2]6 %K|%n %[2]7 %K|%n %[2]8\n @@ -535,7 +528,6 @@ jabber_search_error %! (%1) Error in %gjabber:iq:search%n from %W%2%n: %r%3 jabber_search_item %) JID: %T%3%n\n%) Nickname: %T%4%n\n%) Name: %T%5 %6%n\n%) Email: %T%7%n\n jabber_search_items %g||%n %3 - %5 '%4' %6 <%7> -jabber_search_items %g||%n %[-24]3 %K|%n %[10]5 %K|%n %[10]6 %K|%n %[12]4 %K|%n %[16]7 jabber_send_chan %B<%W%2%B>%n %5 jabber_send_chan_n %B<%W%2%B>%n %5 jabber_status_notavail %! (%1) Unable to check version, because %2 is unavailable%n\n @@ -735,10 +727,7 @@ new_mail_one %) You got one email\n new_mail_two_four %) You got %1 new emails\n nntp_command_help_footer %g`+=%G----- End of 100%n\n -nntp_command_help_footer %g`+=%G----- End of 100%n\n nntp_command_help_header %g,+=%G----- %2 %n(%T%1%n) -nntp_command_help_header %g,+=%G----- %2 %n(%T%1%n) -nntp_command_help_item %g|| %W%1: %n%2 nntp_command_help_item %g|| %W%1: %n%2 nntp_message_quote_level %B%1 nntp_message_quote_level1 %g%1 @@ -872,7 +861,6 @@ rivchat_place %> %6 - %T%2%n %B(%gwords:%n %T%3%n %B[%n%W%5%B]) rivchat_pop_broadcast %) %W%2%n has broadcast pop: %3 rivchat_pop_recv %) %W%2%n has sent pop: %3 -rivchat_pop_send You send pop rivchat_quit %> %c%2%n %B[%c%2@%4%B]%n has quit %B[%n%3%B] rivchat_reaway %) %T%2%n back rivchat_topic %> Topic: %3 @@ -909,9 +897,7 @@ search_results_multi %7 %[-8]1 %K|%n %[12]3 %K|%n %[12]2 %K|%n %[4]5 %K|%n %[12]4\n search_results_multi_avail %Y<>%n search_results_multi_away %G<>%n -search_results_multi_female k search_results_multi_invisible %c<>%n -search_results_multi_male m search_results_multi_notavail search_results_multi_unknown - search_results_single %) Nickname: %T%3%n\n%) Number: %T%1%n %7\n%) Name: %T%2%n\n%) City: %T%4%n\n%) Birth year: %T%5%n\n