[Bug #789] Renamed 'i18n' prefix in ganttzk to 'ganttzk_i18n'
A name collision made that the ganttzk package used the webapp.I18nHelper to resolve localized strings, this caused that some strings were not translated. FEA: ItEr74S04BugFixing
This commit is contained in:
parent
7d0103b250
commit
91b9422224
3 changed files with 28 additions and 27 deletions
|
|
@ -19,15 +19,15 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<?xel-method prefix="i18n" name="_" class="org.zkoss.ganttz.i18n.I18nHelper"
|
||||
<?xel-method prefix="ganttzk_i18n" name="_" class="org.zkoss.ganttz.i18n.I18nHelper"
|
||||
signature="java.lang.String _(java.lang.String name)" ?>
|
||||
|
||||
<div>
|
||||
<tree id="tasksTree" fixedLayout="true" sclass="taskTreeCols">
|
||||
<treecols sizable="false" height="33px">
|
||||
<treecol label="${i18n:_('Name')}" sclass="tree-text" />
|
||||
<treecol label="${i18n:_('Start')}" width="76px" />
|
||||
<treecol label="${i18n:_('End')}" width="76px" />
|
||||
<treecol label="${ganttzk_i18n:_('Name')}" sclass="tree-text" />
|
||||
<treecol label="${ganttzk_i18n:_('Start')}" width="76px" />
|
||||
<treecol label="${ganttzk_i18n:_('End')}" width="76px" />
|
||||
</treecols>
|
||||
</tree>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,13 +18,14 @@
|
|||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n" ?>
|
||||
<?xel-method prefix="ganttzk_i18n" name="_" class="org.zkoss.ganttz.i18n.I18nHelper"
|
||||
signature="java.lang.String _(java.lang.String name)" ?>
|
||||
|
||||
<borderlayout width="auto" height="100%" class="inner-layout">
|
||||
<north height="32px" border="0" sclass="toolbar-box">
|
||||
<zscript><![CDATA[
|
||||
planner = self;
|
||||
]]>
|
||||
planner = self;
|
||||
]]>
|
||||
</zscript>
|
||||
|
||||
<hbox align="center" id="toolbar">
|
||||
|
|
@ -32,17 +33,17 @@ planner = self;
|
|||
|
||||
<!-- Commands -->
|
||||
<templateFinderPopup id="templateFinderPopup"
|
||||
acceptButtonLabel="${i18n:_('Create Project')}"
|
||||
caption="${i18n:_('Choosing Template')}" />
|
||||
acceptButtonLabel="${ganttzk_i18n:_('Create Project')}"
|
||||
caption="${ganttzk_i18n:_('Choosing Template')}" />
|
||||
<button onClick="planner.invalidate()" image="/common/img/ico_refresh.png"
|
||||
tooltiptext="${i18n:_('Refresh')}" visible="false" />
|
||||
tooltiptext="${ganttzk_i18n:_('Refresh')}" visible="false" />
|
||||
<button id="btnPrint" onClick="planner.print()"
|
||||
image="/common/img/ico_print.png" tooltiptext="${i18n:_('Print')}" />
|
||||
image="/common/img/ico_print.png" tooltiptext="${ganttzk_i18n:_('Print')}" />
|
||||
|
||||
<separator />
|
||||
|
||||
<!-- Visualization modes -->
|
||||
<label>${i18n:_('Zoom')}:</label>
|
||||
<label>${ganttzk_i18n:_('Zoom')}:</label>
|
||||
<listbox id="listZoomLevels" mold="select" rows="1"
|
||||
model="${planner.zoomLevels}" onSelect="planner.setZoomLevel(self.selectedItem.value);">
|
||||
</listbox>
|
||||
|
|
@ -52,23 +53,23 @@ planner = self;
|
|||
<hbox sclass="view-options">
|
||||
<button id="showCriticalPath" onClick="planner.showCriticalPath();"
|
||||
image="/common/img/ico_criticalpath.png"
|
||||
tooltiptext="${i18n:_('Show/Hide Critical path')}"
|
||||
tooltiptext="${ganttzk_i18n:_('Show/Hide Critical path')}"
|
||||
sclass="planner-command" />
|
||||
<button id="showAllLabels" onClick="planner.showAllLabels();"
|
||||
image="/common/img/ico_labels.png"
|
||||
tooltiptext="${i18n:_('Show/Hide labels')}"
|
||||
tooltiptext="${ganttzk_i18n:_('Show/Hide labels')}"
|
||||
sclass="planner-command show-labels" />
|
||||
<button id="showAllResources" onClick="planner.showAllResources();"
|
||||
image="/common/img/ico_resources.png" tooltiptext="${i18n:_('Show/Hide resources')}"
|
||||
image="/common/img/ico_resources.png" tooltiptext="${ganttzk_i18n:_('Show/Hide resources')}"
|
||||
sclass="planner-command show-resources" />
|
||||
<button id="expandAll" onClick="planner.expandAll();"
|
||||
image="/common/img/ico_expand.png" tooltiptext="${i18n:_('Expand/Collapse all')}"
|
||||
image="/common/img/ico_expand.png" tooltiptext="${ganttzk_i18n:_('Expand/Collapse all')}"
|
||||
sclass="planner-command" />
|
||||
<button id="flattenTree" onClick="planner.flattenTree();"
|
||||
image="/common/img/ico_flatten.png" tooltiptext="${i18n:_('Flatten/Unflatten tree')}"
|
||||
image="/common/img/ico_flatten.png" tooltiptext="${ganttzk_i18n:_('Flatten/Unflatten tree')}"
|
||||
sclass="planner-command" />
|
||||
<button id="showReportedHours" onClick="planner.showReportedHours();"
|
||||
image="/common/img/ico_costs.png" tooltiptext="${i18n:_('Show/Hide reported hours')}"
|
||||
image="/common/img/ico_costs.png" tooltiptext="${ganttzk_i18n:_('Show/Hide reported hours')}"
|
||||
sclass="planner-command" />
|
||||
|
||||
</hbox>
|
||||
|
|
@ -76,7 +77,7 @@ planner = self;
|
|||
<hbox class="show-advances" align="center">
|
||||
<button id="showAdvances" onClick="planner.showAdvances();"
|
||||
image="/common/img/ico_progress.png" style="width:46px"
|
||||
tooltiptext="${i18n:_('Show/Hide Progress')}"
|
||||
tooltiptext="${ganttzk_i18n:_('Show/Hide Progress')}"
|
||||
sclass="planner-command" />
|
||||
<combobox id="cbProgressTypes" width="1px"
|
||||
visible="false" sclass="progress-types" />
|
||||
|
|
@ -112,7 +113,7 @@ planner = self;
|
|||
</center>
|
||||
</borderlayout>
|
||||
</center>
|
||||
<south collapsible="true" title="${i18n:_('Graphics')}"
|
||||
<south collapsible="true" title="${ganttzk_i18n:_('Graphics')}"
|
||||
sclass="scheduling-graphics" id="graphics"
|
||||
onOpen="planner.changeChartVisibility(event.open);" height="200px">
|
||||
<div id="insertionPointChart" />
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<?xel-method prefix="i18n" name="_" class="org.zkoss.ganttz.i18n.I18nHelper"
|
||||
<?xel-method prefix="ganttzk_i18n" name="_" class="org.zkoss.ganttz.i18n.I18nHelper"
|
||||
signature="java.lang.String _(java.lang.String name)" ?>
|
||||
|
||||
<zk xmlns:n="http://www.zkoss.org/2005/zk/native" height="100%">
|
||||
|
|
@ -32,7 +32,7 @@ resourcesLoadPanel = self;
|
|||
<north height="30px" border="0" sclass="toolbar-box">
|
||||
<hbox align="center" id="toolbar">
|
||||
<separator/>
|
||||
<label>${i18n:_('Zoom')}:</label>
|
||||
<label>${ganttzk_i18n:_('Zoom')}:</label>
|
||||
<listbox id="listZoomLevels" mold="select" rows="1"
|
||||
model="${resourcesLoadPanel.zoomLevels}"
|
||||
onSelect="resourcesLoadPanel.setZoomLevel(self.selectedItem.value);" >
|
||||
|
|
@ -40,14 +40,14 @@ resourcesLoadPanel = self;
|
|||
<separator/>
|
||||
<hbox id="additionalFilterInsertionPoint1" />
|
||||
<separator/>
|
||||
${i18n:_('Filter')}:
|
||||
${ganttzk_i18n:_('Filter')}:
|
||||
<listbox id="listFilters" mold="select" rows="1" width="100px"
|
||||
model="${resourcesLoadPanel.filters}"
|
||||
selectedIndex="0"
|
||||
onSelect="resourcesLoadPanel.setFilter(self.selectedItem.value);">
|
||||
</listbox>
|
||||
<separator/>
|
||||
<label id="filterByNameLabel">${i18n:_('Name filter')}:</label>
|
||||
<label id="filterByNameLabel">${ganttzk_i18n:_('Name filter')}:</label>
|
||||
<combobox id="filterByNameCombo" width="50px"
|
||||
onChange="resourcesLoadPanel.onSelectFilterByName(self)" />
|
||||
<separator/>
|
||||
|
|
@ -65,7 +65,7 @@ resourcesLoadPanel = self;
|
|||
<vbox pack="top" align="center" width="100%">
|
||||
<tree fixedLayout="true" width="100%">
|
||||
<treecols>
|
||||
<treecol label="${i18n:_('Name')}" height="29px"/>
|
||||
<treecol label="${ganttzk_i18n:_('Name')}" height="29px"/>
|
||||
</treecols>
|
||||
</tree>
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ resourcesLoadPanel = self;
|
|||
</center>
|
||||
</borderlayout>
|
||||
</center>
|
||||
<south height="200px" collapsible="true" title="${i18n:_('Graphics')}"
|
||||
<south height="200px" collapsible="true" title="${ganttzk_i18n:_('Graphics')}"
|
||||
sclass="scheduling-graphics" id="graphics"
|
||||
onOpen="resourcesLoadPanel.changeChartVisibility(event.open);">
|
||||
<div id="insertionPointChart" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue