r35929 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35928‎ | r35929 | r35930 >
Date:14:00, 5 June 2008
Author:kim
Status:old
Tags:
Comment:
__ -> _ in i18n, which should hopefully now make it fully betawiki compatible
Modified paths:
  • /trunk/extensions/Wikidata/util/voctrain/i18n/language.i18n.php (modified) (history)
  • /trunk/extensions/Wikidata/util/voctrain/i18n/language.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/util/voctrain/i18n/language.i18n.php
@@ -22,26 +22,26 @@
2323 "voctrain_Permission_Denied"=>"Permission Denied",
2424 "voctrain_try_again_"=>"try again?",
2525 "voctrain_Action_unknown"=>"Action unknown",
26 - "voctrain_I_don_t_know_what_to_do_with___action__" =>
 26+ "voctrain_I_don_t_know_what_to_do_with_action_" =>
2727 "I don't know what to do with '%action'.",
2828 "voctrain_User_added" => "User added",
29 - "voctrain_Hello___username__welcome_to_the_omega_language_trainer" =>
 29+ "voctrain_Hello_username_welcome_to_the_omega_language_trainer" =>
3030 "Hello, %username, welcome to the omega language trainer",
3131 "voctrain_continue"=>"continue",
32 - "voctrain_hello__place"=>"hello there %place",
 32+ "voctrain_hello_place"=>"hello there %place",
3333 "voctrain_bye"=>"goodbye",
3434 "voctrain_Set_up_your_exercise"=>"Set up your exercise",
3535 "voctrain_Number_of_questions"=>"Number of questions",
3636 "voctrain_Languages"=>"Languages",
3737 "voctrain_Please_specify_the_languages_you_want_to_test_in"=>"Please specify the languages you want to test in",
38 - "voctrain__eg__eng_for_English__deu_for_Deutch__German___"=>"(eg, eng for English, deu for Deutch (German)).",
39 - "voctrain_Depending_on_your_test_set__some_combinations_might_work_better_than_others_"=>"Depending on your test set, some combinations might work better than others.",
 38+ "voctrain_eg_eng_for_English_deu_for_Deutch_German_"=>"(eg, eng for English, deu for Deutch (German)).",
 39+ "voctrain_Depending_on_your_test_set_some_combinations_might_work_better_than_others_"=>"Depending on your test set, some combinations might work better than others.",
4040 "voctrain_Questions"=>"Questions",
4141 "voctrain_Answers"=>"Answers",
4242 "voctrain_start_exercise"=>"start exercise",
4343 "voctrain_collection"=>"collection",
4444 "voctrain_ISO_639_3_format"=>"ISO-639-3 format",
45 - "voctrain_There_are__questions_remaining_questions_remaining__out_of_a_total_of__questions_total_"=>"There are %questions_remaining questions remaining, out of a total of %questions_total.",
 45+ "voctrain_There_are_questions_remaining_questions_remaining_out_of_a_total_of_questions_total_"=>"There are %questions_remaining questions remaining, out of a total of %questions_total.",
4646 "voctrain_Definition"=>"Definition",
4747 "voctrain_Dictionary_definition_to_help_you"=>"Dictionary definition to help you",
4848 "voctrain_Word"=>"Word",
@@ -81,26 +81,26 @@
8282 "voctrain_Permission_Denied"=>"login: access is denied",
8383 "voctrain_try_again_"=>"An operation failed, link back to normal voctrainer (used in multiple locations)",
8484 "voctrain_Action_unknown"=>"Action unknown: Page title",
85 - "voctrain_I_don_t_know_what_to_do_with___action__" =>
 85+ "voctrain_I_don_t_know_what_to_do_with_action_" =>
8686 "Action unknown: body text of page (don't translate %action).",
8787 "voctrain_User_added" => "login: title of User added page",
88 - "voctrain_Hello___username__welcome_to_the_omega_language_trainer" =>
 88+ "voctrain_Hello_username_welcome_to_the_omega_language_trainer" =>
8989 "login: Greeting when user created. (Don't translate %username)",
9090 "voctrain_continue"=>"continue operation (used in multiple locations)",
91 - "voctrain_hello__place"=>"Test message (don't translate %place)",
 91+ "voctrain_hello_place"=>"Test message (don't translate %place)",
9292 "voctrain_bye"=>"Test message",
9393 "voctrain_Set_up_your_exercise"=>"setup: Page title",
9494 "voctrain_Number_of_questions"=>"setup: subheading",
9595 "voctrain_Languages"=>"Languages",
9696 "voctrain_Please_specify_the_languages_you_want_to_test_in"=>"Setup:text the in refers to '...in iso-693-3 format'",
97 - "voctrain__eg__eng_for_English__deu_for_Deutch__German___"=>"Setup:text",
98 - "voctrain_Depending_on_your_test_set__some_combinations_might_work_better_than_others_"=>"setup:text",
 97+ "voctrain_eg_eng_for_English_deu_for_Deutch_German_"=>"Setup:text",
 98+ "voctrain_Depending_on_your_test_set_some_combinations_might_work_better_than_others_"=>"setup:text",
9999 "voctrain_Questions"=>"Questions",
100100 "voctrain_Answers"=>"Answers",
101101 "voctrain_start_exercise"=>"button:start exercise",
102102 "voctrain_collection"=>"a wikidata collection",
103103 "voctrain_ISO_639_3_format"=>"ISO-639-3 format",
104 - "voctrain_There_are__questions_remaining_questions_remaining__out_of_a_total_of__questions_total_"=>"exercise: status at top of page (don't translate %questions_remaining and %questions_total)",
 104+ "voctrain_There_are_questions_remaining_questions_remaining_out_of_a_total_of_questions_total_"=>"exercise: status at top of page (don't translate %questions_remaining and %questions_total)",
105105 "voctrain_Definition"=>"exercise: subheading",
106106 "voctrain_Dictionary_definition_to_help_you"=>"exercise: text",
107107 "voctrain_Word"=>"exercise: subheading",
@@ -139,26 +139,26 @@
140140 "voctrain_Permission_Denied"=>"Toestemming Geweigerd",
141141 "voctrain_try_again_"=>"probeer opnieuw?",
142142 "voctrain_Action_unknown"=>"Aktie (action) onbekend",
143 - "voctrain_I_don_t_know_what_to_do_with___action__" =>
 143+ "voctrain_I_don_t_know_what_to_do_with_action_" =>
144144 "Ik weet niet wat ik doen moet met '%action'.",
145145 "voctrain_User_added" => "Gebruiker toegevoegd",
146 - "voctrain_Hello___username__welcome_to_the_omega_language_trainer" =>
 146+ "voctrain_Hello_username_welcome_to_the_omega_language_trainer" =>
147147 "Hallo, %username, welkom bij de omega taaltrainer",
148148 "voctrain_continue"=>"doorgaan",
149 - "voctrain_hello__place"=>"hallo daar %place",
 149+ "voctrain_hello_place"=>"hallo daar %place",
150150 "voctrain_bye"=>"tot ziens",
151151 "voctrain_Set_up_your_exercise"=>"Stel uw oefening op",
152152 "voctrain_Number_of_questions"=>"Aantal vragen",
153153 "voctrain_Languages"=>"Talen",
154154 "voctrain_Please_specify_the_languages_you_want_to_test_in"=>"Geef aub de talen op waarin u wilt oefenen in",
155 - "voctrain__eg__eng_for_English__deu_for_Deutch__German___"=>"(bijv, eng voor English (Engels), deu voor Deutch (Duits)).",
156 - "voctrain_Depending_on_your_test_set__some_combinations_might_work_better_than_others_"=>"Afhankelijk van uw testset, werken sommige combinaties beter dan anderen.",
 155+ "voctrain_eg_eng_for_English_deu_for_Deutch_German_"=>"(bijv, eng voor English (Engels), deu voor Deutch (Duits)).",
 156+ "voctrain_Depending_on_your_test_set_some_combinations_might_work_better_than_others_"=>"Afhankelijk van uw testset, werken sommige combinaties beter dan anderen.",
157157 "voctrain_Questions"=>"Vragen",
158158 "voctrain_Answers"=>"Antwoorden",
159159 "voctrain_start_exercise"=>"start oefening",
160160 "voctrain_collection"=>"collectie",
161161 "voctrain_ISO_639_3_format"=>"ISO-639-3 formaat",
162 - "voctrain_There_are__questions_remaining_questions_remaining__out_of_a_total_of__questions_total_"=>
 162+ "voctrain_There_are_questions_remaining_questions_remaining_out_of_a_total_of_questions_total_"=>
163163 "Er zijn nog %questions_remaining vragen over, uit een totaal van %questions_total.",
164164 "voctrain_Definition"=>"Definitie",
165165 "voctrain_Dictionary_definition_to_help_you"=>"Woordenboek definitie om u te helpen",
Index: trunk/extensions/Wikidata/util/voctrain/i18n/language.php
@@ -57,6 +57,12 @@
5858 $string="voctrain_".$string;
5959 }
6060 $string=preg_replace("|[^A-Za-z0-9_]|","_",$string);
 61+ $compare="";
 62+ while($compare!=$string) {
 63+ $compare=$string;
 64+ $string=str_replace("__","_",$string);
 65+ }
 66+
6167 return $string;
6268 }
6369

Status & tagging log