Author: jleroux
Date: Sun Mar 15 21:21:23 2009 New Revision: 754756 URL: http://svn.apache.org/viewvc?rev=754756&view=rev Log: I forgot to check svn properties, updated Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl (contents, props changed) ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl (contents, props changed) Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy Sun Mar 15 21:21:23 2009 @@ -1,33 +1,33 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.ofbiz.entity.GenericDelegator; -import org.ofbiz.webtools.labelmanager.*; - -LabelManagerFactory.getLabelManagerFactory(delegator.getDelegatorName()); -context.labels = LabelManagerFactory.getLabels(); -context.labelsList = LabelManagerFactory.getLabelsList(); -context.localesFound = LabelManagerFactory.getLocalesFound(); -context.fileNamesFound = LabelManagerFactory.getFileNamesFound(); -context.componentNamesFound = LabelManagerFactory.getComponentNamesFound(); -context.references = LabelManagerFactory.getReferences(); -context.referencesList = LabelManagerFactory.getReferencesList(); -context.duplicatedLocalesLabels = LabelManagerFactory.getDuplicatedLocalesLabels(); -context.duplicatedLocalesLabelsList = LabelManagerFactory.getDuplicatedLocalesLabelsList(); -context.keySeparator = LabelManagerFactory.keySeparator; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.ofbiz.entity.GenericDelegator; +import org.ofbiz.webtools.labelmanager.*; + +LabelManagerFactory.getLabelManagerFactory(delegator.getDelegatorName()); +context.labels = LabelManagerFactory.getLabels(); +context.labelsList = LabelManagerFactory.getLabelsList(); +context.localesFound = LabelManagerFactory.getLocalesFound(); +context.fileNamesFound = LabelManagerFactory.getFileNamesFound(); +context.componentNamesFound = LabelManagerFactory.getComponentNamesFound(); +context.references = LabelManagerFactory.getReferences(); +context.referencesList = LabelManagerFactory.getReferencesList(); +context.duplicatedLocalesLabels = LabelManagerFactory.getDuplicatedLocalesLabels(); +context.duplicatedLocalesLabelsList = LabelManagerFactory.getDuplicatedLocalesLabelsList(); +context.keySeparator = LabelManagerFactory.keySeparator; Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/LabelManager.groovy ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy Sun Mar 15 21:21:23 2009 @@ -1,32 +1,32 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.ofbiz.entity.GenericDelegator; -import org.ofbiz.webtools.labelmanager.*; - -LabelManagerFactory.getLabelManagerFactory(delegator.getDelegatorName()); -context.labels = LabelManagerFactory.getLabels(); -context.localesFound = LabelManagerFactory.getLocalesFound(); -context.fileNamesFound = LabelManagerFactory.getFileNamesFound(); -context.componentNamesFound = LabelManagerFactory.getComponentNamesFound(); - -if (parameters.sourceKey && parameters.sourceFileName) { - context.label = context.labels.get(parameters.sourceKey + LabelManagerFactory.keySeparator + parameters.sourceFileName); - context.titleProperty = "WebtoolsLabelManagerUpdate"; -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.ofbiz.entity.GenericDelegator; +import org.ofbiz.webtools.labelmanager.*; + +LabelManagerFactory.getLabelManagerFactory(delegator.getDelegatorName()); +context.labels = LabelManagerFactory.getLabels(); +context.localesFound = LabelManagerFactory.getLocalesFound(); +context.fileNamesFound = LabelManagerFactory.getFileNamesFound(); +context.componentNamesFound = LabelManagerFactory.getComponentNamesFound(); + +if (parameters.sourceKey && parameters.sourceFileName) { + context.label = context.labels.get(parameters.sourceKey + LabelManagerFactory.keySeparator + parameters.sourceFileName); + context.titleProperty = "WebtoolsLabelManagerUpdate"; +} Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/UpdateManager.groovy ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy Sun Mar 15 21:21:23 2009 @@ -1,29 +1,29 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import java.net.URI; -import org.ofbiz.base.util.FileUtil; -import org.ofbiz.base.util.StringUtil; - -fileToString = ""; -if (parameters.fileName) { - file = new File(new URI(parameters.fileName)); - fileToString = FileUtil.readString("UTF-8", file); - rows = StringUtil.split(fileToString, System.getProperty("line.separator")); -} -context.rows = rows; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import java.net.URI; +import org.ofbiz.base.util.FileUtil; +import org.ofbiz.base.util.StringUtil; + +fileToString = ""; +if (parameters.fileName) { + file = new File(new URI(parameters.fileName)); + fileToString = FileUtil.readString("UTF-8", file); + rows = StringUtil.split(fileToString, System.getProperty("line.separator")); +} +context.rows = rows; Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/labelmanager/ViewFile.groovy ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl Sun Mar 15 21:21:23 2009 @@ -1,103 +1,103 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<div class="screenlet-body"> - <form action="<@ofbizUrl>SearchLabels</@ofbizUrl>" method="post"> - <table class="basic-table"> - <tr> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerKey} - </td> - <td align="left"> - <input type="text" name="labelKey" size="30" maxlength="70" value="${parameters.labelKey?if_exists}"> - </td> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerComponentName} - </td> - <td align="left"> - <select name="labelComponentName"> - <option value="">${uiLabelMap.WebtoolsLabelManagerAllComponents}</option> - <#list componentNamesFound as componentNameFound> - <option <#if parameters.labelComponentName?exists && parameters.labelComponentName == componentNameFound>selected="selected"</#if> value="${componentNameFound}">${componentNameFound}</option> - </#list> - </select> - </td> - </tr> - <tr> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerFileName} - </td> - <td align="left"> - <select name="labelFileName"> - <option value="">${uiLabelMap.WebtoolsLabelManagerAllFiles}</option> - <#assign fileNames = fileNamesFound.keySet()> - <#list fileNames as fileName> - <option <#if parameters.labelFileName?exists && parameters.labelFileName == fileName>selected="selected"</#if> value="${fileName}">${fileName}</option> - </#list> - </select> - </td> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerLocale} - </td> - <td align="left"> - <select name="labelLocaleName"> - <option value="">${uiLabelMap.WebtoolsLabelManagerAllLocales}</option> - <#list localesFound as localeFound> - <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> - <#assign langAttr = localeFound.toString()?replace("_", "-")> - <#assign langDir = "ltr"> - <#if "ar.iw"?contains(langAttr?substring(0, 2))> - <#assign langDir = "rtl"> - </#if> - <option <#if parameters.labelLocaleName?exists && parameters.labelLocaleName == localeFound>selected="selected"</#if> value="${localeFound}" lang="${langAttr}" dir="${langDir}"><#if locale?exists && locale?has_content>${locale.getDisplayName(locale)}<#else>${localeFound}</#if></option> - </#list> - </select> - </td> - </tr> - <tr> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerOnlyNotUsedLabels} - </td> - <td align="left"> - <input type="checkbox" name="onlyNotUsedLabels" value="Y" <#if parameters.onlyNotUsedLabels?exists && parameters.onlyNotUsedLabels == "Y">checked</#if>> - </td> - <td align="right" class="label"> - ${uiLabelMap.WebtoolsLabelManagerOnlyMissingTranslations} - </td> - <td align="left"> - <input type="checkbox" name="onlyMissingTranslations" value="Y" <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y">checked</#if>> - </td> - </tr> - <tr> - <td colspan="4" align="center"> - <#if (duplicatedLocalesLabels > 0)> - <br/> - <b>${uiLabelMap.WebtoolsLabelManagerWarningMessage} (${duplicatedLocalesLabels})</b> - <br/> - <#list duplicatedLocalesLabelsList as duplicatedLocalesLabel> - <br>${duplicatedLocalesLabel.labelKey} - </#list> - <br/><br/>${uiLabelMap.WebtoolsLabelManagerClearCacheAfterFixingDuplicateLabels} - <#else> - <input type="submit" name="searchLabels" value="${uiLabelMap.CommonFind}"/> - </#if> - </td> - </tr> - </table> - </form> -</div> +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<div class="screenlet-body"> + <form action="<@ofbizUrl>SearchLabels</@ofbizUrl>" method="post"> + <table class="basic-table"> + <tr> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerKey} + </td> + <td align="left"> + <input type="text" name="labelKey" size="30" maxlength="70" value="${parameters.labelKey?if_exists}"> + </td> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerComponentName} + </td> + <td align="left"> + <select name="labelComponentName"> + <option value="">${uiLabelMap.WebtoolsLabelManagerAllComponents}</option> + <#list componentNamesFound as componentNameFound> + <option <#if parameters.labelComponentName?exists && parameters.labelComponentName == componentNameFound>selected="selected"</#if> value="${componentNameFound}">${componentNameFound}</option> + </#list> + </select> + </td> + </tr> + <tr> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerFileName} + </td> + <td align="left"> + <select name="labelFileName"> + <option value="">${uiLabelMap.WebtoolsLabelManagerAllFiles}</option> + <#assign fileNames = fileNamesFound.keySet()> + <#list fileNames as fileName> + <option <#if parameters.labelFileName?exists && parameters.labelFileName == fileName>selected="selected"</#if> value="${fileName}">${fileName}</option> + </#list> + </select> + </td> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerLocale} + </td> + <td align="left"> + <select name="labelLocaleName"> + <option value="">${uiLabelMap.WebtoolsLabelManagerAllLocales}</option> + <#list localesFound as localeFound> + <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> + <#assign langAttr = localeFound.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + </#if> + <option <#if parameters.labelLocaleName?exists && parameters.labelLocaleName == localeFound>selected="selected"</#if> value="${localeFound}" lang="${langAttr}" dir="${langDir}"><#if locale?exists && locale?has_content>${locale.getDisplayName(locale)}<#else>${localeFound}</#if></option> + </#list> + </select> + </td> + </tr> + <tr> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerOnlyNotUsedLabels} + </td> + <td align="left"> + <input type="checkbox" name="onlyNotUsedLabels" value="Y" <#if parameters.onlyNotUsedLabels?exists && parameters.onlyNotUsedLabels == "Y">checked</#if>> + </td> + <td align="right" class="label"> + ${uiLabelMap.WebtoolsLabelManagerOnlyMissingTranslations} + </td> + <td align="left"> + <input type="checkbox" name="onlyMissingTranslations" value="Y" <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y">checked</#if>> + </td> + </tr> + <tr> + <td colspan="4" align="center"> + <#if (duplicatedLocalesLabels > 0)> + <br/> + <b>${uiLabelMap.WebtoolsLabelManagerWarningMessage} (${duplicatedLocalesLabels})</b> + <br/> + <#list duplicatedLocalesLabelsList as duplicatedLocalesLabel> + <br>${duplicatedLocalesLabel.labelKey} + </#list> + <br/><br/>${uiLabelMap.WebtoolsLabelManagerClearCacheAfterFixingDuplicateLabels} + <#else> + <input type="submit" name="searchLabels" value="${uiLabelMap.CommonFind}"/> + </#if> + </td> + </tr> + </table> + </form> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl Sun Mar 15 21:21:23 2009 @@ -1,131 +1,131 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<script language="JavaScript" type="text/javascript"> - function updateAndSaveLabel() { - document.UpdateLabelForm.action="<@ofbizUrl>UpdateAndSaveLabelKey</@ofbizUrl>"; - document.UpdateLabelForm.submit(); - } -</script> -<div class="screenlet-body"> - <form method="post" action="<@ofbizUrl>UpdateLabelKey</@ofbizUrl>" name="UpdateLabelForm"> - <table class="basic-table" cellspacing="3"> - <tr> - <td colspan="2"> </td> - </tr> - <tr> - <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b></td> - <td align="left"> - <#if parameters.sourceKey?exists> - ${parameters.sourceKey} - <input type="hidden" name="key" value="${parameters.sourceKey}"> - <input type="hidden" name="update_label" value="Y"> - <#else> - <input type="text" name="key" size="70"> - <input type="hidden" name="update_label" value="N"> - </#if> - </td> - </tr> - <tr> - <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerKeyComment}</b></td> - <td align="left"> - <input type="text" name="keyComment" size="70" value="${parameters.sourceKeyComment?if_exists}"> - </td> - </tr> - <tr> - <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerFileName}</b></td> - <td align="left"> - <#if parameters.sourceFileName?exists> - ${parameters.sourceFileName} - <input type="hidden" name="fileName" value="${parameters.sourceFileName}"> - <#else> - <select name="fileName"> - <#assign fileNames = fileNamesFound.keySet()> - <#list fileNames as fileName> - <option <#if parameters.fileName?exists && parameters.fileName == fileName>selected="selected"</#if> value="${fileName}">${fileName}</option> - </#list> - </select> - </#if> - </td> - </tr> - <tr> - <td colspan="2" align="center"> - <input type="submit" value="${uiLabelMap.CommonBack}"/> - <#if parameters.sourceKey?exists> - <input type="submit" value="${uiLabelMap.CommonUpdate}" name="confirm"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerRemove}" name="removeLabel"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> - <#else> - <input type="submit" value="${uiLabelMap.CommonAdd}" name="confirm"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> - </#if> - </td> - </tr> - <#list localesFound as localeFound> - <#assign labelValue = ""> - <#assign labelComment = ""> - <#if parameters.sourceKey?exists> - <#assign value = (label.getLabelValue(localeFound))?if_exists> - <#if value?has_content> - <#assign labelValue = value.getLabelValue()> - <#assign labelComment = value.getLabelComment()> - </#if> - </#if> - <#assign showLocale = true> - <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> - <#assign showLocale = false> - </#if> - <#if showLocale == true> - <tr> - <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> - <#if locale?exists && locale?has_content> - <#assign langAttr = localeFound.toString()?replace("_", "-")> - <#assign langDir = "ltr"> - <#if "ar.iw"?contains(langAttr?substring(0, 2))> - <#assign langDir = "rtl"> - </#if> - <td align="right" lang="${langAttr}" dir="${langDir}"> - <b>${locale.getDisplayName(locale)}</b> - </td> - <#else> - <td align="right"><b>${localeFound}</b></td> - </#if> - <td align="left"> - <input type="hidden" name="localeNames" value="${localeFound}"> - <input type="text" name="localeValues" size="70" value="${labelValue?if_exists}"> - <input type="text" name="localeComments" size="70" value="${labelComment?if_exists}"> - </td> - </tr> - </#if> - </#list> - <tr> - <td colspan="2" align="center"> - <input type="submit" value="${uiLabelMap.CommonBack}"/> - <#if parameters.sourceKey?exists> - <input type="submit" value="${uiLabelMap.CommonUpdate}" name="confirm"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerRemove}" name="removeLabel"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> - <#else> - <input type="submit" value="${uiLabelMap.CommonAdd}" name="confirm"/> - <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> - </#if> - </td> - </tr> - </table> - </form> -</div> +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<script language="JavaScript" type="text/javascript"> + function updateAndSaveLabel() { + document.UpdateLabelForm.action="<@ofbizUrl>UpdateAndSaveLabelKey</@ofbizUrl>"; + document.UpdateLabelForm.submit(); + } +</script> +<div class="screenlet-body"> + <form method="post" action="<@ofbizUrl>UpdateLabelKey</@ofbizUrl>" name="UpdateLabelForm"> + <table class="basic-table" cellspacing="3"> + <tr> + <td colspan="2"> </td> + </tr> + <tr> + <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b></td> + <td align="left"> + <#if parameters.sourceKey?exists> + ${parameters.sourceKey} + <input type="hidden" name="key" value="${parameters.sourceKey}"> + <input type="hidden" name="update_label" value="Y"> + <#else> + <input type="text" name="key" size="70"> + <input type="hidden" name="update_label" value="N"> + </#if> + </td> + </tr> + <tr> + <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerKeyComment}</b></td> + <td align="left"> + <input type="text" name="keyComment" size="70" value="${parameters.sourceKeyComment?if_exists}"> + </td> + </tr> + <tr> + <td align="right"><b>${uiLabelMap.WebtoolsLabelManagerFileName}</b></td> + <td align="left"> + <#if parameters.sourceFileName?exists> + ${parameters.sourceFileName} + <input type="hidden" name="fileName" value="${parameters.sourceFileName}"> + <#else> + <select name="fileName"> + <#assign fileNames = fileNamesFound.keySet()> + <#list fileNames as fileName> + <option <#if parameters.fileName?exists && parameters.fileName == fileName>selected="selected"</#if> value="${fileName}">${fileName}</option> + </#list> + </select> + </#if> + </td> + </tr> + <tr> + <td colspan="2" align="center"> + <input type="submit" value="${uiLabelMap.CommonBack}"/> + <#if parameters.sourceKey?exists> + <input type="submit" value="${uiLabelMap.CommonUpdate}" name="confirm"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerRemove}" name="removeLabel"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> + <#else> + <input type="submit" value="${uiLabelMap.CommonAdd}" name="confirm"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> + </#if> + </td> + </tr> + <#list localesFound as localeFound> + <#assign labelValue = ""> + <#assign labelComment = ""> + <#if parameters.sourceKey?exists> + <#assign value = (label.getLabelValue(localeFound))?if_exists> + <#if value?has_content> + <#assign labelValue = value.getLabelValue()> + <#assign labelComment = value.getLabelComment()> + </#if> + </#if> + <#assign showLocale = true> + <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + </#if> + <#if showLocale == true> + <tr> + <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> + <#if locale?exists && locale?has_content> + <#assign langAttr = localeFound.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + </#if> + <td align="right" lang="${langAttr}" dir="${langDir}"> + <b>${locale.getDisplayName(locale)}</b> + </td> + <#else> + <td align="right"><b>${localeFound}</b></td> + </#if> + <td align="left"> + <input type="hidden" name="localeNames" value="${localeFound}"> + <input type="text" name="localeValues" size="70" value="${labelValue?if_exists}"> + <input type="text" name="localeComments" size="70" value="${labelComment?if_exists}"> + </td> + </tr> + </#if> + </#list> + <tr> + <td colspan="2" align="center"> + <input type="submit" value="${uiLabelMap.CommonBack}"/> + <#if parameters.sourceKey?exists> + <input type="submit" value="${uiLabelMap.CommonUpdate}" name="confirm"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerRemove}" name="removeLabel"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> + <#else> + <input type="submit" value="${uiLabelMap.CommonAdd}" name="confirm"/> + <input type="submit" value="${uiLabelMap.WebtoolsLabelManagerUpdateAndSave}" name="confirm" onclick="javascript:updateAndSaveLabel()"/> + </#if> + </td> + </tr> + </table> + </form> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/UpdateLabel.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl Sun Mar 15 21:21:23 2009 @@ -1,36 +1,36 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<div class="screenlet-body"> - <table class="basic-table" cellspacing="3"> - <tr> - <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b> ${parameters.sourceKey?if_exists}</td> - </tr> - <tr> - <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerFileName}</b> ${parameters.fileName?if_exists}</td> - </tr> - <tr> - <td colspan="2"> </td> - </tr> - <#list rows as row> - <tr> - <td colspan="2">${row?if_exists}</td> - </tr> - </#list> - </table> -</div> +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<div class="screenlet-body"> + <table class="basic-table" cellspacing="3"> + <tr> + <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b> ${parameters.sourceKey?if_exists}</td> + </tr> + <tr> + <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerFileName}</b> ${parameters.fileName?if_exists}</td> + </tr> + <tr> + <td colspan="2"> </td> + </tr> + <#list rows as row> + <tr> + <td colspan="2">${row?if_exists}</td> + </tr> + </#list> + </table> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewFile.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl Sun Mar 15 21:21:23 2009 @@ -1,30 +1,30 @@ -<div class="screenlet-body"> - <#if parameters.searchLabels?exists> - <table class="basic-table hover-bar" cellspacing="3"> - <tr class="header-row"> - <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> - <td>${uiLabelMap.WebtoolsLabelManagerKey}</td> - <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> - </tr> - <#assign rowNumber = 1> - <#assign rowNum = "2"> - <#list referencesList as reference> - <#assign labelFound = 'N'> - <#assign refNum = Static["org.ofbiz.webtools.labelmanager.LabelManagerFactory"].getLabelReferenceFile(reference)> - <#if (refNum > 0)> - <tr <#if rowNum == "1">class="alternate-row"</#if>> - <td>${rowNumber}</td> - <td>${reference}</td> - <td align="center"><#if (refNum > 0)><a href="<@ofbizUrl>ViewReferences?sourceKey=${reference}</@ofbizUrl>">${refNum}</a><#else>${refNum}</#if></td> - </tr> - <#assign rowNumber = rowNumber + 1> - <#if rowNum == "2"> - <#assign rowNum = "1"> - <#else> - <#assign rowNum = "2"> - </#if> - </#if> - </#list> - </table> - </#if> -</div> +<div class="screenlet-body"> + <#if parameters.searchLabels?exists> + <table class="basic-table hover-bar" cellspacing="3"> + <tr class="header-row"> + <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> + <td>${uiLabelMap.WebtoolsLabelManagerKey}</td> + <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> + </tr> + <#assign rowNumber = 1> + <#assign rowNum = "2"> + <#list referencesList as reference> + <#assign labelFound = 'N'> + <#assign refNum = Static["org.ofbiz.webtools.labelmanager.LabelManagerFactory"].getLabelReferenceFile(reference)> + <#if (refNum > 0)> + <tr <#if rowNum == "1">class="alternate-row"</#if>> + <td>${rowNumber}</td> + <td>${reference}</td> + <td align="center"><#if (refNum > 0)><a href="<@ofbizUrl>ViewReferences?sourceKey=${reference}</@ofbizUrl>">${refNum}</a><#else>${refNum}</#if></td> + </tr> + <#assign rowNumber = rowNumber + 1> + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + </#if> + </#if> + </#list> + </table> + </#if> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewHardcodedLabels.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl Sun Mar 15 21:21:23 2009 @@ -1,121 +1,121 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<div class="screenlet-body"> - <a href="<@ofbizUrl>UpdateLabel?fileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerAddNew}</a> - <a href="<@ofbizUrl>SaveLabelsToXmlFile?labelFileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerUpdateFile}</a> - <table class="basic-table hover-bar" cellspacing="3"> - <tr class="header-row"> - <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> - <td>${uiLabelMap.WebtoolsLabelManagerKey}</td> - <td>${uiLabelMap.WebtoolsLabelManagerFileName}</td> - <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> - <#list localesFound as localeFound> - <#assign showLocale = true> - <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> - <#assign showLocale = false> - </#if> - <#if showLocale == true> - <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> - <#if locale?exists && locale?has_content> - <#assign langAttr = localeFound.toString()?replace("_", "-")> - <#assign langDir = "ltr"> - <#if "ar.iw"?contains(langAttr?substring(0, 2))> - <#assign langDir = "rtl"> - </#if> - <td lang="${langAttr}" dir="${langDir}"> - ${locale.getDisplayName(locale)} - </td> - <#else> - <td>${localeFound}</td> - </#if> - </#if> - </#list> - </tr> - <#if parameters.searchLabels?exists> - <#assign rowNum = "2"> - <#assign rowNumber = 1> - <#assign previousKey = ""> - <#list labelsList as labelList> - <#assign label = labels.get(labelList)> - <#assign labelKey = label.labelKey> - <#assign referenceNum = 0> - <#assign reference = references.get(labelKey)?if_exists> - <#if reference?exists && reference?has_content> - <#assign referenceNum = reference.size()> - </#if> - <#assign showLabel = true> - <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y" - && labelKey == "CommonEmptyHeader" > <#-- CommonEmptyHeader is empty by definition --> - <#assign showLabel = false> - </#if> - <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y" - && parameters.labelLocaleName?exists && parameters.labelLocaleName != ""> - <#assign labelValue = label.getLabelValue(parameters.labelLocaleName)?if_exists> - <#if labelValue?exists && labelValue?has_content> - <#assign value = labelValue.getLabelValue()?if_exists> - <#if value?exists && value?has_content> - <#assign showLabel = false> - </#if> - </#if> - </#if> - <#if showLabel && parameters.onlyNotUsedLabels?exists && parameters.onlyNotUsedLabels == "Y" && (referenceNum > 0)> - <#assign showLabel = false> - </#if> - <#if showLabel && parameters.labelKey?exists && parameters.labelKey != "" && parameters.labelKey != label.labelKey> - <#assign showLabel = false> - </#if> - <#if showLabel && parameters.labelFileName?exists && parameters.labelFileName != "" && parameters.labelFileName != label.fileName> - <#assign showLabel = false> - </#if> - <#if showLabel && parameters.labelComponentName?exists && parameters.labelComponentName != "" && parameters.labelComponentName != label.componentName> - <#assign showLabel = false> - </#if> - <#if showLabel == true> - <tr <#if rowNum == "1">class="alternate-row"</#if>> - <td>${rowNumber}</td> - <td><a href="<@ofbizUrl>UpdateLabel?sourceKey=${labelKey}&sourceFileName=${label.fileName}&sourceKeyComment=${label.labelKeyComment?if_exists}</@ofbizUrl>" <#if previousKey == labelKey>class="submenutext"</#if>>${label.labelKey}</a></td> - <td>${label.fileName}</td> - <td align="center"><#if (referenceNum > 0)><a href="<@ofbizUrl>ViewReferences?sourceKey=${labelKey}</@ofbizUrl>">${referenceNum}</a><#else>${referenceNum}</#if></td> - <#list localesFound as localeFound> - <#assign labelVal = label.getLabelValue(localeFound)?if_exists> - <#assign showLocale = true> - <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> - <#assign showLocale = false> - </#if> - <#if showLocale> - <#if labelVal?has_content> - <td>${labelVal.getLabelValue()}</td> - <#else> - <td> </td> - </#if> - </#if> - </#list> - </tr> - <#if rowNum == "2"> - <#assign rowNum = "1"> - <#else> - <#assign rowNum = "2"> - </#if> - <#assign previousKey = labelKey> - <#assign rowNumber = rowNumber + 1> - </#if> - </#list> - </#if> - </table> -</div> +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<div class="screenlet-body"> + <a href="<@ofbizUrl>UpdateLabel?fileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerAddNew}</a> + <a href="<@ofbizUrl>SaveLabelsToXmlFile?labelFileName=${parameters.labelFileName?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.WebtoolsLabelManagerUpdateFile}</a> + <table class="basic-table hover-bar" cellspacing="3"> + <tr class="header-row"> + <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> + <td>${uiLabelMap.WebtoolsLabelManagerKey}</td> + <td>${uiLabelMap.WebtoolsLabelManagerFileName}</td> + <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> + <#list localesFound as localeFound> + <#assign showLocale = true> + <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + </#if> + <#if showLocale == true> + <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/> + <#if locale?exists && locale?has_content> + <#assign langAttr = localeFound.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + </#if> + <td lang="${langAttr}" dir="${langDir}"> + ${locale.getDisplayName(locale)} + </td> + <#else> + <td>${localeFound}</td> + </#if> + </#if> + </#list> + </tr> + <#if parameters.searchLabels?exists> + <#assign rowNum = "2"> + <#assign rowNumber = 1> + <#assign previousKey = ""> + <#list labelsList as labelList> + <#assign label = labels.get(labelList)> + <#assign labelKey = label.labelKey> + <#assign referenceNum = 0> + <#assign reference = references.get(labelKey)?if_exists> + <#if reference?exists && reference?has_content> + <#assign referenceNum = reference.size()> + </#if> + <#assign showLabel = true> + <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y" + && labelKey == "CommonEmptyHeader" > <#-- CommonEmptyHeader is empty by definition --> + <#assign showLabel = false> + </#if> + <#if parameters.onlyMissingTranslations?exists && parameters.onlyMissingTranslations == "Y" + && parameters.labelLocaleName?exists && parameters.labelLocaleName != ""> + <#assign labelValue = label.getLabelValue(parameters.labelLocaleName)?if_exists> + <#if labelValue?exists && labelValue?has_content> + <#assign value = labelValue.getLabelValue()?if_exists> + <#if value?exists && value?has_content> + <#assign showLabel = false> + </#if> + </#if> + </#if> + <#if showLabel && parameters.onlyNotUsedLabels?exists && parameters.onlyNotUsedLabels == "Y" && (referenceNum > 0)> + <#assign showLabel = false> + </#if> + <#if showLabel && parameters.labelKey?exists && parameters.labelKey != "" && parameters.labelKey != label.labelKey> + <#assign showLabel = false> + </#if> + <#if showLabel && parameters.labelFileName?exists && parameters.labelFileName != "" && parameters.labelFileName != label.fileName> + <#assign showLabel = false> + </#if> + <#if showLabel && parameters.labelComponentName?exists && parameters.labelComponentName != "" && parameters.labelComponentName != label.componentName> + <#assign showLabel = false> + </#if> + <#if showLabel == true> + <tr <#if rowNum == "1">class="alternate-row"</#if>> + <td>${rowNumber}</td> + <td><a href="<@ofbizUrl>UpdateLabel?sourceKey=${labelKey}&sourceFileName=${label.fileName}&sourceKeyComment=${label.labelKeyComment?if_exists}</@ofbizUrl>" <#if previousKey == labelKey>class="submenutext"</#if>>${label.labelKey}</a></td> + <td>${label.fileName}</td> + <td align="center"><#if (referenceNum > 0)><a href="<@ofbizUrl>ViewReferences?sourceKey=${labelKey}</@ofbizUrl>">${referenceNum}</a><#else>${referenceNum}</#if></td> + <#list localesFound as localeFound> + <#assign labelVal = label.getLabelValue(localeFound)?if_exists> + <#assign showLocale = true> + <#if parameters.labelLocaleName?exists && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + </#if> + <#if showLocale> + <#if labelVal?has_content> + <td>${labelVal.getLabelValue()}</td> + <#else> + <td> </td> + </#if> + </#if> + </#list> + </tr> + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + </#if> + <#assign previousKey = labelKey> + <#assign rowNumber = rowNumber + 1> + </#if> + </#list> + </#if> + </table> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl?rev=754756&r1=754755&r2=754756&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl Sun Mar 15 21:21:23 2009 @@ -1,56 +1,56 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<div class="screenlet-body"> - <form method="post" action="<@ofbizUrl></@ofbizUrl>" name="ViewReferencesForm"> - <table class="basic-table" cellspacing="3"> - <tr> - <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b> ${parameters.sourceKey?if_exists}</td> - </tr> - <tr> - <td colspan="2"> </td> - </tr> - <tr class="header-row"> - <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> - <td>${uiLabelMap.WebtoolsLabelManagerFileName}</td> - <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> - </tr> - <#if parameters.sourceKey?exists && parameters.sourceKey?has_content> - <#assign rowNum = "2"> - <#assign rowNumber = 1> - <#assign reference = references.get(parameters.sourceKey)?if_exists> - <#if reference?exists && reference?has_content> - <#assign entries = reference.entrySet()> - <#list entries as entry> - <tr> - <td>${rowNumber}</td> - <td><a href="<@ofbizUrl>ViewFile?fileName=${entry.getKey()}&sourceKey=${parameters.sourceKey?if_exists}</@ofbizUrl>">${entry.getKey()}</a></td> - <td>${entry.getValue()}</td> - </tr> - <#if rowNum == "2"> - <#assign rowNum = "1"> - <#else> - <#assign rowNum = "2"> - </#if> - <#assign rowNumber = rowNumber + 1> - </#list> - </#if> - </#if> - </table> - </form> -</div> +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<div class="screenlet-body"> + <form method="post" action="<@ofbizUrl></@ofbizUrl>" name="ViewReferencesForm"> + <table class="basic-table" cellspacing="3"> + <tr> + <td colspan="2"><b>${uiLabelMap.WebtoolsLabelManagerKey}</b> ${parameters.sourceKey?if_exists}</td> + </tr> + <tr> + <td colspan="2"> </td> + </tr> + <tr class="header-row"> + <td>${uiLabelMap.WebtoolsLabelManagerRow}</td> + <td>${uiLabelMap.WebtoolsLabelManagerFileName}</td> + <td>${uiLabelMap.WebtoolsLabelManagerReferences}</td> + </tr> + <#if parameters.sourceKey?exists && parameters.sourceKey?has_content> + <#assign rowNum = "2"> + <#assign rowNumber = 1> + <#assign reference = references.get(parameters.sourceKey)?if_exists> + <#if reference?exists && reference?has_content> + <#assign entries = reference.entrySet()> + <#list entries as entry> + <tr> + <td>${rowNumber}</td> + <td><a href="<@ofbizUrl>ViewFile?fileName=${entry.getKey()}&sourceKey=${parameters.sourceKey?if_exists}</@ofbizUrl>">${entry.getKey()}</a></td> + <td>${entry.getValue()}</td> + </tr> + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + </#if> + <#assign rowNumber = rowNumber + 1> + </#list> + </#if> + </#if> + </table> + </form> +</div> Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewReferences.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain |
Free forum by Nabble | Edit this page |