Changeset 593
- Timestamp:
- Nov 21, 2013, 3:45:51 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Dictionary/Dictionary.php
r588 r593 49 49 'TextAreaTriggerTavern' => 'Name', 50 50 'Dictionary' => 'Text', 51 'TextArea' => 'Name', 52 'TextAreaPOI' => 'Name', 53 'TextCharacterClass' => 'Name', 54 'TextCharacterRace' => 'Name1', 55 'TextItemSubClass' => 'Name', 56 'TextCreatureType' => 'Name', 51 57 ); 52 58 53 $buff = GetTranslatNames($Text,$mode, $TablesColumn);59 $buff = GetTranslatNames($Text,$mode,GetTranslatNamesArray()); 54 60 55 61 // $buff[] = array($Line['ID'],GetIDbyName($Table),$Line[$Column],$Line['Tran']); -
trunk/Modules/Translation/Form.php
r582 r593 8 8 foreach($names as $Line) { 9 9 if ($Line[3] <> '') { 10 $Text = str_replace($Line[2],'<span Title="Byl nalezen překlad: '.$Line[3].'" class="edit">'.$Line[2].'</span>',$Text); 11 $Text = str_replace(strtolower($Line[2]),'<span Title="Byl nalezen překlad: '.$Line[3].'" class="edit">'.$Line[2].'</span>',$Text); 10 if (strpos($Text, '>'.$Line[2]) == 0) 11 $Text = str_replace($Line[2],'<span Title="Přelož jako: '.$Line[3].'" class="edit"><a class="edit" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[2].'</a></span>',$Text); 12 if (strpos($Text, '>'.$Line[2]) == 0) 13 $Text = str_replace(strtolower($Line[2]),'<span Title="Překládej jako: '.$Line[3].'" class="edit"><a class="edit" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[2].'</a></span>',$Text); 12 14 } else { 13 $Text = str_replace($Line[2],'<span title="Jméno bylo nalezeno v názvech a můžete ho přeložit. Začnete kliknutím na: Vyhledat v názvech" class="edit">'.$Line[2].'</span>',$Text); 14 $Text = str_replace(strtolower($Line[2]),'<span title="Jméno bylo nalezeno v názvech a můžete ho přeložit. Začnete kliknutím na: Vyhledat v názvech" class="edit">'.$Line[2].'</span>',$Text); 15 if (strpos($Text, '>'.$Line[2]) == 0) 16 $Text = str_replace($Line[2],'<span title="Kliknutím přeložíš" class="needtran"><a class="needtran" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[2].'</a></span>',$Text); 17 if (strpos($Text, '>'.$Line[2]) == 0) 18 $Text = str_replace(strtolower($Line[2]),'<span title="Kliknutím přeložíš" class="needtran"><a class="needtran" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[2].'</a></span>',$Text); 15 19 } 16 20 } … … 185 189 if(($GroupId < 4) or ($GroupId == 10) or ($GroupId == 11)) { 186 190 //<span class="edit">barvou.</span> 187 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextCreature' => 'name'));191 $names = GetTranslatNames($Text, 0, GetTranslatNamesArray()); 188 192 } else { 189 193 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text')); -
trunk/includes/Version.php
r592 r593 1 1 <?php 2 2 3 $Revision = 59 0; // Subversion revision3 $Revision = 591; // Subversion revision 4 4 $DatabaseRevision = 585; // Database structure revision 5 5 $ReleaseTime = '2013-11-21'; -
trunk/includes/global.php
r589 r593 481 481 } 482 482 } 483 483 function GetTranslatNamesArray() { 484 485 $TablesColumn = array 486 ( 487 'TextGameObject' => 'Name', 488 'TextCreature' => 'name', 489 'TextItem' => 'Name', 490 'TextTransport' => 'Name', 491 'TextAreaTriggerTeleport' => 'Name', 492 'TextAreaTriggerTavern' => 'Name', 493 'Dictionary' => 'Text', 494 'TextArea' => 'Name', 495 'TextAreaPOI' => 'Name', 496 'TextCharacterClass' => 'Name', 497 'TextCharacterRace' => 'Name1', 498 'TextItemSubClass' => 'Name', 499 'TextCreatureType' => 'Name', 500 ); 501 return($TablesColumn); 502 } 484 503 function GetTranslatNames($Text,$mode,$TablesColumn) 485 504 { -
trunk/style/style.css
r576 r593 164 164 .edit 165 165 { 166 color: #362b27; 166 167 background-color: #DB7093; 168 text-decoration: none; 169 } 170 171 .edit:visited 172 { 173 color: #362b27; 174 background-color: #DB7093; 175 text-decoration: none; 176 } 177 .edit:hover 178 { 179 color: #362b27; 180 background-color: #DB7093; 181 text-decoration: none; 182 } 183 184 .needtran 185 { 186 color: #362b27; 187 background-color: #D0D0D0; 188 text-decoration: none; 189 } 190 .needtran:visited 191 { 192 color: #362b27; 193 background-color: #D0D0D0; 194 text-decoration: none; 195 } 196 .needtran:hover 197 { 198 color: #362b27; 199 background-color: #D0D0D0; 200 text-decoration: none; 167 201 } 168 202
Note:
See TracChangeset
for help on using the changeset viewer.