14 |
* $Id$ |
* $Id$ |
15 |
* |
* |
16 |
* $Log$ |
* $Log$ |
17 |
|
* Revision 1.2 2003/11/14 17:51:20 udo |
18 |
|
* changed label-text |
19 |
|
* |
20 |
* Revision 1.1 2003/11/14 17:02:28 udo |
* Revision 1.1 2003/11/14 17:02:28 udo |
21 |
* initial commit |
* initial commit |
22 |
* |
* |
84 |
|
|
85 |
// this is needed for sorting |
// this is needed for sorting |
86 |
$tmp_array = array(); |
$tmp_array = array(); |
87 |
$larger = array(); |
$larger = array(); |
88 |
// this is needed because the arrays may have to be filled with an array |
// this is needed because the arrays may have to be filled with an array |
89 |
$empty_array = array("lvalue" => "", "lkey" => "", "lcountrykey" => "", "guid" => "" ); |
$empty_array = array("lvalue" => "", "lkey" => "", "lcountrykey" => "", "guid" => "" ); |
90 |
|
|
109 |
} else { |
} else { |
110 |
$larger = $this->_show_items; |
$larger = $this->_show_items; |
111 |
} |
} |
|
|
|
112 |
|
|
|
|
|
113 |
// both arrays are parsed and missing entries (without a key) are filled |
// both arrays are parsed and missing entries (without a key) are filled |
114 |
// with the empty_array. missing lkeys are filled with the lkey from used_keys, |
// with the empty_array. missing lkeys are filled with the lkey from used_keys, |
115 |
// so that now every key of the arrays has matching entries. this is important, |
// so that now every key of the arrays has matching entries. this is important, |
126 |
} |
} |
127 |
} |
} |
128 |
|
|
129 |
|
|
130 |
// is _undone is selected, that means that the user only wants to see the items that |
// is _undone is selected, that means that the user only wants to see the items that |
131 |
// are not yet translated, every entry, that has lvalues in both arrays, is marked. |
// are not yet translated, every entry, that has lvalues in both arrays, is marked. |
132 |
if ($this->_undone == "yes") { |
if ($this->_undone == "yes") { |
141 |
|
|
142 |
// the elements of the form are created |
// the elements of the form are created |
143 |
foreach($this->_set_items as $key => $value) { |
foreach($this->_set_items as $key => $value) { |
|
|
|
|
|
|
144 |
// if the entry == kickedMarkerXXX, $value will be no array |
// if the entry == kickedMarkerXXX, $value will be no array |
145 |
if (is_array($value)) { |
if (is_array($value)) { |
146 |
$show_element = $value['lkey'] . $this->_show_lang . "s"; |
$show_element = $value['lkey'] . $this->_show_lang . "s"; |
173 |
$this->set_element_value($set_element, $this->_set_items[$key]['lvalue']); |
$this->set_element_value($set_element, $this->_set_items[$key]['lvalue']); |
174 |
|
|
175 |
$myElement = &$this->get_element($show_element); |
$myElement = &$this->get_element($show_element); |
176 |
$myElement->set_label_text(""); |
$myElement->set_label_text($value['lkey']); |
177 |
$myElement->set_required(false); |
$myElement->set_required(false); |
178 |
|
|
179 |
$myElement = &$this->get_element($set_element); |
$myElement = &$this->get_element($set_element); |
180 |
$myElement->set_label_text(""); |
$myElement->set_label_text($value['lkey']); |
181 |
$myElement->set_required(false); |
$myElement->set_required(false); |
182 |
} |
} |
183 |
} |
} |
564 |
|
|
565 |
} |
} |
566 |
|
|
|
?> |
|
567 |
|
?> |