Changeset 593 for trunk/Modules
- Timestamp:
- Nov 21, 2013, 3:45:51 PM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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']); -
TabularUnified 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'));
Note:
See TracChangeset
for help on using the changeset viewer.