Index: trunk/extensions/Wikidata/util/voctrain/i18n/language.i18n.php |
— | — | @@ -22,26 +22,26 @@ |
23 | 23 | "voctrain_Permission_Denied"=>"Permission Denied", |
24 | 24 | "voctrain_try_again_"=>"try again?", |
25 | 25 | "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_" => |
27 | 27 | "I don't know what to do with '%action'.", |
28 | 28 | "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" => |
30 | 30 | "Hello, %username, welcome to the omega language trainer", |
31 | 31 | "voctrain_continue"=>"continue", |
32 | | - "voctrain_hello__place"=>"hello there %place", |
| 32 | + "voctrain_hello_place"=>"hello there %place", |
33 | 33 | "voctrain_bye"=>"goodbye", |
34 | 34 | "voctrain_Set_up_your_exercise"=>"Set up your exercise", |
35 | 35 | "voctrain_Number_of_questions"=>"Number of questions", |
36 | 36 | "voctrain_Languages"=>"Languages", |
37 | 37 | "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.", |
40 | 40 | "voctrain_Questions"=>"Questions", |
41 | 41 | "voctrain_Answers"=>"Answers", |
42 | 42 | "voctrain_start_exercise"=>"start exercise", |
43 | 43 | "voctrain_collection"=>"collection", |
44 | 44 | "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.", |
46 | 46 | "voctrain_Definition"=>"Definition", |
47 | 47 | "voctrain_Dictionary_definition_to_help_you"=>"Dictionary definition to help you", |
48 | 48 | "voctrain_Word"=>"Word", |
— | — | @@ -81,26 +81,26 @@ |
82 | 82 | "voctrain_Permission_Denied"=>"login: access is denied", |
83 | 83 | "voctrain_try_again_"=>"An operation failed, link back to normal voctrainer (used in multiple locations)", |
84 | 84 | "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_" => |
86 | 86 | "Action unknown: body text of page (don't translate %action).", |
87 | 87 | "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" => |
89 | 89 | "login: Greeting when user created. (Don't translate %username)", |
90 | 90 | "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)", |
92 | 92 | "voctrain_bye"=>"Test message", |
93 | 93 | "voctrain_Set_up_your_exercise"=>"setup: Page title", |
94 | 94 | "voctrain_Number_of_questions"=>"setup: subheading", |
95 | 95 | "voctrain_Languages"=>"Languages", |
96 | 96 | "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", |
99 | 99 | "voctrain_Questions"=>"Questions", |
100 | 100 | "voctrain_Answers"=>"Answers", |
101 | 101 | "voctrain_start_exercise"=>"button:start exercise", |
102 | 102 | "voctrain_collection"=>"a wikidata collection", |
103 | 103 | "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)", |
105 | 105 | "voctrain_Definition"=>"exercise: subheading", |
106 | 106 | "voctrain_Dictionary_definition_to_help_you"=>"exercise: text", |
107 | 107 | "voctrain_Word"=>"exercise: subheading", |
— | — | @@ -139,26 +139,26 @@ |
140 | 140 | "voctrain_Permission_Denied"=>"Toestemming Geweigerd", |
141 | 141 | "voctrain_try_again_"=>"probeer opnieuw?", |
142 | 142 | "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_" => |
144 | 144 | "Ik weet niet wat ik doen moet met '%action'.", |
145 | 145 | "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" => |
147 | 147 | "Hallo, %username, welkom bij de omega taaltrainer", |
148 | 148 | "voctrain_continue"=>"doorgaan", |
149 | | - "voctrain_hello__place"=>"hallo daar %place", |
| 149 | + "voctrain_hello_place"=>"hallo daar %place", |
150 | 150 | "voctrain_bye"=>"tot ziens", |
151 | 151 | "voctrain_Set_up_your_exercise"=>"Stel uw oefening op", |
152 | 152 | "voctrain_Number_of_questions"=>"Aantal vragen", |
153 | 153 | "voctrain_Languages"=>"Talen", |
154 | 154 | "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.", |
157 | 157 | "voctrain_Questions"=>"Vragen", |
158 | 158 | "voctrain_Answers"=>"Antwoorden", |
159 | 159 | "voctrain_start_exercise"=>"start oefening", |
160 | 160 | "voctrain_collection"=>"collectie", |
161 | 161 | "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_"=> |
163 | 163 | "Er zijn nog %questions_remaining vragen over, uit een totaal van %questions_total.", |
164 | 164 | "voctrain_Definition"=>"Definitie", |
165 | 165 | "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 @@ |
58 | 58 | $string="voctrain_".$string; |
59 | 59 | } |
60 | 60 | $string=preg_replace("|[^A-Za-z0-9_]|","_",$string); |
| 61 | + $compare=""; |
| 62 | + while($compare!=$string) { |
| 63 | + $compare=$string; |
| 64 | + $string=str_replace("__","_",$string); |
| 65 | + } |
| 66 | + |
61 | 67 | return $string; |
62 | 68 | } |
63 | 69 | |